/* ===== ALAPSTÍLUSOK ===== */
body {
    background: linear-gradient(140deg, #343635, #008148);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("images/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: -1;
}

/* ===== LOGIN RÉSZ ===== */
.login-container {
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loginView {
    background: transparent;
    border: 5px solid rgba(0, 0, 0, .5);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
    text-align: center;
}

#loginView h3 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

#loginView input {
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s;
}

#loginView input:focus {
    background: white;
    border-color: #4e8551;
    box-shadow: 0 0 0 0.25rem rgba(78, 133, 81, 0.25);
}

#loginView button {
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

#loginView .btn-primary {
    background: #2d5a2f;
    border-color: #2d5a2f;
}

#loginView .btn-primary:hover {
    background: #1e3e20;
    border-color: #1e3e20;
    transform: translateY(-2px);
}

#loginView .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

#loginView .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.input-icon {
    position: relative;
    margin-bottom: 10px;
}

.input-icon input {
    padding-right: 40px;
}

.input-icon .icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    font-size: 1.1rem;
}

.login-card {
    background: linear-gradient(135deg, #008148, #388e3c);
    border-radius: 20px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-card h2 {
    font-weight: 600;
    color: #2d2d2d;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    position: static;
    justify-content: center;
    align-items: center;
    margin-bottom: 1px;
    width: 100%;
}

.logo img {
    width: 320px;
    margin: -20px 0 20px;
    border-radius: 20px;
    background: transparent;
    border: 5px solid rgba(0, 0, 0, .5);
    backdrop-filter: blur(40px);
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 1.5);
}

/* ===== INFORMÁCIÓS SÁV (FÉL MÉRET) ===== */
#infoBar {
    animation: fadeInDown 0.5s ease-out;
}

.info-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 12px 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

/* Fél méretű info box */
.info-box-small {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e3e3e3;
    min-width: 160px;
    height: 65px;
    transition: all 0.3s ease;
}

.info-box-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    border-color: #008148;
}

.info-box-small i {
    font-size: 1.3rem;
    color: #008148;
    background: rgba(0, 129, 72, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-box-small .info-text {
    flex-grow: 1;
    min-width: 0;
}

.info-box-small small {
    color: #6c757d;
    font-size: 0.75rem;
    display: block;
    line-height: 1.2;
}

.info-box-small .fw-bold {
    color: #343a40;
    font-size: 0.9rem;
    margin-top: 1px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#currentDateDisplay {
    font-size: 0.85rem !important;
}

#currentUserDisplay .badge {
    font-size: 0.6rem;
    padding: 2px 5px;
    margin-left: 4px;
}

/* ===== TOGGLE STÍLUSOK ===== */
.toggle-header {
    cursor: pointer;
    user-select: none;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-size: 1.05rem;
    margin-bottom: 0;
    border: 1px solid transparent; 
    transition: all 0.3s ease; 
    position: relative; 
}

.toggle-header:hover {
    background: #ffffff; 
    border-color: #000000; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
    transform: translateY(-2px); 
    z-index: 1; 
}

.toggle-header:active {
    transform: translateY(0);
    transition: transform 0.1s ease; 
}

/* A nyitott toggle header stílusa */
.toggle-header[data-open="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
    margin-bottom: 0;
}

/* Nyitott állapotban is működjön a hover */
.toggle-header[data-open="true"]:hover {
    transform: translateY(-2px);
    border-color: #000000;
}

.toggle-header {
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04);
}

.toggle-header:hover {
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.1); /* Belső árnyék a border miatt */
}

/* Fókusz állapot (accessibility) */
.toggle-header:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    border-color: transparent;
}

.toggle-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.6s ease;
    margin-top: 0;
}

.toggle-content-inner {
    padding: 12px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    overflow-y: visible;
    max-height: none !important;
}

#orderPanel .toggle-content-inner,
#summaryPanel .toggle-content-inner {
    max-height: none !important;
    overflow-y: visible !important;
}

/* ===== DAY CHECKBOX ===== */
.day-checkbox-container {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
}

.day-checkbox {
    display: none;
}

.day-checkbox-label {
    display: inline-block;
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8f9fa;
}

