/* General Page Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.dinner-menu-page {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.dinner-menu-page h1 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 2.5em;
    text-align: center;
}

.week-info {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
    font-weight: 500;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

/* Day Sections */
.day-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.day-section:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.day-section h3 {
    color: #667eea;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dinner-menu-page {
        padding: 25px;
    }

    .dinner-menu-page h1 {
        font-size: 2em;
    }

    .day-section {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }
}
/*week navigation*/
/* Week Navigation */
.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.week-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.week-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.week-display {
    text-align: center;
    flex: 1;
}

.week-display strong {
    font-size: 1.3em;
    display: block;
    margin-bottom: 5px;
}

.week-display .week-date {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95em;
}

/* Quick Jump Buttons */
.week-quick-jump {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.quick-jump-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.quick-jump-btn:hover {
    background: #667eea;
    color: white;
}

.quick-jump-btn.current {
    background: #667eea;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .week-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .week-nav-btn {
        width: 100%;
        text-align: center;
    }
    
    .week-quick-jump {
        flex-wrap: wrap;
    }
}
/* ===================================
   FIXED HEADER - REFINED
   =================================== */

.dinner-menu-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Dark background container for navigation */
.header-nav-container {
    background: rgba(15, 15, 25, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 180, 255, 0.3);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
}

/* Week Navigation Row */
.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.header-title {
    text-align: center;
}

.page-title {
    margin: 0;
    font-size: 1.4rem;
    color: #e8f0ff;
    font-weight: 600;
}

.week-date-header {
    margin: 2px 0 0 0;
    font-size: 0.85rem;
    color: #8899bb;
}

.week-nav-buttons {
    display: flex;
    gap: 15px;
}

.week-nav-btn {
    padding: 8px 16px;
    border: 1px solid rgba(100, 180, 255, 0.4);
    background: rgba(100, 180, 255, 0.08);
    color: #88b3ff;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.week-nav-btn:hover {
    background: rgba(100, 180, 255, 0.15);
    border-color: rgba(100, 180, 255, 0.6);
    color: #aac8ff;
    transform: translateY(-1px);
}

/* Floating Action Buttons Row */
.header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hamburger-menu {
    display: none;
    padding: 8px 12px;
    background: rgba(100, 180, 255, 0.12);
    border: 1px solid rgba(100, 180, 255, 0.4);
    color: #88b3ff;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.hamburger-menu:hover {
    background: rgba(100, 180, 255, 0.2);
}

.action-buttons {
  display: flex;
  gap: 12px;
  background: white;
  padding: 10px;
  border-radius: 0 0 5px 5px;
}
.back-btn, .save-btn {
  padding: 5px 6px;
  border: 1px solid rgba(100, 180, 255, 0.4);
  background: rgba(100, 180, 255, 0.08);
  color: #0f3373;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-size: 0.7rem;
}

.back-btn:hover,
.save-btn:hover {
    background: rgba(100, 180, 255, 0.15);
    border-color: rgba(100, 180, 255, 0.6);
    color: #1c3b6f;
    transform: translateY(-1px);
    font-weight:bold;
}

.save-btn {
    background: rgba(100, 180, 255, 0.12);
    border-color: rgba(100, 180, 255, 0.5);
}

.save-btn:hover {
    background: rgba(100, 180, 255, 0.2);
    border-color: rgba(100, 180, 255, 0.7);
    color: #1c3b6f;
    font-weight:bold;
}

/* Mobile Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100vh;
    background: rgba(15, 15, 25, 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(100, 180, 255, 0.3);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1002;
    padding: 20px;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: #88b3ff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    margin-bottom: 10px;
}

.mobile-menu-item {
    padding: 15px 20px;
    background: rgba(100, 180, 255, 0.08);
    border: 1px solid rgba(100, 180, 255, 0.4);
    color: #88b3ff;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;

}

.mobile-menu-item:hover {
    background: rgba(100, 180, 255, 0.15);
    color: #aac8ff;
}

.mobile-menu-item.save-item {
    background: rgba(100, 180, 255, 0.12);
    border-color: rgba(100, 180, 255, 0.5);
    color: #99bbff;
}

/* Content wrapper to account for fixed header */
.menu-content-wrapper {
    margin-top: 110px;
    padding: 20px;
}

/* Align content container */
.dinner-menu-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* Keep bottom buttons too */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 30px;
    background: rgba(100, 180, 255, 0.05);
    border-top: 1px solid rgba(100, 180, 255, 0.2);
    margin-top: 30px;
    border-radius: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  body {padding: 0 20px;}
    .header-actions {
    justify-content: flex-end;
    padding: 8px 15px;
    position: absolute;
    top: 30px;
    right: 0;
  }
    
    .header-center {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .week-date-header {
        margin-bottom: 8px;
    }
    
    /* Week nav buttons on same line under date */
    .week-nav-buttons {
        display: flex;
        gap: 10px;
        justify-content: center;
    }
    
    .week-nav-btn {
        font-size: 0.85rem;
        padding: 7px 14px;
    }
    
    /* Hide desktop action buttons, show hamburger */
    .action-buttons {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .header-actions {
        justify-content: flex-end;
        padding: 8px 15px;
    }
    
    .menu-content-wrapper {
        margin-top: 140px;
        padding: 15px;
    }
}
