﻿/* Font Face for Quesha */
@font-face {
    font-family: 'Quesha';
    src: url('./quesha-font/Quesha-gndR.ttf') format('truetype');
}

/* Hide static menu sections and filter buttons by default until JS validates them */
.menu-section {
    display: none;
}

.category-filter .filter-btn:not([data-category="all"]) {
    display: none;
}

/* When a section is explicitly marked visible by JS */
.menu-section.visible {
    display: block;
}

.category-filter .filter-btn.visible {
    display: inline-block;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quesha', cursive;
    background: linear-gradient(135deg, #2c1810, #5c3d2e, #8b6f47, #d4a574);
    background-attachment: fixed;
    color: #2c1810;
    min-height: 100vh;
    padding: 20px 10px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

/* Header */
.menu-header {
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #f5e6d3;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 4px solid #d4a574;
    position: relative;
}

.logo {
    margin-bottom: 20px;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.coffee-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: steam 2s ease-in-out infinite;
}

@keyframes steam {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-5px); opacity: 0.8; }
}

.logo h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: 5px;
    font-weight: normal;
    color: #ffd89b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    font-family: 'Quesha', cursive;
}

.tagline {
    font-family: 'Quesha', cursive;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    opacity: 0.9;
    color: #d4a574;
}

.search-bar {
    margin-top: 20px;
}

#searchInput {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #d4a574;
    border-radius: 25px;
    font-size: 1.1rem;
    font-family: 'Quesha', cursive;
    font-weight: normal;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

#searchInput:focus {
    border-color: #ffd89b;
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.5);
    transform: scale(1.02);
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #8b6f47, #ad7e4c);
    border-radius: 15px;
    /*border-bottom: 2px solid #e0d0b8; */
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #8b6f47;
    background: white;
    color: #000000;
    border-radius: 20px;
    cursor: pointer;
    font-size: clamp(1.5rem, 1.5vw, 1.2rem);
    font-family: 'Quesha', cursive;
    font-weight: normal;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.filter-btn:hover {
    background: #8b6f47;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    border-color: #5c3d2e;
}

