/* Основни настройки */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

:root {
    --bg-color: #fcfbf9; /* Топъл, почти бял цвят */
    --text-color: #2c2c2c;
    --accent-color: #8c7b6c; /* Земен тон */
    --dark-bg: #1a1a1a;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: var(--font-serif);
    font-weight: 400;
}

.logo {
    color: #fff;
}

.logo img {
    height: 100px; /* Регулирай тази височина според формата на логото */
    width: auto;
}

/* --- НОВА НАВИГАЦИЯ --- */

/* Фиксирана лента горе */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2000; /* Най-отгоре */
    box-sizing: border-box;
    background: transparent; /* Прозрачен фон докато не се скролне */
    transition: background 0.3s;
}

.navbar.scrolled {
    background-color: #000;
}

/* Дясна част (Икони + Бутон) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 25px; /* Разстояние между иконите */
}

.social-icon {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--accent-color);
}

/* Хамбургер бутон */
.menu-toggle {
    cursor: pointer;
    z-index: 2001; /* Трябва да е над менюто */
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: 0.4s;
}

/* Анимация на хикса (X) когато е отворено */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: #fff; /* Става бял върху тъмното меню */
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: #fff;
}

/* --- OVERLAY MENU (Тъмният екран) --- */
.overlay-menu {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1500;
    top: 0;
    left: 0;
    background-color: #111; /* Тъмен фон като на снимката */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.overlay-menu.open {
    opacity: 1;
    visibility: visible;
}

/* Езици най-горе */
.lang-switch-large {
    position: absolute;
    top: 160px;
    width: 100%;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 1rem;
    letter-spacing: 2px;
    color: #666;
}

.lang-switch-large .lang-btn {
    margin: 0 15px;
    cursor: pointer;
    transition: color 0.3s;
}

.lang-switch-large .lang-btn.active,
.lang-switch-large .lang-btn:hover {
    color: #fff; /* Бял цвят за активния език */
    font-weight: bold;
}

/* Списък с менюта */
.menu-list {
    list-style: none;
    padding: 0;
    text-align: center;
    margin-top: 50px;
}

.menu-list li {
    margin: 20px 0;
    opacity: 0; /* Скрити са в началото */
    transform: translateY(20px); /* Леко изместени надолу */
    transition: all 0.5s ease;
}

.menu-list li a {
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 2rem; /* Големи букви */
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: color 0.3s;
}

.menu-list li a:hover {
    color: var(--accent-color);
}

/* --- АНИМАЦИЯ НА ПОЯВЯВАНЕ --- */
/* Когато менюто е отворено, линковете се появяват един след друг */
.overlay-menu.open .menu-list li {
    opacity: 1;
    transform: translateY(0);
}

/* Закъснение за всеки следващ елемент */
.overlay-menu.open .menu-list li:nth-child(1) { transition-delay: 0.1s; }
.overlay-menu.open .menu-list li:nth-child(2) { transition-delay: 0.2s; }
.overlay-menu.open .menu-list li:nth-child(3) { transition-delay: 0.3s; }
.overlay-menu.open .menu-list li:nth-child(4) { transition-delay: 0.4s; }
.overlay-menu.open .menu-list li:nth-child(5) { transition-delay: 0.5s; }

/* Hero Секция */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    /* Тук може да сложиш снимка за фон */
    background: url('images/hero-bg.jpg?v=12') no-repeat center center/cover;
    
    position: relative; 
}

.hero h1 {
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: #ffffff;
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 15px 30px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;            
    transition: all 0.3s ease;
}

/* Бутонът в началната секция да е бял */
.hero .cta-button {
    border-color: #ffffff;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.801);
}