.day-checkbox:checked+.day-checkbox-label {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.day-checkbox:disabled+.day-checkbox-label {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== HETI ÉTELRENDELÉS ===== */
#weekOrders {
    overflow-y: visible;
    max-height: none;
}

.day-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#saveOrderBtn {
    margin-top: 15px;
    padding: 12px 20px;
    font-size: 1.1rem;
    display: block;
    width: 100%;
}

/* ===== FELHASZNÁLÓ KEZELÉS ===== */
#adminUserPanel .btn-sm {
    padding: 4px 8px !important;      /* kisebb belső margó = alacsonyabb gomb */
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    min-height: 28px;
    height: auto !important;
}

/* Hozzáadás gomb (sötétebb zöld) */
#addNewUserBtn.btn-success {
    background-color: #1a5c2a !important;
    border-color: #1a5c2a !important;
}
#addNewUserBtn.btn-success:hover {
    background-color: #0e3d1c !important;
    border-color: #0e3d1c !important;
}

/* Mentés gombok a táblázatban  */
.save-user-btn.btn-success {
    background-color: #1a5c2a !important;
    border-color: #1a5c2a !important;
}
.save-user-btn.btn-success:hover {
    background-color: #0e3d1c !important;
    border-color: #0e3d1c !important;
}

/* Törlés gomb (sötétebb piros) */
.delete-user-btn.btn-danger {
    background-color: #a11a1a !important;
    border-color: #a11a1a !important;
}
.delete-user-btn.btn-danger:hover {
    background-color: #7a1212 !important;
    border-color: #7a1212 !important;
}

/* ===== FELHASZNÁLÓ KEZELÉS GOMBOK – MÉRET, SZÍN ===== */

/* Összes gomb a felhasználói táblázatban és a hozzáadásnál */
#adminUserPanel .btn,
#adminUserPanel .save-user-btn,
#adminUserPanel .delete-user-btn,
#addNewUserBtn {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    min-height: 28px !important;
    height: auto !important;
}

/* Hozzáadás gomb és Mentés gomb (sötétebb zöld) */
#addNewUserBtn.btn-success,
.save-user-btn.btn-success {
    background-color: #1a5c2a !important;
    border-color: #1a5c2a !important;
}
#addNewUserBtn.btn-success:hover,
.save-user-btn.btn-success:hover {
    background-color: #0e3d1c !important;
    border-color: #0e3d1c !important;
}

/* Törlés gomb (sötétebb piros) */
.delete-user-btn.btn-danger {
    background-color: #a11a1a !important;
    border-color: #a11a1a !important;
}
.delete-user-btn.btn-danger:hover {
    background-color: #7a1212 !important;
    border-color: #7a1212 !important;
}

/* A gombcsoporton belüli margók eltüntetése a kompaktabb megjelenésért */
#adminUserPanel .btn-group-sm .btn {
    margin: 0 !important;
}

#adminUserPanel .card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#adminUserPanel .card-header {
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}
#adminUserPanel .table-responsive {
    max-height: 620px;      /* kb. 15 sor magassága (egy sor ~40px) */
    overflow-y: auto;
    overflow-x: auto;       /* vízszintes görgetés is maradjon, ha kell */
}

/* Kis képernyőn kisebb magasság */
@media (max-width: 768px) {
    #adminUserPanel .table-responsive {
        max-height: 480px;  /* ~12 sor */
    }
}
#newUserId,
#newUserEmail {
    font-size: 0.9rem;
}

#addUserBtn {
    font-size: 0.9rem;
    padding: 6px 12px;
}

#userSearchInput {
    font-size: 0.9rem;
}

#sortAscBtn,
#sortDescBtn {
    font-size: 0.85rem;
    padding: 6px 12px;
}

#adminUserList table {
    font-size: 0.85rem;
    margin-bottom: 0;
}

#adminUserList th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

#adminUserList td {
    vertical-align: middle;
    padding: 8px 12px;
}

#adminUserList tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

#adminUserList .btn-sm {
    padding: 4px 8px !important;
    font-size: 0.85rem !important;
    height: 28px !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
    vertical-align: middle !important;
}

#adminUserList .btn-group-sm .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.user-role-select {
    min-width: 140px;
}

/* ===== ADMIN ONLY ===== */
.admin-only {
    display: none;
}