/* Menu Content */
.menu-content {
    padding: 30px 20px;
    background: linear-gradient(135deg, #8b6f47, #d4a574);
}

.menu-section {
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease-in;
    background: linear-gradient(135deg, #5c3d2e, #8b6f47, #d4a574);
    border-radius: 15px;
}

.menu-section.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-family: 'Quesha', cursive;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #d4a574;
    display: inline-block;
    font-weight: normal;
}

.subcategory-title {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-family: 'Quesha', cursive;
    color: #5c3d2e;
    margin: 20px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #d4a574;
    display: inline-block;
    font-weight: normal;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fff, #faf8f5);
    border: 2px solid #e0d0b8;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.2), transparent);
    transition: left 0.5s ease;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    border-color: #8b6f47;
    box-shadow: 0 8px 20px rgba(139, 111, 71, 0.2);
    transform: translateY(-3px);
}

.item-name {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #ffffff;
    font-weight: normal;
    flex: 1;
    background-color: #5c3d2e;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    font-family: 'Quesha', cursive;
}

.item-price {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-family: 'Quesha', cursive;
    color: #5c3d2e;
    font-weight: normal;
    background: linear-gradient(135deg, #d4a574, #ffd89b);
    padding: 5px 15px;
    border-radius: 20px;
    margin-left: 15px;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #fffdf8, #f6efe4);
}

.product-card-image-wrap {
    width: 100%;
    height: 180px;
    background: #f5e6d3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card-actions {
    display: flex;
    gap: 10px;
}

.menu-price-btn,
.menu-order-btn,
.qty-btn,
.remove-btn {
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 14px;
}

.menu-price-btn {
    flex: 1;
    background: #f3d6a8;
    color: #4c2e1b;
    cursor: default;
}

.menu-order-btn {
    flex: 1;
    background: linear-gradient(135deg, #5c3d2e, #8b6f47);
    color: #fff;
}

.menu-details-btn {
    background: linear-gradient(135deg, #1976D2, #2196F3);
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 14px;
}

.no-pictures-card {
    background: #fff;
    border: 2px solid #d4a574;
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.no-pictures-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.no-pictures-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.no-pictures-card .item-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3e2723;
    font-family: 'Quesha', cursive;
}

.no-pictures-card .product-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.no-pictures-description {
    color: #5c3d2e;
    font-style: italic;
    line-height: 1.5;
    word-break: break-word;
}

/* Global no-pictures mode override */
body.no-pictures-mode .menu-item img,
body.no-pictures-mode .product-card-image-wrap,
body.no-pictures-mode .product-card-image {
    display: none !important;
}

/* Hide any remaining image-like elements in menu content when no-pictures mode is active */
body.no-pictures-mode .menu-content img {
    display: none !important;
}

/* Hide image backgrounds in menu items when no-pictures mode is active */
body.no-pictures-mode .menu-item {
    background-image: none !important;
}

/* Aggressive fallback: hide every image on the page when no-pictures mode is active */
body.no-pictures-mode img {
    display: none !important;
}

body.no-pictures-mode .menu-item {
    display: flex !important;
    flex-direction: column;
}

.cart-summary-box {
    background: #fff7eb;
    border: 1px solid #d4a574;
    border-radius: 12px;
    padding: 14px;
    margin: 12px 0;
}

.cart-summary-header,
.cart-total-row,
.cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-summary-header {
    margin-bottom: 10px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-row {
    background: #fff;
    border: 1px solid #eccda3;
    border-radius: 10px;
    padding: 10px;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    background: #5c3d2e;
    color: #fff;
    min-width: 34px;
}

.remove-btn {
    background: #e24d4d;
    color: #fff;
}

.empty-cart {
    color: #7d6a52;
    font-size: 0.95rem;
}

/* Footer */
.menu-footer {
    background: linear-gradient(135deg, #3e2723, #2c1810);
    color: #f5e6d3;
    padding: 25px 20px;
    text-align: center;
    border-top: 4px solid #d4a574;
}

.contact {
    font-family: 'Quesha', cursive;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: normal;
    margin-bottom: 10px;
    color: #ffd89b;
}

.powered {
    font-size: clamp(0.85rem, 2vw, 1rem);
    opacity: 0.8;
    font-style: italic;
}

.signature {
    font-family: 'Quesha', cursive;
    font-size: clamp(1.1rem, 2vw, 1.7rem);
    margin-top: 15px;
    color: #ffd89b;
    opacity: 0.95;
    font-weight: normal;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.2rem;
    color: #8b6f47;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px 5px;
    }

    .container {
        border-radius: 15px;
    }

    .menu-header {
        padding: 20px 15px;
    }

    .coffee-icon {
        font-size: 2.5rem;
    }

    .category-filter {
        padding: 20px 15px;
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .menu-content {
        padding: 20px 15px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .menu-header {
        padding: 15px 10px;
    }

    .category-filter {
        padding: 15px 10px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .menu-content {
        padding: 15px 10px;
    }

    .menu-item {
        padding: 12px 15px;
    }

    .menu-footer {
        padding: 20px 15px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    padding: 20px 25px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-family: 'Quesha', cursive;
    font-weight: normal;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: #ffd89b;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

.selected-item-display {
    background: linear-gradient(135deg, #f5e6d3, #faf8f5);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid #d4a574;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.item-info {
    flex: 1;
    text-align: left;
}

.selected-item-display h3 {
    color: #3e2723;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    margin-bottom: 10px;
    font-family: 'Quesha', cursive;
    font-weight: normal;
}

.selected-price {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-family: 'Quesha', cursive;
    font-weight: normal;
    color: #5c3d2e;
    background: linear-gradient(135deg, #d4a574, #ffd89b);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
}

.item-image-container {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    border: 2px solid #e0d0b8;
    overflow: hidden;
}

.selected-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #3e2723;
    font-weight: normal;
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-family: 'Quesha', cursive;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0d0b8;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: 'Quesha', cursive;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b6f47;
    box-shadow: 0 0 10px rgba(139, 111, 71, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.pickup-info {
    background: #fffaf0;
    border-left: 4px solid #d4a574;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
}

.pickup-info p {
    margin: 8px 0;
    color: #3e2723;
    font-size: 0.95rem;
}

.submit-order-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    border: none;
    border-radius: 12px;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-family: 'Quesha', cursive;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.submit-order-btn:hover {
    background: linear-gradient(135deg, #3e2723, #2c1810);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Floating Orders Button */
.floating-orders-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 140px;
    height: 64px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    border: 3px solid #d4a574;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.floating-orders-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.orders-icon {
    font-size: 1.4rem;
}

.orders-label {
    white-space: nowrap;
}

.order-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    border: 2px solid white;
}

/* Active Orders Container */
.active-orders-container {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 998;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.active-orders-header {
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.active-orders-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-family: 'Quesha', cursive;
    font-weight: normal;
}

.close-orders-btn {
    background: none;
    border: none;
    color: #ffd89b;
    font-size: 1.5rem;
    font-family: 'Quesha', cursive;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-orders-btn:hover {
    transform: rotate(90deg);
    color: white;
}

#activeOrdersList {
    max-height: 420px;
    overflow-y: auto;
    padding: 15px;
}

.order-card {
    background: linear-gradient(135deg, #faf8f5, #fff);
    border: 2px solid #e0d0b8;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.order-number {
    background: linear-gradient(135deg, #d4a574, #ffd89b);
    color: #3e2723;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
}

.order-item-name {
    font-size: 1.3rem;
    font-weight: normal;
    color: #3e2723;
    margin: 8px 0;
    font-family: 'Quesha', cursive;
}

.order-price {
    color: #5c3d2e;
    font-weight: bold;
    font-size: 1rem;
}

.order-customer-info {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0;
}

.countdown-display {
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    margin-top: 12px;
    font-weight: bold;
}

.countdown-time {
    font-size: 1.8rem;
    display: block;
    margin: 5px 0;
}

.countdown-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.order-ready {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.cancel-order-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Quesha', cursive;
    font-weight: normal;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.cancel-order-btn:hover {
    background: #cc0000;
}

.empty-orders {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        max-width: 95%;
    }

    .active-orders-container {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        bottom: 100px;
    }

    .floating-orders-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .order-count {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .modal-body {
        padding: 20px 15px;
    }

    .selected-item-display {
        padding: 15px;
        flex-direction: column;
        align-items: center;
    }

    .item-info {
        text-align: center;
        width: 100%;
    }

    .item-image-container {
        width: 120px;
        height: 120px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
    }
}

/* Contact Link & Modal Styles */
.contact-link {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px dotted #3e2723;
}

.contact-link:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

/* Modal styles */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.contact-modal[style*="display: flex"],
.contact-modal[style*="display:flex"] {
    display: flex !important;
}

.contact-content {
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid #d4a574;
    position: relative;
    color: #fff;
}

.contact-content h3 {
    font-family: 'Quesha', cursive;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ffd89b;
    font-weight: normal;
}

.contact-content p {
    font-family: 'Quesha', cursive;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-content strong {
    color: #d4a574;
}

.contact-content ul {
    list-style: none;
    margin-left: 20px;
    margin-bottom: 20px;
}

.contact-content li {
    margin-bottom: 8px;
    font-family: 'Quesha', cursive;
    font-size: 1rem;
}

.contact-content a {
    color: #ffd89b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-content a:hover {
    color: #fff;
    text-decoration: underline;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #ffd89b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #fff;
    transform: scale(1.2);
}

/* Staff Link Container */
.staff-link-container {
    margin-top: 20px;
    text-align: center;
}

.staff-link {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #d4a574, #ffd89b);
    color: #3e2723;
    text-decoration: none;
    border-radius: 25px;
    font-weight: normal;
    font-size: 1.2rem;
    font-family: 'Quesha', cursive;
    transition: all 0.3s ease;
    border: 2px solid #ffd89b;
}

.staff-link:hover {
    background: linear-gradient(135deg, #ffd89b, #d4a574);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
}

/* Customer Notifications Panel */
.customer-notifications-panel {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 320px;
    max-height: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 997;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.notifications-header {
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: normal;
    font-family: 'Quesha', cursive;
}

.notifications-close-btn {
    background: none;
    border: none;
    color: #ffd89b;
    font-size: 1.5rem;
    font-family: 'Quesha', cursive;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
}

.notifications-close-btn:hover {
    transform: rotate(90deg);
    color: white;
}

.notifications-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.notification-item {
    background: linear-gradient(135deg, #faf8f5, #fff);
    border-left: 4px solid #d4a574;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #3e2723;
}

.notification-timestamp {
    font-size: 0.75rem;
    color: #999;
    margin-top: 5px;
}

.empty-notifications {
    text-align: center;
    padding: 30px 15px;
    color: #999;
    font-style: italic;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .search-bar,
    .category-filter,
    .modal,
    .floating-orders-btn,
    .active-orders-container,
    .customer-notifications-panel,
    .staff-link-container {
        display: none;
    }

    .menu-item {
        break-inside: avoid;
    }
}

/* Responsive Adjustments for Notifications */
@media (max-width: 768px) {
    .customer-notifications-panel {
        width: calc(100% - 20px);
        left: 10px;
        bottom: 100px;
    }
}

/* ===== FULLSCREEN PAGE LOADER ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a, #0a0a0a);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    max-width: 520px;
    padding: 40px;
}

.loader-spinner {
    width: 140px;
    height: 140px;
    margin: 0 auto 30px auto;
    border: 12px solid rgba(212, 165, 116, 0.2);
    border-top: 12px solid #d4a574;
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
}

.loader-title {
    color: #ffd89b;
    font-size: 3.2rem;
    margin: 0 0 10px 0;
    font-family: 'Quesha', cursive;
    letter-spacing: 3px;
}

.loader-subtitle {
    color: #b8a088;
    font-size: 1.6rem;
    margin: 0 0 30px 0;
    font-family: 'Quesha', cursive;
}

.loader-progress {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 18px;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #d4a574, #ffd89b);
    border-radius: 7px;
    transition: width 0.3s ease;
}

.loader-status {
    color: #b8a088;
    font-size: 1.2rem;
    margin: 0;
    font-family: 'Quesha', cursive;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== NETWORK ERROR OVERLAY ===== */
.network-error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.network-error-box {
    background: linear-gradient(135deg, #1a1a1a, #111111);
    border: 3px solid #f44336;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.network-error-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.network-error-box h2 {
    color: #f44336;
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
    font-family: 'Quesha', cursive;
    font-weight: normal;
}

.network-error-box p {
    color: #ddd;
    font-size: 1rem;
    margin: 0 0 8px 0;
    font-family: 'Quesha', cursive;
}

.network-error-sub {
    color: #999;
    font-size: 0.9rem;
}

.network-retry-btn {
    margin-top: 20px;
    padding: 12px 35px;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Quesha', cursive;
    font-weight: normal;
}

.network-retry-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

/* ===== CUSTOM CONFIRMATION MODAL ===== */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.custom-modal-box {
    background: linear-gradient(135deg, #fff, #faf5ee);
    border: 3px solid #d4a574;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.custom-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.custom-modal-box h3 {
    color: #3e2723;
    font-size: 1.6rem;
    margin: 0 0 10px 0;
    font-family: 'Quesha', cursive;
    font-weight: normal;
}

.custom-modal-box p {
    color: #666;
    font-size: 1.05rem;
    margin: 0 0 25px 0;
    font-family: 'Quesha', cursive;
}

.custom-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-btn-cancel,
.custom-btn-confirm {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Quesha', cursive;
    font-weight: normal;
}

.custom-btn-cancel {
    background: #e0e0e0;
    color: #333;
}

.custom-btn-cancel:hover {
    background: #d0d0d0;
}

.custom-btn-confirm {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.custom-btn-confirm:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

@media (max-width: 480px) {
    .custom-modal-box {
        padding: 25px;
    }
    .custom-modal-buttons {
        flex-direction: column;
    }
    .custom-btn-cancel,
    .custom-btn-confirm {
        width: 100%;
    }
}

