:root {
    /* Világos téma - Fortissimo arculat alapján */
    --primary-color: #54C1C6;
    --primary-color-rgb: 84, 193, 198; /* ÚJ: RGB verzió a transzparens színekhez */
    --primary-color-dark: #4a9aa0;
    --secondary-color: #263C3F;
    --light-gray: #F9FBFC;
    --medium-gray: #CDE5E8;
    --dark-gray: #A0CFD5;
    --accent-color: #74B9C1; /* Világosabb kék kiemeléshez */
    --text-color: #34495e;
    --white: #ffffff;
    --danger-color: #dc3545;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --card-bg: #263C3F; /* Solid background for modals on login page */
    --border-radius: 12px; /* Enyhén növeljük a lekerekítést a lágyabb formákért */
}

body {
    font-family: 'Urbanist', 'Roboto', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    position: relative;
    overflow: hidden; /* Megakadályozza a scrollbarokat az animációk alatt */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 110vh; /* Lefedjük az egész képernyőt, még görgetésnél is */
    background-image: url('img/terulominta.png');
    background-size: 1200px;
    background-position: center center;
    filter: blur(3px) opacity(0.2); /* Erősebb homályosítás és finomabb áttetszőség */
    z-index: -1;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.login-container {
    background: rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(20px); /* Kicsit erősebb blur a "folyékonyabb" hatásért */
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: content-fade-in-up 0.8s ease-out forwards;
}

.logo-title {
    display: flex;
    justify-content: center;
    margin-left: auto; margin-right: auto;
    max-width: 280px;
    width: 70%;
    margin-bottom: 20px;
}

.logo-image {
    width: 100%;
    height: auto;
}


.login-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-wrapper {
    position: relative; 
}

/* Egységes, modernebb input stílus (dashboard.css-ből adaptálva) */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select {
    font-family: 'Urbanist', 'Roboto', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    border: 1px solid var(--dark-gray);
    border-radius: var(--border-radius);
    padding: 12px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
/* Javítás a jelszó mező apró csillagaira */
input[type="password"] {
    /* A legtöbb böngészőben ez a betűtípus nagyobb, teltebb pontokat/csillagokat eredményez. */
    font-family: 'text-security-disc';
    font-size: 1.5em; /* Nagyobb betűméret a jobb láthatóságért */
    letter-spacing: 0.2em; /* Nagyobb távolság a karakterek között */
}


.input-wrapper label {
    position: absolute;
    top: 12px;
    left: 12px;
    color: var(--dark-gray);
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 0;
}

.input-wrapper input:focus, .input-wrapper input:focus-visible {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(84, 193, 198, 0.2);
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px; /* Igazítás a paddinghez */
    font-size: 0.8em;
    color: var(--primary-color);
    background-color: var(--light-gray);
    padding: 0 5px;
    border-radius: 3px;
}

/* ÚJ: Jelszó mutatása ikon stílusa */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--dark-gray);
    transition: color 0.2s;
}
.toggle-password:hover { color: var(--primary-color); }

.login-container button[type="submit"] {
    background-color: var(--primary-color); 
    color: var(--white);
    padding: 15px 20px;
    border: none;
    border-radius: 50px; /* Lekerekített gomb */
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%; /* Hogy a gomb kitöltse a rendelkezésre álló helyet */
    text-transform: uppercase;
}

.login-container button[type="submit"]:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}

.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--primary-color-dark);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-secondary {
    /* Új, modern "outline" gomb stílus */
    background-color: transparent;
    color: var(--primary-color-dark);
    border: 2px solid var(--primary-color-dark);
    padding: 10px 15px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    width: auto;
    animation: pulse-secondary 2.5s infinite ease-in-out;
}

@media (max-width: 768px) {
    .login-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .login-actions button {
        width: 100%;
        display: block;
    }
    
    .btn-link {
        width: 100%;
        display: block;
    }
    
    .btn-secondary {
        width: 100%;
        display: block;
    }
}