.cta-button:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Секции */
.content-section {
    padding: 6rem 5%;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.dark-bg {
    background-color: var(--dark-bg);
    color: var(--bg-color);
}

.highlight-text {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    text-align: center;
    margin-bottom: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

#about .container {
    max-width: 1250px;
}

/* About Section Layout */
.about-wrapper {
    display: grid;
    grid-template-columns: 3fr 2.4fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* За мобилни устройства */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
    .about-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .navbar { padding: 15px 20px; }
    .logo img { height: 60px; }
}

.signature {
    margin-top: 3rem;
    font-style: italic;
    text-align: right;
}

/* --- STYLISH MODAL (COMING SOON) --- */
.modal {
    display: none; /* Скрито по подразбиране */
    position: fixed;
    z-index: 3000; /* Най-отгоре, над менюто */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* По-прозрачен тъмен фон */
    backdrop-filter: blur(15px); /* Силно замъгляване на фона */
    -webkit-backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal-content {
    /* Glassmorphism ефект */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px; /* Заоблени ъгли */
    padding: 60px 50px;
    box-sizing: border-box;
    width: auto;
    max-width: 90%;
    height: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 370px;
}

.modal-content p {
    /* Стил на бутон */
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color), #a89f91); /* Градиент */
    padding: 18px 40px;
    width: auto;
    height: auto;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 20px rgba(140, 123, 108, 0.4); /* Glow ефект */
    margin: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .modal-content {
        padding: 40px 20px;
    }
}

/* --- MAP SECTION --- */
.map-section {
    width: 100%;
    line-height: 0; /* Removes bottom whitespace for clean transition */
}

.map-section iframe {
    display: block; /* Ensures no inline gaps */
    width: 100%;
    height: 450px;
}

@media (max-width: 768px) {
    .map-section iframe {
        height: 350px;
    }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.95); /* Тъмен фон */
    color: #fff;
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    z-index: 9999; /* Най-отгоре */
    display: none; /* Скрито по подразбиране, показва се с JS */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-sizing: border-box;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 25px;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.cookie-btn.accept {
    background-color: #fff;
    color: #000;
}

.cookie-btn.accept:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.cookie-btn.decline {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #ccc;
}

.cookie-btn.decline:hover {
    border-color: #fff;
    color: #fff;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* --- RESERVATION FORM STYLES --- */
.reservation-content {
    flex-direction: column;
    align-items: stretch;
    max-width: 500px;
    width: 90%;
    padding: 40px;
}

.reservation-content h2 {
    color: #fff;
    font-family: var(--font-serif);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #ddd;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-family: var(--font-sans);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-sans);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    display: grid;
    place-content: center;
    margin-top: 2px; /* Align with the first line of text */
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-group input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-group input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.checkbox-group label {
    color: #ddd;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    cursor: pointer;
    line-height: 1.5;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
    margin-top: 10px;
    font-family: var(--font-sans);
    font-weight: 600;
}

.submit-btn:hover {
    background-color: #a89f91;
}

/* --- SUCCESS MODAL STYLES --- */
.success-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    max-width: 400px;
}

.success-icon {
    font-size: 4rem;
    color: #5cb85c; /* Green */
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(92, 184, 92, 0.3);
}

.success-content h2 {
    margin-top: 0;
}

.success-content p {
    color: #ddd;
    margin-bottom: 25px;
}

/* --- PDF MENU MODAL & BUTTON --- */

.menu-btn-container {
    text-align: center;
    margin-top: 40px;
}

.menu-btn {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 35px;
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background-color: #fff;
    color: var(--dark-bg);
}

/* --- IMAGE MENU MODAL --- */
.image-modal {
    display: none;
    position: fixed;
    z-index: 3001; /* Above other modals */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto; /* Crucial for scrolling long menus */
}

.modal-content-img {
    margin: 5% auto;
    display: block;
    width: 80%;
    max-width: 800px;
    border-radius: 4px;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Mobile Responsiveness */
@media only screen and (max-width: 700px){
    .modal-content-img {
        width: 100%;
        margin: 20% auto; /* More space on top for mobile */
    }
}

.close-menu {
    position: fixed;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 3002;
    cursor: pointer;
}

.close-menu:hover,
.close-menu:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* --- CONTACT SECTION REDESIGN --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.contact-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #fff;
    font-family: var(--font-serif);
}

.contact-item p, .contact-item a {
    margin: 0;
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.6;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #fff;
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: none;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --- LEGAL FOOTER & MODALS --- */
.legal-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #888;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.legal-footer a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.legal-modal {
    display: none;
    position: fixed;
    z-index: 4000; /* Above everything else */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.legal-modal-content {
    background-color: #fff;
    color: #333;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    padding: 40px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: left;
}

.legal-modal-content h2 {
    margin-top: 0;
    font-family: var(--font-serif);
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.close-legal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-legal:hover {
    color: #333;
}

/* --- LEGAL CONTENT STYLING --- */
.legal-content {
    font-family: var(--font-sans);
    color: #333;
    line-height: 1.6;
}

.legal-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.legal-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.legal-content ul {
    margin-bottom: 15px;
    padding-left: 25px;
}

.legal-content li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* --- DUAL LANGUAGE VISIBILITY --- */
/* Hide English content when language is Bulgarian */
html[lang="bg"] .content-en { display: none !important; }
/* Hide Bulgarian content when language is English */
html[lang="en"] .content-bg { display: none !important; }

/* Inline Language Switching (Footer, etc.) */
html[lang="bg"] .lang-en { display: none !important; }
html[lang="en"] .lang-bg { display: none !important; }

/* --- ADMIN HEADER MOBILE FIX --- */
/* Desktop Fix for Header Buttons */
.admin-header .action-btn {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .admin-header-content {
        flex-direction: column;
        gap: 15px;
    }

    .admin-header-content > div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 10px;
    }

    .admin-header .action-btn,
    .admin-header .logout-btn {
        width: auto;
        margin: 0 !important;
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

/* --- ADMIN STATISTICS CALENDAR MOBILE FIX --- */
@media (max-width: 768px) {
    /* Using .stats-container parent to override admin.html internal styles */
    .stats-container .calendar-grid {
        gap: 10px;
    }

    .stats-container .calendar-day {
        min-height: 60px;
        min-width: 34px;
        padding: 2px;
        border-radius: 4px;
    }

    .stats-container .day-number {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .stats-container .res-count-badge {
        font-size: 1rem;
        padding: 1px;
        line-height: 1;
        white-space: normal;
        text-align: center;
        width: 100%;
        display: block;
    }
}

/* --- MOBILE RESERVATION FORM FIX --- */
@media (max-width: 768px) {
    .reservation-content {
        max-height: 85vh;
        overflow-y: auto;
        padding: 30px 20px 80px 20px; /* Extra bottom padding for scrolling */
        display: block; /* Ensures scrolling works reliably */
    }

    .reservation-content .submit-btn {
        width: 100%;
    }
}

/* --- ADMIN MANAGE DATES STYLES --- */
.calendar-day.status-open {
    background-color: #dff0d8;
    border-color: #5cb85c;
    color: #3c763d;
}

.calendar-day.status-closed {
    background-color: #f2dede;
    border-color: #d9534f;
    color: #a94442;
}

/* --- ADMIN CALENDAR STATUS DOTS --- */
.calendar-day { position: relative; } /* Ensure parent is relative */

.status-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.dot-open { background-color: #4CAF50; } /* Green */
.dot-closed { background-color: #F44336; } /* Red */
.dot-default { background-color: #9E9E9E; } /* Grey */

/* --- ADMIN TOAST NOTIFICATION --- */
.admin-toast {
    visibility: hidden;
    min-width: 280px;
    background-color: #2c2c2c; /* Dark elegant background */
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 16px 24px;
    position: fixed;
    z-index: 5000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.admin-toast.toast-show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- ADMIN EDIT STYLES --- */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .action-buttons {
        width: auto;
        margin-left: auto;
        margin-top: 0;
    }
}

.btn-edit {
    background-color: #fff;
    color: #2196F3;
    border: 1px solid #2196F3;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    transition: all 0.3s;
    width: 100%; /* Match delete button width in stack */
    text-align: center;
}

.btn-edit:hover {
    background-color: #2196F3;
    color: #fff;
}

.admin-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: var(--font-sans);
    font-size: 1rem;
}

/* Ensure delete button matches width in the stack */
.delete-btn {
    width: 100%;
    text-align: center;
    margin-top: 5px;
}

/* --- ANIMATED TOGGLE SWITCH --- */
.status-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.status-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f44336; /* Red (Unconfirmed) */
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4CAF50; /* Green (Confirmed) */
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* --- SPECIAL EVENT POPUP --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.popup-box {
    position: relative;
    background: var(--bg-color); /* Matches site theme */
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    animation: popIn 0.3s ease-out;
    color: var(--text-color);
}

.popup-box h2 {
    font-family: var(--font-serif);
    margin-top: 0;
    color: var(--accent-color);
}

.btn-close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.btn-close-popup:hover {
    color: var(--accent-color);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-sans);
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #a89f91;
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- ADMIN EVENT FORM GRID --- */
.event-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 20px;
}

.event-col-bg {
    border-right: 1px solid #eee;
    padding-right: 40px;
}

@media (max-width: 900px) {
    .event-lang-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .event-col-bg {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }
}

/* Fix for multi-line text and HTML rendering in event sections */
#popup-dynamic-text,
#dynamic-event-text {
    white-space: pre-wrap;
    line-height: 1.5;
}

/* --- KITCHEN & INVENTORY STYLES --- */
.kitchen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-family: var(--font-sans);
}

.admin-table th, .admin-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
}

.admin-table th {
    background-color: #f4f4f4;
    font-weight: 600;
    color: #333;
}

.recipe-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    transition: box-shadow 0.3s;
}

.recipe-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .kitchen-grid {
        grid-template-columns: 1fr;
    }
}

/* --- RECIPE INGREDIENTS & CALCULATOR --- */
.ingredient-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.ingredient-row select {
    flex: 2;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-sans);
}

.ingredient-row input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-sans);
}

