/* View Menu Page Styles - Dark Theme like Reference Image */

/* Page Background - White background */
html, body {
    background-color: #fff;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Main Container */
#menuContainer {
    background-color: transparent;
    min-height: 100vh;
}

/* Page Header Card */
.card {
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card-body {
    background: #fff;
    border-radius: 15px;
}

.text-primary {
    color: #ff6b35 !important;
}

/* Category Cards */
.menu-category-card {
    background: transparent;
    border: none;
    margin-bottom: 1.5rem;
    overflow: visible;
}

.menu-category-header {
    background: #ff6b35;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    font-weight: 600;
    font-size: 1.3rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.menu-category-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    text-transform: capitalize;
}

.menu-category-icon {
    display: none; /* Hide icons for cleaner look */
}

.menu-category-description {
    display: none; /* Hide descriptions for cleaner look */
}

/* Subcategory Sections */
.menu-subcategory {
    padding: 0;
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.menu-subcategory-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #ff6b35;
    display: inline-block;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
}

/* Two-column layout for Main Course */
.menu-columns-container {
    display: flex;
    gap: 1rem;
    padding-left: 1rem;
}

.menu-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.menu-column:first-child {
    padding-right: 0.5rem;
}

.menu-column:last-child {
    padding-left: 0.5rem;
}

/* Menu List Styling */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Menu Item Cards */
.menu-item-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    list-style-type: disc !important;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
    display: list-item !important;
}

.menu-item-card[style*="display: none"] {
    display: none !important;
}

.menu-item-card[style*="display: list-item"] {
    display: list-item !important;
}

.menu-item-card.search-hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.menu-item-card:hover {
    background: rgba(255, 107, 53, 0.05);
    border-color: transparent;
    transform: none;
    box-shadow: none;
    padding-left: 0.5rem;
}

.menu-item-card::before {
    display: none;
}

.menu-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.menu-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.menu-item-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
    font-style: italic;
}

/* Category Colors */
.category-starters .menu-category-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.category-main-course .menu-category-header {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.category-desserts .menu-category-header {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.category-beverages .menu-category-header {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 200px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Back to Top Button */
#backToTop {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Page Title Styling */
.display-6 {
    font-weight: 700;
    font-size: 2.5rem;
    color: #333 !important;
    margin-bottom: 2rem;
}

/* Search Box Styling */
.menu-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    height: 3.0rem;
    margin-right: 1rem;
}

.menu-search-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.menu-search-input::placeholder {
    color: #6c757d;
    font-style: italic;
    font-size: 0.85rem;
}

.search-results-info {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-items-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-category-header {
        padding: 0.6rem 1rem;
    }
    
    .menu-category-title {
        font-size: 1.1rem;
    }
    
    .display-6 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .menu-category-card {
        margin-bottom: 1rem;
    }
    
    .menu-item-card {
        padding: 0.4rem 0;
    }
    
    .menu-item-name {
        font-size: 0.9rem;
    }
    
    .menu-item-price {
        font-size: 0.8rem;
    }
    
    .display-6 {
        font-size: 1.8rem;
    }
}

/* Print Styles */
@media print {
    .menu-category-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .menu-category-header {
        background: #f8f9fa !important;
        color: #333 !important;
    }
    
    #backToTop {
        display: none !important;
    }
}