/* ÚJ: Pulzáló animáció a másodlagos gombhoz */
@keyframes pulse-secondary {
    0% {
        box-shadow: 0 0 0 0 rgba(4, 119, 124, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(4, 119, 124, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(4, 119, 124, 0);
    }
}

.login-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
}

.developer-credit {
    font-weight: 600;
    margin-bottom: 10px;
}
.developer-credit a { color: var(--primary-color); text-decoration: none; }
.developer-credit a:hover { text-decoration: underline; }
.qr-login-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
}

#scan-qr-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    animation: none; /* A pulzáló animációt itt kikapcsoljuk */
}

/* QR olvasó konténer stílusa */
#qr-reader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#qr-reader {
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: var(--border-radius);
}

.btn-secondary:hover {
    animation-play-state: paused; /* Stop animation on hover */
    background-color: var(--primary-color-dark);
    color: var(--white);
    border-color: var(--primary-color-dark);
    transform: translateY(-2px);
}
.error-message {
    color: var(--danger-color);
    margin-top: 15px;
    font-weight: 500;
}

/* --- Új: Modal stílusok (dashboard.css-ből áthozva és adaptálva) --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    animation: modal-pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; /* ÚJ: Pattogó animáció */
    position: relative;
    max-height: 90vh;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 20px auto;
    text-align: left;
}

body.dark-theme .modal-content p { color: var(--text-color-dark); }

.modal-header {
    display: flex;
    justify-content: space-between; /* Ez biztosítja, hogy a cím és a gomb a két szélre kerüljön */
    align-items: center; /* Ez függőlegesen középre igazítja őket */
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0; /* Eltávolítja az alapértelmezett margót */
    color: var(--primary-color);
    /* A flex-grow: 1; eltávolítva, mert ez tolta el a gombot */
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

h1 {
    color: var(--primary-color);
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content button:not(.close-button):not(.reset-button-corner) {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    /* ÚJ: A gomb alap stílusainak hozzáadása a .btn-primary-hez is */
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    width: 100%;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    font-family: 'Urbanist', sans-serif;
}

.modal-content form .input-wrapper {
    margin-top: 0; /* A modal-on belüli form-nál ne legyen extra margó */
}


.modal-content button:hover {
    background-color: var(--primary-color-dark);
}

/* --- Új: Toast üzenetek stílusa (shared.js-hez) --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: toast-in 0.5s, toast-out 0.5s 3.5s;
    opacity: 0;
    background-color: var(--accent-color); /* Alapértelmezett (info) */
}

/* Vendég időpontfoglalás stílusai */
.guest-booking-container {
    display: none; /* A JS kezeli a megjelenítést egy modális ablakban */
}

.toast.success { background-color: var(--accent-color); }
.toast.error { background-color: var(--danger-color); }

/* --- Új: Animációk --- */
/* ÚJ: Pattogó modal animáció */
@keyframes modal-pop-in {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes content-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ÚJ: Letiltott bejelentkezés modal stílus --- */
.disabled-login-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: icon-bounce 2s infinite ease-in-out;
}

.disabled-login-icon .fa-cogs {
    animation-duration: 4s; /* A fogaskerekek lassabban forogjanak */
    animation-name: spin;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content button:not(.close-button) {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    /* ÚJ: A gomb alap stílusainak hozzáadása a .btn-primary-hez is */
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    width: 100%;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    font-family: 'Urbanist', sans-serif;
}

.modal-content form .input-wrapper {
    margin-top: 0; /* A modal-on belüli form-nál ne legyen extra margó */
}


.modal-content button:hover {
    background-color: var(--primary-color-dark);
}

/* --- Új: Toast üzenetek stílusa (shared.js-hez) --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: toast-in 0.5s, toast-out 0.5s 3.5s;
    opacity: 0;
    background-color: var(--accent-color); /* Alapértelmezett (info) */
}

/* Vendég időpontfoglalás stílusai */
.guest-booking-container {
    display: none; /* A JS kezeli a megjelenítést egy modális ablakban */
}

.toast.success { background-color: var(--accent-color); }
.toast.error { background-color: var(--danger-color); }

/* --- Új: Animációk --- */
/* ÚJ: Pattogó modal animáció */
@keyframes modal-pop-in {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- ÚJ: EGYSÉGES, MODERN BEZÁRÓ GOMB STÍLUS (dashboard.css-ből áthozva) --- */
.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    background: var(--card-bg);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 10; /* Biztosan a tartalom felett legyen */
}

.close-button:hover {
    background-color: rgba(84, 193, 198, 0.2); /* --primary-color-rgb alapú áttetsző háttér */
    color: var(--primary-color);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 10px rgba(84, 193, 198, 0.5);
}

@keyframes content-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ÚJ: Letiltott bejelentkezés modal stílus --- */
.disabled-login-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: icon-bounce 2s infinite ease-in-out;
}