.btn-remove-row {
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-weight: bold;
}

.calculator-ui {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.calc-result {
    margin-top: 10px;
    background: #f0f8ff;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid #d1e7dd;
}

.calc-table {
    width: 100%;
    border-collapse: collapse;
}

.calc-table td {
    padding: 4px 0;
    border-bottom: 1px solid #e0e0e0;
}

.calc-table tr:last-child td {
    border-bottom: none;
}

/* --- KITCHEN DASHBOARD WIDGETS --- */
.kitchen-dashboard-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.dashboard-widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent-color);
}

.forecast-widget {
    border-top-color: #f0ad4e; /* Orange for warning/action */
}

.deduction-widget {
    border-top-color: #5cb85c; /* Green for completion */
}

.widget-title {
    font-family: var(--font-serif);
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.widget-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.shopping-list-result {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 0.95rem;
    max-height: 200px;
    overflow-y: auto;
}

.shopping-item-alert {
    color: #d9534f;
    font-weight: bold;
    margin-bottom: 5px;
}

@media (max-width: 900px) {
    .kitchen-dashboard-widgets {
        grid-template-columns: 1fr;
    }
}

/* --- MOBILE OPTIMIZATION FOR KITCHEN TAB --- */
@media (max-width: 768px) {
    /* 1. Containers: Maximize screen real estate */
    .dashboard-widget {
        padding: 10px 5px;
    }

    /* 2. Inputs & Buttons: Full width for touch targets */
    #kitchen-view .dashboard-widget input,
    #kitchen-view .dashboard-widget select,
    #kitchen-view .dashboard-widget button,
    .calculator-ui input,
    .calculator-ui button {
        width: 100% !important; /* Override inline styles */
        box-sizing: border-box;
        max-width: 100%;
        margin-bottom: 10px;
    }

    /* Fix for widget rows to stack */
    .widget-row {
        flex-direction: column;
        gap: 5px;
    }

    /* 3. Dynamic Rows: Stack ingredients */
    .ingredient-row {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    #kitchen-view .admin-table {
        min-width: 500px; /* Force table to be wide enough to read */
    }

    /* --- DASHBOARD CHARTS (Task 4) --- */
    .dashboard-charts-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    @media (max-width: 900px) {
        .dashboard-charts-grid {
            grid-template-columns: 1fr;
        }
    }
}

/* --- INVENTORY FILTERS --- */
.inventory-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: 20px;
}