/* ===== GOMBOK ===== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-success {
    background-color: #28a745;
    color: white;
    border: none;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.table-responsive {
    overflow-x: auto;
    max-height: none;
}



/* ===== BOTTOM BUTTONS ===== */
#bottomButtons {
    display: none;
    position: static;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 1000;
    padding: 0 15px;  
    box-sizing: border-box;
}

#bottomButtons .btn {
    display: inline-block;
    margin: 5px auto;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#logoutBtn {
    width: auto;  
    min-width: 120px;  
    max-width: 90%; 
    align-items: center;
    font-weight: bold;
    background-color: transparent;
    border: 2px solid #000;
    backdrop-filter: blur(50px);
    color: #fff;
    white-space: nowrap;
}

#logoutBtn:hover {
    background-color: #910101;
    border-color: #000000;
    color: #fff;
    transform: translateY(-2px);
}


#changePasswordBtn {
    width: auto; 
    min-width: 140px; 
    max-width: 90%;
    font-weight: bold;
    background-color: transparent;
    border: 2px solid #000000;
    backdrop-filter: blur(50px);
    color: #fff;
    margin-bottom: 70px;
    white-space: nowrap;
}

#changePasswordBtn:hover {
    background-color: #008148;
    border-color: #000000;
    color: #fff;
    transform: translateY(-2px);
}

/* Reszponzív - kis képernyőn a szöveg törhet */
@media (max-width: 480px) {
    #bottomButtons .btn {
        white-space: normal;  /* engedélyezzük a sortörést */
        word-break: keep-all;  /* ne törje ketté a szavakat */
        padding: 10px 15px;
        font-size: 0.9rem;
        width: 90%;  /* szélesebb gombok */
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    #changePasswordBtn {
        margin-bottom: 20px;
        min-width: unset;  /* töröljük a min-width-ot */
    }
    
    #logoutBtn {
        min-width: unset;
    }
}

/* Még kisebb képernyőre (max 380px) */
@media (max-width: 380px) {
    #bottomButtons .btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    #changePasswordBtn {
        font-size: 0.85rem;
    }
}

/* ===== BADGE & ALERT ===== */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

.alert.position-fixed {
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== ANIMÁCIÓK ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#adminUserList tr {
    animation: fadeInUp 0.3s ease-out;
}

/* ===== FÓKUSZ STÍLUSOK ===== */
#newUserId:focus,
#newUserEmail:focus,
#userSearchInput:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#addUserBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== ÉTELEK IMPORT/TÖRLÉS KISEBB KÁRTYÁK ===== */
#adminFoodPanel .card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}

#adminFoodPanel .card-header {
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    background-color: #f8f9fa;
    padding: 8px 12px !important;
}

#adminFoodPanel .card-body {
    padding: 12px !important;
}

/* Kisebb alert-ek */
#adminFoodPanel .alert {
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    border-radius: 4px;
}

#adminFoodPanel .alert-info {
    background-color: #e7f3ff;
    border-color: #b3d7ff;
    color: #0a58ca;
}

#adminFoodPanel .alert-warning {
    background-color: #fff3cd;
    border-color: #ffd966;
    color: #997404;
}

/* Kisebb gombok */
#adminFoodPanel .btn {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    border-radius: 4px !important;
}

#adminFoodPanel .btn-sm {
    padding: 4px 8px !important;
    font-size: 0.8rem !important;
}

/* Törlés gomb */
#clearFoodsBtn {
    font-weight: 500;
}

#clearFoodsBtn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

#clearFoodsBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Jelenlegi ételek lista (lenyítható) */
#foodListContent {
    transition: all 0.3s ease;
}

#adminFoodList {
    font-size: 0.85rem;
}

#adminFoodList .border-bottom {
    border-color: #f0f0f0 !important;
}

#adminFoodList .badge {
    font-size: 0.7rem;
    padding: 2px 6px;
}

#adminFoodList .form-check-input {
    margin: 0;
    cursor: pointer;
}

/* Lenyíló ikon */
#foodListToggleIcon {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: #6c757d;
}

/* Scrollbar a jelenlegi ételek listához */
#foodListContent::-webkit-scrollbar {
    width: 6px;
}

#foodListContent::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#foodListContent::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#foodListContent::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Ikonok */
#adminFoodPanel .bi {
    margin-right: 6px;
    font-size: 0.9rem;
}

/* File input */
#foodImportFile {
    font-size: 0.85rem;
    padding: 6px 10px;
}