.disabled-login-icon .fa-cogs {
    animation-duration: 4s; /* A fogaskerekek lassabban forogjanak */
    animation-name: spin;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content button:not(.close-button) {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    /* ÚJ: A gomb alap stílusainak hozzáadása a .btn-primary-hez is */
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    width: 100%;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    font-family: 'Urbanist', sans-serif;
}

.modal-content form .input-wrapper {
    margin-top: 0; /* A modal-on belüli form-nál ne legyen extra margó */
}


.modal-content button:hover {
    background-color: var(--primary-color-dark);
}

/* --- Új: Toast üzenetek stílusa (shared.js-hez) --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: toast-in 0.5s, toast-out 0.5s 3.5s;
    opacity: 0;
    background-color: var(--accent-color); /* Alapértelmezett (info) */
}

/* Vendég időpontfoglalás stílusai */
.guest-booking-container {
    display: none; /* A JS kezeli a megjelenítést egy modális ablakban */
}

.toast.success { background-color: var(--accent-color); }
.toast.error { background-color: var(--danger-color); }

/* --- Új: Animációk --- */
/* ÚJ: Pattogó modal animáció */
@keyframes modal-pop-in {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- ÚJ: EGYSÉGES, MODERN BEZÁRÓ GOMB STÍLUS (dashboard.css-ből áthozva) --- */
.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    background: var(--card-bg);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 10; /* Biztosan a tartalom felett legyen */
}

.close-button:hover {
    background-color: rgba(84, 193, 198, 0.2); /* --primary-color-rgb alapú áttetsző háttér */
    color: var(--primary-color);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 10px rgba(84, 193, 198, 0.5);
}

@keyframes content-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ÚJ: Letiltott bejelentkezés modal stílus --- */
.disabled-login-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: icon-bounce 2s infinite ease-in-out;
}

.disabled-login-icon .fa-cogs {
    animation-duration: 4s; /* A fogaskerekek lassabban forogjanak */
    animation-name: spin;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content button:not(.close-button) {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    /* ÚJ: A gomb alap stílusainak hozzáadása a .btn-primary-hez is */
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    width: 100%;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    font-family: 'Urbanist', sans-serif;
}

.modal-content form .input-wrapper {
    margin-top: 0; /* A modal-on belüli form-nál ne legyen extra margó */
}


.modal-content button:hover {
    background-color: var(--primary-color-dark);
}

/* --- Új: Toast üzenetek stílusa (shared.js-hez) --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: toast-in 0.5s, toast-out 0.5s 3.5s;
    opacity: 0;
    background-color: var(--accent-color); /* Alapértelmezett (info) */
}

/* Vendég időpontfoglalás stílusai */
.guest-booking-container {
    display: none; /* A JS kezeli a megjelenítést egy modális ablakban */
}

.toast.success { background-color: var(--accent-color); }
.toast.error { background-color: var(--danger-color); }

/* --- Új: Animációk --- */
/* ÚJ: Pattogó modal animáció */
@keyframes modal-pop-in {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- ÚJ: EGYSÉGES, MODERN BEZÁRÓ GOMB STÍLUS (dashboard.css-ből áthozva) --- */
/* ÚJ: Modal close button styles - végleges verzió */
.close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-button:hover {
    background-color: rgba(var(--primary-color-rgb), 0.2);
    color: var(--primary-color);
    transform: scale(1.1) rotate(90deg);
}

@keyframes content-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ÚJ: Letiltott bejelentkezés modal stílus --- */
.disabled-login-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: icon-bounce 2s infinite ease-in-out;
}

