:root {
        --primary: #561c24;
        --secondary: #6d2932;
        --accent: #c7b7a3;
        --light: #e8d8c4;
        --dark: #2a1a1a;
        --success: #28a745;
        --warning: #ffc107;
        --danger: #dc3545;
      }

      body {
        font-family: "Poppins", sans-serif;
        background: linear-gradient(135deg, #f9f5f0 0%, #f0e8dd 100%);
        color: var(--dark);
        min-height: 100vh;
        overflow-x: hidden;
      }

      h1,
      h2,
      h3,
      h4,
      h5 {
        font-family: "Playfair Display", serif;
        font-weight: 700;
      }

      /* Custom Scrollbar */
      ::-webkit-scrollbar {
        width: 10px;
      }

      ::-webkit-scrollbar-track {
        background: var(--light);
      }

      ::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 5px;
      }

      ::-webkit-scrollbar-thumb:hover {
        background: var(--secondary);
      }

      /* Navbar Styling */
      .navbar {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(86, 28, 36, 0.1);
        padding: 1rem 0;
        transition: all 0.4s ease;
      }

      .navbar.scrolled {
        padding: 0.5rem 0;
        box-shadow: 0 4px 30px rgba(86, 28, 36, 0.15);
      }

      .navbar-brand {
        color: var(--primary) !important;
        font-weight: 800;
        font-size: 1.8rem;
        letter-spacing: 0.5px;
      }

      .navbar-brand i {
        color: var(--secondary);
        animation: pulse 2s infinite;
      }

      @keyframes pulse {
        0% {
          transform: scale(1);
        }
        50% {
          transform: scale(1.1);
        }
        100% {
          transform: scale(1);
        }
      }

      .nav-link {
        color: var(--primary) !important;
        font-weight: 500;
        margin: 0 8px;
        position: relative;
        transition: all 0.3s ease;
      }

      .nav-link::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--secondary);
        transition: width 0.3s ease;
      }

      .nav-link:hover::after,
      .nav-link.active::after {
        width: 100%;
      }

      .nav-link:hover {
        color: var(--secondary) !important;
        transform: translateY(-2px);
      }

      /* Button Styling */
      .btn-primary {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border: none;
        padding: 10px 24px;
        border-radius: 50px;
        font-weight: 600;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(86, 28, 36, 0.2);
        position: relative;
        overflow: hidden;
      }

      .btn-primary::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.2),
          transparent
        );
        transition: left 0.5s ease;
      }

      .btn-primary:hover::before {
        left: 100%;
      }

      .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(86, 28, 36, 0.3);
      }

      .btn-outline-primary {
        border: 2px solid var(--primary);
        color: var(--primary);
        border-radius: 50px;
        padding: 8px 20px;
        font-weight: 600;
        transition: all 0.3s ease;
      }

      .btn-outline-primary:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(86, 28, 36, 0.2);
      }

      .btn-secondary {
        background: linear-gradient(135deg, var(--accent), #d4c8b5);
        border: none;
        color: var(--dark);
        padding: 10px 24px;
        border-radius: 50px;
        font-weight: 600;
        transition: all 0.3s ease;
      }

      .btn-secondary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(199, 183, 163, 0.3);
      }

      /* Recipe Cards */
      .recipe-card {
        border-radius: 20px;
        overflow: hidden;
        background: white;
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 10px 30px rgba(86, 28, 36, 0.08);
        height: 100%;
        opacity: 0;
        animation: fadeInUp 0.6s forwards;
        animation-delay: calc(var(--animation-order) * 0.1s);
        position: relative;
        border: 1px solid rgba(232, 216, 196, 0.3);
      }

      .recipe-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 40px rgba(86, 28, 36, 0.15);
      }

      .recipe-img {
        height: 200px;
        object-fit: cover;
        width: 100%;
        transition: transform 0.5s ease;
      }

      .recipe-card:hover .recipe-img {
        transform: scale(1.05);
      }

      .recipe-card::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.5s ease;
      }

      .recipe-card:hover::after {
        transform: scaleX(1);
      }

      .category-badge {
        background: linear-gradient(135deg, var(--accent), #d4c8b5);
        color: var(--dark);
        font-size: 0.75rem;
        padding: 6px 14px;
        border-radius: 50px;
        font-weight: 600;
        display: inline-block;
        animation: bounceIn 0.5s ease;
      }

      .difficulty-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        border-radius: 50px;
        font-weight: 600;
        animation: fadeIn 0.5s ease;
      }

      .easy {
        background: rgba(40, 167, 69, 0.15);
        color: var(--success);
      }

      .medium {
        background: rgba(255, 193, 7, 0.15);
        color: var(--warning);
      }

      .hard {
        background: rgba(220, 53, 69, 0.15);
        color: var(--danger);
      }

      /* Stats */
      .recipe-stats {
        font-size: 0.85rem;
        color: #666;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .recipe-stats i {
        color: var(--secondary);
        width: 20px;
        text-align: center;
      }

      /* Modal Styling */
      .modal-content {
        border-radius: 20px;
        border: none;
        overflow: hidden;
        box-shadow: 0 25px 50px rgba(86, 28, 36, 0.2);
        animation: modalSlideIn 0.4s ease;
      }

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

      .modal-header {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white;
        border: none;
        padding: 1.5rem;
      }

      .modal-title {
        font-weight: 700;
      }

      .modal-body {
        padding: 2rem;
      }

      .modal-footer {
        border-top: 1px solid var(--light);
        padding: 1rem 2rem;
      }

      /* Form Styling */
      .form-control,
      .form-select {
        border: 2px solid var(--light);
        border-radius: 12px;
        padding: 12px 16px;
        transition: all 0.3s ease;
        font-size: 0.95rem;
      }

      .form-control:focus,
      .form-select:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 0.25rem rgba(86, 28, 36, 0.15);
        transform: translateY(-2px);
      }

      .form-label {
        font-weight: 600;
        color: var(--primary);
        margin-bottom: 8px;
      }

      /* Recipe Detail */
      .recipe-detail-img {
        height: 300px;
        object-fit: cover;
        border-radius: 15px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        animation: fadeIn 0.8s ease;
      }

      .ingredient-list {
        list-style-type: none;
        padding-left: 0;
        animation: fadeIn 0.6s ease 0.2s forwards;
        opacity: 0;
      }

      .ingredient-list li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(232, 216, 196, 0.5);
        display: flex;
        align-items: center;
        animation: slideInLeft 0.5s ease forwards;
        animation-delay: calc(var(--li-index) * 0.1s);
        opacity: 0;
      }

      .ingredient-list li i {
        color: var(--secondary);
        margin-right: 12px;
        font-size: 1.1rem;
      }

      /* Filter Buttons */
      .filter-btn {
        border-radius: 50px;
        padding: 8px 20px;
        margin: 5px;
        background: white;
        border: 2px solid var(--light);
        color: var(--dark);
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
      }

      .filter-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        z-index: 1;
        opacity: 0;
        transition: opacity 0.3s ease;
      }

      .filter-btn.active {
        color: white;
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(86, 28, 36, 0.2);
      }

      .filter-btn.active::before {
        opacity: 1;
      }

      .filter-btn span {
        position: relative;
        z-index: 2;
      }

      .filter-btn:hover:not(.active) {
        border-color: var(--accent);
        transform: translateY(-2px);
      }

      /* Hero Section */
      .hero-section {
        background:
          linear-gradient(
            135deg,
            rgba(86, 28, 36, 0.9),
            rgba(109, 41, 50, 0.9)
          ),
          url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80");
        background-size: cover;
        background-position: center;
        color: white;
        padding: 120px 0 80px;
        border-radius: 0 0 40px 40px;
        margin-bottom: 60px;
        position: relative;
        overflow: hidden;
        animation: fadeIn 1s ease;
      }

      .hero-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23E8D8C4' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
        animation: float 20s linear infinite;
      }

      @keyframes float {
        0% {
          transform: translate(0, 0) rotate(0deg);
        }
        100% {
          transform: translate(-50px, -50px) rotate(360deg);
        }
      }

      .hero-title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        animation: fadeInUp 0.8s ease 0.2s forwards;
        opacity: 0;
      }

      .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        opacity: 0.9;
        animation: fadeInUp 0.8s ease 0.4s forwards;
        opacity: 0;
      }

      /* Empty State */
      .empty-state {
        text-align: center;
        padding: 80px 20px;
        animation: fadeIn 0.8s ease;
      }

      .empty-state i {
        font-size: 5rem;
        color: var(--accent);
        margin-bottom: 20px;
        animation: bounce 2s infinite;
      }

      @keyframes bounce {
        0%,
        100% {
          transform: translateY(0);
        }
        50% {
          transform: translateY(-20px);
        }
      }

      /* Loader */
      .loader {
        border: 4px solid var(--light);
        border-top: 4px solid var(--primary);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        animation:
          spin 1s linear infinite,
          pulse 1.5s infinite;
        margin: 20px auto;
        position: relative;
      }

      .loader::after {
        content: "";
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        border: 2px solid transparent;
        border-top: 2px solid var(--secondary);
        border-radius: 50%;
        animation: spin 1.5s linear infinite reverse;
      }

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

      /* Footer */
      footer {
        background: linear-gradient(135deg, var(--dark), #1a1010);
        color: white;
        padding: 60px 0 30px;
        margin-top: 80px;
        position: relative;
      }

      footer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(
          90deg,
          var(--primary),
          var(--secondary),
          var(--accent)
        );
      }

      footer h4 {
        color: var(--light);
      }

      footer a {
        color: var(--accent);
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
      }

      footer a::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1px;
        background: var(--accent);
        transition: width 0.3s ease;
      }

      footer a:hover {
        color: white;
        padding-left: 5px;
      }

      footer a:hover::after {
        width: 100%;
      }

      /* Animation Classes */
      @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }

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

      @keyframes slideInLeft {
        from {
          opacity: 0;
          transform: translateX(-20px);
        }
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      @keyframes bounceIn {
        0% {
          opacity: 0;
          transform: scale(0.3);
        }
        50% {
          transform: scale(1.05);
        }
        70% {
          transform: scale(0.9);
        }
        100% {
          opacity: 1;
          transform: scale(1);
        }
      }

      /* Floating Action Button */
      .fab {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        box-shadow: 0 10px 25px rgba(86, 28, 36, 0.3);
        z-index: 1000;
        cursor: pointer;
        transition: all 0.3s ease;
        animation: floatBtn 3s ease-in-out infinite;
        border: none;
      }

      .fab:hover {
        transform: scale(1.1) rotate(90deg);
        box-shadow: 0 15px 35px rgba(86, 28, 36, 0.4);
      }

      @keyframes floatBtn {
        0%,
        100% {
          transform: translateY(0);
        }
        50% {
          transform: translateY(-10px);
        }
      }

      /* Toast Notification */
      .toast {
        position: fixed;
        top: 20px;
        right: 20px;
        min-width: 300px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-left: 4px solid var(--primary);
        z-index: 9999;
        animation:
          slideInRight 0.5s ease,
          fadeOut 0.5s ease 4.5s forwards;
        overflow: hidden;
      }

      @keyframes slideInRight {
        from {
          opacity: 0;
          transform: translateX(100%);
        }
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      @keyframes fadeOut {
        to {
          opacity: 0;
          transform: translateX(100%);
        }
      }

      /* Stats Counter Animation */
      .counter {
        font-weight: 700;
        color: var(--primary);
        display: inline-block;
      }

      /* Gradient Text */
      .gradient-text {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }

      /* Pulse Animation for New Recipes */
      .new-recipe {
        position: relative;
      }

      .new-recipe::before {
        content: "NEW";
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--danger);
        color: white;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 600;
        z-index: 2;
        animation: pulse 2s infinite;
      }

      /* Search Bar Animation */
      .search-container {
        position: relative;
        animation: slideDown 0.5s ease;
      }

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

      /* User Profile Animation */
      .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        transition: all 0.3s ease;
        cursor: pointer;
      }

      .user-avatar:hover {
        transform: scale(1.1) rotate(5deg);
      }