/* Import status */
#importStatus {
    font-size: 0.8rem;
}

#importStatus .alert {
    padding: 8px 12px;
    margin: 0;
}

/* Jelszó mező és szem ikon stílusai */
.password-field {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    padding: 2px 5px;
    background-color: #f8f9fa;
    border-radius: 3px;
    border: 1px solid #dee2e6;
    min-width: 60px;
    display: inline-block;
    text-align: center;
}

.toggle-password {
    padding: 1px 6px !important;
    font-size: 0.7rem !important;
    height: 24px !important;
    line-height: 1 !important;
    width: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.toggle-password i {
    font-size: 0.8rem;
    margin: 0 !important;
}

.toggle-password:hover {
    background-color: #e9ecef;
    border-color: #6c757d;
}

/* Felhasználó táblázat cella stílusok */
#adminUserList td {
    vertical-align: middle;
    padding: 8px 12px;
}

/* Jelszó cella */
#adminUserList td:nth-child(2) {
    min-width: 120px;
}

/* ===== RESZPONZÍV STÍLUSOK ===== */
@media (max-width: 992px) {
    .info-box-small {
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    /* Info bar */
    #infoBar .row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .info-box-small {
        min-width: auto;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        height: 60px;
        padding: 6px 12px;
        gap: 10px;
    }

    .info-box-small i {
        font-size: 1.1rem;
        width: 35px;
        height: 35px;
    }

    .info-box-small small {
        font-size: 0.7rem;
    }

    .info-box-small .fw-bold {
        font-size: 0.8rem;
        white-space: normal;
        word-break: break-word;
    }

    #currentDateDisplay {
        font-size: 0.75rem !important;
    }

    /* Felhasználó kezelés */
    #adminUserPanel .row {
        margin-bottom: 10px;
    }

    #adminUserPanel .col-md-4,
    #adminUserPanel .col-md-5,
    #adminUserPanel .col-md-3,
    #adminUserPanel .col-md-8 {
        margin-bottom: 10px;
    }

    #adminUserList table {
        display: block;
        overflow-x: auto;
    }

    .user-role-select {
        min-width: 120px;
    }

    #adminUserList .btn-group {
        flex-wrap: nowrap;
    }

    /* Toggle */
    .toggle-header {
        font-size: 1.15rem;
        padding: 16px;
    }

    .day-checkbox-container {
        margin-right: 8px;
        margin-bottom: 8px;
    }

    .day-checkbox-label {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    /* Ételek panel reszponzív */
    #adminFoodPanel .card-header h6 {
        font-size: 0.9rem;
    }
    
    #adminFoodPanel .alert {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    #adminFoodPanel .btn {
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    #infoBar .info-container {
        padding: 10px 15px;
        max-width: 95%;
    }
}

@media (max-width: 400px) {
    #currentDateDisplay {
        font-size: 0.7rem !important;
    }
}

/* Heti kiválasztók stílusai */
.week-selector-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.week-selector-container label {
    font-weight: 600;
    color: #495057;
}

.week-date-display {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Heti kártyák */
.week-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.week-card-header {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 12px 15px;
    font-weight: 600;
}

.week-card-body {
    padding: 15px;
    background: white;
}

/* Heti rendelés gomb */
.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.week-nav-btn {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.week-nav-btn:hover {
    background: #0b5ed7;
}

.week-nav-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}
/* ===== ADMIN ÖSSZESÍTÉS STÍLUSOK ===== */
#adminSummaryView .card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

#adminSummaryView .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    padding: 10px 15px;
}

#adminSummaryView .card-body {
    padding: 15px;
}

#adminSummaryView .form-select {
    max-width: 300px;
}

#summaryWeekDatesDisplay {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

#exportBtn {
    padding: 8px 16px;
    font-size: 0.95rem;
}

#summaryEmptyMessage {
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

#summaryTable {
    font-size: 0.9rem;
}

#summaryTable th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}

#summaryTable td {
    vertical-align: middle;
    text-align: center;
}

#summaryTable .delete-btn {
    font-size: 0.8rem;
    padding: 4px 8px;
}

