/*********** Updated styles.css with enhanced header, dashboard integration, and white backgrounds ***********/
/* Changes:
- Header: Added slide-in animation for nav links, teal underline hover effects, sticky header with subtle shadow.
- Dashboard: Integrated provided admin-sidebar, main-content, admin-header, and stats-card styles, adapted to teal palette.
- Backgrounds: Set all backgrounds to white (body, header, sidebar, cards, etc.) for consistency.
- Text Visibility: Used dark teal (#003d33) or black (#212529) on white, white on teal/dark backgrounds for contrast.
- Colors: Maintained calm teal palette, avoided color riot, ensured smooth blending with gradients.
- Animations: Enhanced header with nav link slide-in, preserved hero and product animations with added fade-in.
- Ensured all text is visible with sufficient contrast (WCAG-compliant).
*/

:root {
    --primary-color: #E5BA07; /* Deliveroo teal */
    --secondary-color: #003d33; /* Dark teal for accents */
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --sidebar-width: 280px;
    --neon-glow: 0 0 20px rgba(0, 204, 188, 0.4);
    --gradient-primary: linear-gradient(135deg, #00ccbc 0%, #003d33 100%);
    --gradient-secondary: linear-gradient(135deg, #e0f7fa 0%, #e2c625 100%);
    --gradient-accent: linear-gradient(135deg, #a8edea 0%, #80cbc4 100%);
  }
  
  /* Global Styles */
  body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
    background: white; /* White background */
    min-height: 100vh;
    color: var(--dark-color);
    animation: pageFadeIn 1s ease-out;
  }
  
  /* Top Banner */
  .top-banner {
    font-size: 0.875rem;
    background: var(--primary-color);
    color: white;
    animation: float 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
  }
  
  .top-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s linear infinite;
  }
  
  /* Enhanced Header: Sticky, white, with slide-in nav links */
  .navbar {
    background: white !important;
    border-bottom: 1px solid rgba(0, 204, 188, 0.2);
    box-shadow: 0 4px 12px rgba(0, 204, 188, 0.1);
    transition: all 0.3s ease;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
    animation: headerSlideDown 0.8s ease-out;
  }
  
  .navbar-brand {
    transition: transform 0.3s ease;
  }
  
  .navbar-brand:hover {
    transform: scale(1.05);
  }
  
  .navbar-brand .bg-primary {
    background: var(--primary-color) !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 204, 188, 0.3);
  }
  
  .navbar-brand:hover .bg-primary {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 204, 188, 0.5);
  }
  
  /* Enhanced Nav Links: Slide-in animation, teal hover */
  .nav-link {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--secondary-color) !important;
    animation: slideInNav 0.5s ease-out forwards;
    animation-delay: calc(0.1s * var(--nav-index)); /* Staggered animation */
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 80%;
  }
  
  .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
  }
  
  /* Navbar Toggler */
  .navbar-toggler {
    border: none;
    transition: transform 0.3s ease;
  }
  
  .navbar-toggler:hover {
    transform: scale(1.1);
  }
  
  /* Search Bar */
  .navbar .input-group {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .navbar .form-control {
    border-color: rgba(0, 204, 188, 0.2);
    background: white;
  }
  
  .navbar .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 204, 188, 0.25);
  }
  
  /* Location Button */
  .btn-location {
    background: white;
    border-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 500;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="checkbox"],
  input[type="file"],
  input[type="url"],
  select,
  textarea {
    border: 1px solid #0b0b0b !important;
  }
  
  /* Hero Section */
  .hero-section {
    height: 80vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: white;
  }
  
  .hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    transform: translate(-10%, -10%);
  }
  
  .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: all 2s ease-in-out;
    transform: scale(1.1);
  }
  
  .hero-bg.active {
    opacity: 1;
    animation: kenBurns 20s ease-in-out infinite;
  }
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
      rgba(0, 204, 188, 0.7) 0%, 
      rgba(0, 61, 51, 0.6) 50%, 
      rgba(0, 204, 188, 0.7) 100%);
    backdrop-filter: blur(2px);
  }
  
  .hero-content {
    animation: heroEnter 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), contentFadeIn 2s ease-out;
    z-index: 2;
    position: relative;
  }
  
  .hero-title {
    animation: textGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    font-weight: 800;
    background: linear-gradient(45deg, #fff, #e0f7fa, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .hero-subtitle {
    animation: fadeInUp 1s ease-out 0.4s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  /* Postcode Search */
  .postcode-search {
    animation: searchFloat 4s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    background: white;
    border: 1px solid rgba(0, 204, 188, 0.2);
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .postcode-search:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
  }
  
  .postcode-search .form-control {
    border: none;
    background: transparent;
    font-weight: 500;
  }
  
  .postcode-search .btn {
    background: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
  }
  
  /* Hero Dots */
  .hero-dots {
    display: flex;
    gap: 15px;
  }
  
  .hero-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
  }
  
  .hero-dot.active,
  .hero-dot:hover {
    background: white;
    border-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  }
  
  /* Feature Section */
  .feature-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    background-color: rgba(0, 204, 188, 0.1) !important;
  }
  
  .feature-icon:hover {
    transform: translateY(-10px) rotate(5deg) scale(1.15);
    box-shadow: 0 20px 40px rgba(0, 204, 188, 0.2);
  }
  
  .feature-icon i {
    color: var(--primary-color);
  }
  
  /* Card Animations */
  .vendor-card,
  .cuisine-card,
  .product-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: white;
    opacity: 0;
    animation: productFadeIn 1s ease-out forwards;
    animation-delay: calc(0.2s * var(--index));
  }
  
  .vendor-card:hover,
  .cuisine-card:hover,
  .product-card:hover {
    transform: translateY(-10px) rotateY(3deg) rotateX(3deg) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  /* Buttons */
  .btn {
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 204, 188, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
  }
  
  .btn-primary, .btn-outline-primary {
    background: var(--primary-color);
    border: none;
    color: white;
  }
  
  .btn-primary:hover, .btn-outline-primary:hover {
    background: var(--gradient-primary);
    box-shadow: 0 12px 35px rgba(0, 204, 188, 0.4);
    transform: translateY(-4px) scale(1.05);
  }
  
  .btn-outline-secondary {
    border-radius: 30px;
    border: 2px solid rgba(0, 204, 188, 0.3);
    background: white;
    color: var(--secondary-color);
  }
  
  .btn-outline-secondary:hover {
    background: var(--gradient-secondary);
    color: var(--secondary-color);
    border-color: transparent;
  }
  
  /* Cards */
  .card {
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: none;
    background: white;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-6px) scale(1.01);
  }

  /* Admin Sidebar: Integrated and adapted */
  .admin-sidebar {
    min-height: 100vh;
    width: var(--sidebar-width);
    background: white; /* White background */
    border-right: 1px solid rgba(0, 204, 188, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  /* Admin Sidebar: Integrated and adapted */
  .admin-sidebar {
    min-height: 100vh;
    width: var(--sidebar-width);
    background: white; /* White background */
    border-right: 1px solid rgba(0, 204, 188, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .admin-sidebar.hidden {
    transform: translateX(-100%);
  }
  
  .admin-sidebar .nav-link {
    color: var(--secondary-color);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInNav 0.5s ease-out forwards;
    animation-delay: calc(0.1s * var(--nav-index));
  }
  
  .admin-sidebar .nav-link:hover,
  .admin-sidebar .nav-link.active {
    background: var(--gradient-secondary);
    color: white;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 204, 188, 0.3);
  }
  
  .admin-sidebar .nav-link i {
    width: 24px;
    margin-right: 1rem;
    transition: transform 0.3s ease;
  }
  
  .admin-sidebar .nav-link:hover i {
    transform: scale(1.2);
  }
  
  /* Main Content */
  .main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: calc(100% - var(--sidebar-width));
    background: white; /* White background */
  }
  
  .main-content.sidebar-hidden {
    margin-left: 0;
    width: 100%;
  }
  
  /* Admin Header */
  .admin-header {
    background: white; /* White background */
    border-bottom: 1px solid rgba(0, 204, 188, 0.2);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 204, 188, 0.1);
  }
  
  /* Sidebar Toggle */
  .sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    transition: transform 0.3s ease;
  }
  
  .sidebar-toggle:hover {
    transform: scale(1.1);
  }
  
  /* Stats Card */
  .stats-card {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    background: white; /* White background */
    border-radius: 16px;
    transition: all 0.3s ease;
  }
  
  .stats-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  }
  
  /* Form Controls */
  .form-control {
    border-radius: 12px;
    border: 1px solid rgba(0, 204, 188, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    background: white;
    transition: all 0.3s ease;
  }
  
  .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 204, 188, 0.2);
    transform: translateY(-1px);
  }
  
  /* Footer */
  footer.bg-dark {
    background: var(--gradient-primary) !important;
    color: white;
  }
  
  footer .fw-bold {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  /* Animations */
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
  }
  
  @keyframes shimmer {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
  }
  
  @keyframes kenBurns {
    0% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.05) rotate(0.5deg); }
    40% { transform: scale(1.1) rotate(1deg); }
    60% { transform: scale(1.08) rotate(0deg); }
    80% { transform: scale(1.05) rotate(-0.5deg); }
    100% { transform: scale(1) rotate(0deg); }
  }
  
  @keyframes heroEnter {
    0% { opacity: 0; transform: translateY(50px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }
  
  @keyframes textGlow {
    0% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.5); }
    100% { text-shadow: 0 0 40px rgba(255, 255, 255, 0.8), 0 0 60px rgba(0, 204, 188, 0.3); }
  }
  
  @keyframes searchFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
  }
  
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes headerSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  @keyframes productFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes contentFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideInNav {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
  }
  
  /* Responsive Design */
  @media (max-width: 992px) {
    .admin-sidebar {
      transform: translateX(-100%);
    }
  
    .admin-sidebar.show {
      transform: translateX(0);
    }
  
    .main-content {
      margin-left: 0;
      width: 100%;
    }
  
    .main-content.sidebar-visible {
      margin-left: var(--sidebar-width);
      width: calc(100% - var(--sidebar-width));
    }
  
    .sidebar-toggle {
      display: inline-block;
    }
  }
  
  @media (max-width: 768px) {
    .hero-section {
      height: 60vh;
    }
  
    .hero-content .display-4 {
      font-size: 2.5rem;
    }
  
    .postcode-search {
      margin-bottom: 2rem;
      border-radius: 30px;
      flex-direction: column;
    }
  }