/* style.css - Modern UI with responsive design */
:root {
    --primary: #2c3e66;
    --primary-dark: #1e2a4a;
    --primary-light: #4a6a8f;
    --accent: #e67e22;
    --accent-light: #f39c12;
    --success: #27ae60;
    --danger: #e74c3c;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-radius: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.app-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 20px 16px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    position: relative;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
}

.app-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.admin-link {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-light);
    font-size: 1.3rem;
    transition: var(--transition);
    opacity: 0.7;
}

.admin-link:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Day Navigation */
.day-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    background: var(--card-bg);
    padding: 8px 12px;
    border-radius: 60px;
    box-shadow: var(--shadow-sm);
}

.nav-btn {
    background: var(--light-bg);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.day-tabs-container {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: thin;
}

.day-tabs {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-width: max-content;
}

.day-tab {
    padding: 10px 16px;
    border-radius: 40px;
    background: transparent;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.day-tab:hover {
    background: var(--light-bg);
    color: var(--primary);
}

.day-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.day-tab.current-day {
    border: 2px solid var(--accent);
    background: rgba(230, 126, 34, 0.1);
    color: var(--accent);
    position: relative;
}

.day-tab.current-day.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Menu Content */
.selected-day-header {
    text-align: center;
    margin-bottom: 24px;
}

.selected-day-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
}

.selected-day-header .date-badge {
    display: inline-block;
    background: var(--light-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 8px;
}

.menu-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-category {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.category-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 1.2rem;
}

.category-header i {
    margin-right: 10px;
}

.menu-items {
    padding: 8px 0;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: var(--light-bg);
}

.item-info h4 {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.item-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.item-price {
    font-weight: 700;
    color: var(--accent);
    background: rgba(230, 126, 34, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.empty-menu-message {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-menu-message i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.loading-spinner {
    text-align: center;
    padding: 60px;
    color: var(--primary-light);
    font-size: 1.2rem;
}

/* Footer */
.app-footer {
    margin-top: 48px;
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.allergy-note {
    margin-top: 8px;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-container {
        padding: 12px 12px 20px;
    }
    
    .app-header h1 {
        font-size: 1.4rem;
    }
    
    .day-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .nav-btn {
        width: 38px;
        height: 38px;
    }
    
    .menu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .item-price {
        align-self: flex-start;
    }
    
    .category-header {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .menu-item {
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .day-tab {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .selected-day-header h2 {
        font-size: 1.4rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}