/* Reszponzív táblázat */
@media (max-width: 768px) {
    #adminSummaryView .row {
        flex-direction: column;
    }
    
    #adminSummaryView .col-md-6 {
        width: 100%;
        margin-bottom: 15px;
    }
    
    #adminSummaryView .form-select {
        max-width: 100%;
    }
    
    #summaryTable {
        font-size: 0.8rem;
    }
    
    #summaryTable th,
    #summaryTable td {
        padding: 6px 8px;
    }
}
/* A weeklyOrderView kezdetben rejtve, amíg be nem töltődik */
#weeklyOrderView {
    display: none;
}
/* ===== RENDELÉSEIM STÍLUSOK ===== */
#myOrdersView .card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

#myOrdersView .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    padding: 10px 15px;
}

#myOrdersView .card-body {
    padding: 15px;
}

.order-day-card {
    background: white;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.order-day-card h6 {
    color: #2d5a2f;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.order-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item .badge {
    font-size: 0.75em;
    margin-right: 8px;
}

.no-orders-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-orders-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .order-day-card {
        padding: 12px;
    }
    
    .order-item {
        padding: 6px 0;
    }
}
/* style.css */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(140deg, #343635, #008148);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(720deg); }
}

/* ===== RENDELÉSI BEÁLLÍTÁSOK STÍLUSOK ===== */
#adminSettingsView .card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

#adminSettingsView .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    padding: 10px 15px;
}

#adminSettingsView .card-body {
    padding: 15px;
}

.day-default-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.2s;
}

.day-default-card:hover {
    border-color: #0d6efd;
    background: #f0f8ff;
}

.setting-info-card {
    background: white;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    height: 100%;
}

.setting-info-card h6 {
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.setting-info-card p {
    margin-bottom: 5px;
}

/* Dátum és idő input mezők */
#deadlineDate, #deadlineTime {
    font-size: 0.9rem;
    padding: 8px 12px;
}

/* Gombok */
#adminSettingsView .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

#saveDeadlineBtn, #saveDefaultOrdersBtn {
    min-width: 140px;
}

/* Status üzenetek */
#deadlineStatus .alert, 
#defaultOrdersStatus .alert {
    padding: 8px 12px;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Reszponzív stílusok */
@media (max-width: 768px) {
    #adminSettingsView .row.g-3 {
        flex-direction: column;
    }
    
    #adminSettingsView .col-md-6 {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .day-default-card {
        padding: 12px !important;
    }
    
    .setting-info-card {
        margin-bottom: 10px;
    }
    
    #adminSettingsView .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    #adminSettingsView .ms-2 {
        margin-left: 0 !important;
    }
}

@media (max-width: 576px) {
    #adminSettingsView .card-body {
        padding: 12px;
    }
    
    .day-default-card h6 {
        font-size: 0.9rem;
    }
    
    .form-check-label {
        font-size: 0.85rem;
    }
}
/* ===== RENDELÉS ÉRVÉNYESSÉG STÍLUSOK ===== */
.order-status-message {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}



.day-card.valid-day {
    border: 2px solid #198754;
    background-color: rgba(25, 135, 84, 0.05);
}

/* Mentés gomb stílusok */
#saveOrderBtn.btn-warning {
    animation: pulseWarning 2s infinite;
}

@keyframes pulseWarning {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

#saveOrderBtn.btn-success {
    transition: all 0.3s;
}

#saveOrderBtn.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.2);
}

/* Étel választó stílusok */
.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.form-check-input:checked[data-category="3"] {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}
/* ===== KIVÁLASZTOTT ÉTELEK TÁROLÓ STÍLUSOK ===== */
.selected-foods-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin-top: 10px;
}

.selected-foods-container .alert {
    margin-bottom: 0;
    padding: 10px;
}

/* Flex layout a jobb elrendezéshez */
.selected-foods-container .d-flex {
    min-height: 40px;
}

.selected-foods-container .flex-grow-1 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.selected-foods-container .btn-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
    min-width: 70px;
}

/* Érvényesség alapján változó háttérszínek */
.selected-foods-container.valid {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: #198754;
}

.selected-foods-container.invalid {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
}