.disabled-login-icon .fa-cogs {
    animation-duration: 4s; /* A fogaskerekek lassabban forogjanak */
    animation-name: spin;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content button:not(.close-button) {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    /* ÚJ: A gomb alap stílusainak hozzáadása a .btn-primary-hez is */
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    width: 100%;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    font-family: 'Urbanist', sans-serif;
}

.modal-content form .input-wrapper {
    margin-top: 0; /* A modal-on belüli form-nál ne legyen extra margó */
}


.modal-content button:hover {
    background-color: var(--primary-color-dark);
}

/* --- Új: Toast üzenetek stílusa (shared.js-hez) --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: toast-in 0.5s, toast-out 0.5s 3.5s;
    opacity: 0;
    background-color: var(--accent-color); /* Alapértelmezett (info) */
}

/* Vendég időpontfoglalás stílusai */
.guest-booking-container {
    display: none; /* A JS kezeli a megjelenítést egy modális ablakban */
}

.toast.success { background-color: var(--accent-color); }
.toast.error { background-color: var(--danger-color); }

/* --- Új: Animációk --- */
/* ÚJ: Pattogó modal animáció */
@keyframes modal-pop-in {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- HIÁNYZÓ DASHBOARD STÍLUSOK PÓTLÁSA --- */

/* Navigáció és Elrendezés */
#main-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    padding: 10px;
}

#main-nav li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#main-nav li a:hover, #main-nav li a.active {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.view-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 20px;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Táblázatok (Data Tables) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

/* Mobil menü gomb */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger-menu { display: block; }
    #main-nav { display: none; } /* JS kezeli a megjelenítést mobilon */
    
    /* Reszponzív táblázat */
    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td {
        display: block;
        width: 100%;
    }
    .data-table tr {
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        background: white;
    }
    .data-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: var(--primary-color);
    }
}

/* --- ÚJ: Mobil Optimalizálás (Óra Naplózás) és Animációk --- */

/* 1. Óra Naplózás Mobil Nézet */
.log-class-form-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Desktop: Balra infók, Jobbra diákok */
    gap: 20px;
    height: 100%;
    overflow: hidden;
}

.student-log-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid var(--medium-gray);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .log-class-form-grid {
        grid-template-columns: 1fr; /* Mobil: Egymás alatt */
        grid-template-rows: auto 1fr;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .log-details-column { margin-bottom: 20px; }

    .student-log-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .student-name {
        font-weight: bold;
        font-size: 1.1em;
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
        margin-bottom: 5px;
    }

    .log-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
    }
    
    .grade-btn-group { flex-grow: 1; justify-content: center; }
    .grade-comment-input { width: 100%; }
}

/* 2. Fejlődés Nézet Animációk */
.animate-fade-in { animation: fadeIn 0.8s ease-out forwards; }
.animate-slide-up { opacity: 0; animation: slideUp 0.6s ease-out forwards; }
.animate-slide-down { opacity: 0; animation: slideDown 0.6s ease-out forwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }

/* Progress Grid Layout */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* --- ÚJ: Mobil Optimalizálás és Animációk --- */

/* 1. Óra Naplózás Mobil Nézet */
.log-class-form-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Desktop: Balra infók, Jobbra diákok */
    gap: 20px;
    height: 100%;
    overflow: hidden;
}

.student-log-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid var(--medium-gray);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .log-class-form-grid {
        grid-template-columns: 1fr; /* Mobil: Egymás alatt */
        grid-template-rows: auto 1fr;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .log-details-column {
        margin-bottom: 20px;
    }

    .student-log-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .student-name {
        font-weight: bold;
        font-size: 1.1em;
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
        margin-bottom: 5px;
    }

    .log-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
    }
    
    .grade-btn-group {
        flex-grow: 1;
        justify-content: center;
    }
    
    .grade-comment-input {
        width: 100%;
    }
}

/* 2. Fejlődés Nézet Animációk */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

.animate-slide-down {
    opacity: 0;
    animation: slideDown 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress Grid Layout */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