.filter-btn {
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active-filter {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* --- LOW STOCK ALERT --- */
.low-stock-row {
    background-color: #ffebee !important;
    border-left: 4px solid #f44336;
}

.low-stock-warning {
    display: inline-block;
    background-color: #f44336;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: bold;
}

/* --- UNIFIED DASHBOARD CARD (Task 1) --- */
.dashboard-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #eee;
    border-top: 5px solid transparent; /* Allows widgets to apply color */
}

@media (max-width: 768px) {
    .dashboard-card {
        padding: 15px; 
    }
}

.dashboard-card input, 
.dashboard-card select, 
.dashboard-card textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

@media (max-width: 900px) {
    .dashboard-charts-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- FLOOR PLAN TABLES --- */
#floor-plan-container {
    background-color: #b9b9b9 !important;
    border: 2px dashed #ccc !important;
}

.floor-table {
    position: absolute;
    cursor: grab;
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    touch-action: none;
}

.floor-table:active {
    cursor: grabbing;
    z-index: 100;
    opacity: 0.9;
}

.shape-square {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.shape-rectangular {
    width: 120px;
    height: 80px;
    border-radius: 8px;
}

.shape-round {
    width: 90px;
    height: 90px;
    border-radius: 50%;
}

.table-name {
    font-weight: bold;
    font-size: 14px;
}

.table-seats {
    font-size: 11px;
    color: #777;
}

#kitchen-zone {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 2px dashed #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    user-select: none;
    z-index: 1;
}

.table-occupied {
    background-color: #d32f2f !important;
    border-color: #ff5252 !important;
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.6) !important;
    color: white !important;
}

.table-guest-name {
    font-size: 11px;
    color: #0056b3;
    margin-top: 4px;
    text-align: center;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    font-weight: bold;
    white-space: nowrap;
}

/* Ensure Modals are Light */
#add-table-modal .admin-modal-content,
#assign-table-modal .admin-modal-content {
    background-color: #ffffff;
    color: #333;
}

#add-table-modal input,
#add-table-modal select,
#assign-table-modal input,
#assign-table-modal select {
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
}

/* --- GOOGLE REVIEWS SECTION --- */
#google-reviews-section {
    padding: 4rem 5%;
    background-color: #fcfbf9;
}

.reviews-slider-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

#reviews-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.review-card {
    min-width: calc(50% - 10px);
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 25px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .review-card {
        min-width: 100%;
    }
}

.review-stars {
    color: #fbbc04;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.review-name {
    font-family: var(--font-sans);
    font-weight: bold;
    color: #2c2c2c;
    margin-bottom: 10px;
}