.selected-foods-container.warning {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

/* Reszponzív stílusok a kiválasztott ételekhez */
@media (max-width: 768px) {
    .selected-foods-container {
        padding: 10px;
    }
    
    .selected-foods-container .d-flex {
        flex-direction: column;
    }
    
    .selected-foods-container .flex-grow-1 {
        margin-bottom: 10px;
        margin-right: 0 !important;
    }
    
    .selected-foods-container .flex-shrink-0 {
        align-self: flex-end;
        width: 100%;
    }
    
    .selected-foods-container .btn-sm {
        width: 100%;
    }
}

/* A kiválasztott ételek alert-jei */
.day-card .alert {
    padding: 10px 12px;
    border-radius: 5px;
    margin-bottom: 0;
}

/* Biztosítjuk, hogy a tartalom ne lógjon ki */
.day-card {
    overflow: hidden;
}

.day-card .card-body {
    overflow-wrap: break-word;
}

/* Határidő megjelenítés stílusok */
.week-deadline-header {
    margin-bottom: 20px;
}

.deadline-display {
    text-align: center;
}

.deadline-date {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.deadline-time {
    font-size: 24px;
    color: #0d6efd;
    font-weight: bold;
}

.deadline-status .badge {
    font-size: 14px;
    padding: 8px 12px;
}

.deadline-status .badge.bg-danger {
    background-color: #dc3545 !important;
}

.deadline-status .badge.bg-success {
    background-color: #198754 !important;
}

/* Letiltott elemek stílusai */
.form-check-input:disabled {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.form-check-label:has(.form-check-input:disabled) {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Kártyák stílusai */
.card.border-danger {
    border: 2px solid #dc3545 !important;
}

.card.border-success {
    border: 2px solid #198754 !important;
}
/* Határidő típus jelzés */
.deadline-type-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
}

.deadline-type-badge.custom {
    background-color: #6f42c1;
    color: white;
}

.deadline-type-badge.default {
    background-color: #6c757d;
    color: white;
}

/* Határidő állapot jelzők */
.deadline-status-active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Letiltott napok */
.day-card.disabled-by-deadline {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.day-card.disabled-by-deadline::after {
    content: "🔒 Határidő lejárt";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 10;
}

/* Heti kiválasztó és határidő kártyák - KOMPAKT */
.week-deadline-header .card {
    height: 100%;
    min-height: 200px;
}

.week-deadline-header .card-header {
    padding: 0.5rem 1rem;
}

.week-deadline-header .card-header h5 {
    font-size: 1rem;
    font-weight: 600;
}

.week-deadline-header .card-body {
    padding: 1rem;
}

.week-deadline-header .form-select-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    height: calc(1.5em + 0.5rem + 2px);
}

/* Heti dátum megjelenítő */
.week-dates-display {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.week-dates-display small {
    font-size: 0.75rem;
    color: #6c757d;
    display: block;
    margin-bottom: 0.25rem;
}

.week-dates-display .fw-bold {
    color: #0d6efd;
    font-size: 0.95rem;
}

/* Határidő tartalom */
.deadline-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.deadline-display {
    flex: 1;
}

.deadline-date {
    font-size: 0.9rem;
    color: #495057;
}

.deadline-time {
    font-size: 1.5rem;
    color: #0d6efd;
}

/* Badge-ek */
.deadline-display .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-weight: normal;
    display: inline-block;
}

.deadline-display .badge.bg-secondary {
    background-color: #6c757d !important;
}

.deadline-display .badge.bg-light {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
}

/* Alert státusz */
.deadline-status .alert {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

.deadline-status .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.deadline-status .alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

/* Határidő információ */
.deadline-info {
    font-size: 0.8rem;
}

.deadline-info small {
    color: #6c757d;
}

/* Border stílusok */
.border-danger {
    border: 2px solid #dc3545 !important;
}

.border-success {
    border: 2px solid #198754 !important;
}

/* Ikonok */
.week-deadline-header .card-header i {
    font-size: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .week-deadline-header .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .deadline-time {
        font-size: 1.25rem;
    }
    
    .week-deadline-header .card {
        min-height: 180px;
    }
}
/* Hét kiválasztása kártya keret */
.week-deadline-header .card.border {
    border: 3px solid #dee2e6 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.week-deadline-header .card.border:hover {
    border-color: #adb5bd !important;
    transition: border-color 0.2s ease;
}

/* Kártya header stílus */
.week-deadline-header .card-header.bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
}

.week-deadline-header .card-header h5 {
    color: #070708;
}

/* Heti dátum megjelenítő finomítás */
.week-dates-display {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

/* Form select finomítás */
.week-deadline-header .form-select {
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.week-deadline-header .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Kártya kontrasztok */
.week-deadline-header .col-md-6:first-child .card {
    border-color: #dee2e6;
}

.week-deadline-header .col-md-6:last-child .card {
    border-width: 2px;
}

/* Vékony árnyék mindkét kártyára */
.week-deadline-header .card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.week-deadline-header .card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
/* Admin összesítés táblázat - KOMPAKT */
/* Admin összesítés táblázat - KOMPAKT */
#summaryTable {
    table-layout: fixed;
    width: 100%;
}

#summaryTable th {
    vertical-align: middle;
    padding: 4px 4px !important;   /* csökkentett padding */
    font-size: 0.85rem;
    white-space: nowrap;
}

#summaryTable td {
    padding: 2px 4px !important;   /* minimális padding a kompaktságért */
    vertical-align: middle;
    font-size: 0.82rem;
    line-height: 1.2;
}

/* Étel cellák */
#summaryTable .has-order {
    background-color: #f8f9fa;
    min-height: 24px;
}

#summaryTable .no-order {
    background-color: #f8f9fa;
    opacity: 0.7;
}

/* Gombok - MÉG KISEBB, ikon + tooltip */
#summaryTable .admin-delete-selected-btn,
#summaryTable .admin-delete-all-btn {
    font-size: 0.7rem;
    padding: 1px 4px !important;
    line-height: 1;
    min-width: 24px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 3px;
}

#summaryTable .admin-delete-all-btn:hover {
    background-color: #fff !important;
    color: #dc3545 !important;  /* piros szöveg */
    border-color: #dc3545 !important;
}

/* Cellába rendezés */
#summaryTable td:last-child {
    text-align: center;
    padding: 2px 2px !important;
}

#summaryTable td:last-child .btn-group-sm {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

/* Checkbox - JÓB OLDALON, KÖZÉPEN */
#summaryTable .day-checkbox {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

#summaryTable .day-checkbox:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

#summaryTable .day-checkbox:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Kijelölt sorok */
#summaryTable .row-selected {
    background-color: #fff3cd !important;
}

#summaryTable .row-selected td {
    border-color: #ffeaa7 !important;
}

/* Gombok - KICSI */
#summaryTable .delete-selected-btn,
#summaryTable .delete-all-btn {
    font-size: 0.75rem;
    padding: 2px 6px !important;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#summaryTable .delete-selected-btn i,
#summaryTable .delete-all-btn i {
    font-size: 0.8rem;
}

/* Flex layout a celláknak */
#summaryTable td > div.d-flex {
    min-height: 30px;
}

/* Oszlop szélességek */
#summaryTable th:first-child,
#summaryTable td:first-child {
    width: 80px; /* Azonosító oszlop */
}

#summaryTable th:last-child,
#summaryTable td:last-child {
    width: 80px; /* Műveletek oszlop */
}

/* Responsive design */
@media (max-width: 1200px) {
    #summaryTable {
        font-size: 0.85rem;
    }
    
    #summaryTable .food-list {
        font-size: 0.8rem;
    }
    
    #summaryTable .day-checkbox {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 768px) {
    #summaryTable {
        font-size: 0.8rem;
    }
    
    #summaryTable th,
    #summaryTable td {
        padding: 4px 2px !important;
    }
    
    #summaryTable .food-list {
        font-size: 0.75rem;
    }
    
    #summaryTable .day-checkbox {
        width: 12px;
        height: 12px;
    }
}
/* ===== UGRÁS A TETEJÉRE GOMB ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(78, 172, 78, 0.75); /* világoszöld, áttetsző */
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
}

.scroll-to-top:hover {
    background-color: rgba(78, 172, 78, 0.9);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:active {
    transform: scale(0.95);
}

/* Reszponzív: kisebb képernyőn kisebb gomb */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
        bottom: 20px;
        right: 20px;
    }
}
/* Alapértelmezett nap kártya validációs keret */
.day-default-card.valid-selection {
    border: 2px solid #198754 !important;
    background-color: rgba(25, 135, 84, 0.05);
}

/*.day-default-card.invalid-selection {
    border: 2px solid #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.05);
}*/

.tooltip-inner {
    max-width: 350px;
    text-align: left;
}