* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Comic Neue', cursive;
            background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 50%, #FFE66D 100%);
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
        }

        /* Animated Background Elements */
        .floating-elements {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .floating-cupcake {
            position: absolute;
            font-size: 2rem;
            animation: float 6s ease-in-out infinite;
        }

        .floating-cupcake:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
        .floating-cupcake:nth-child(2) { top: 20%; right: 15%; animation-delay: 2s; }
        .floating-cupcake:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; }
        .floating-cupcake:nth-child(4) { bottom: 15%; right: 10%; animation-delay: 1s; }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(5deg); }
        }

        /* Navigation */
        /* Navbar Base */
.navbar {
  width: 100%;
  background: linear-gradient(90deg, #60a5fa, #f9a8d4, #fde68a); /* light blue → light pink → soft yellow */
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 1px;
}

/* Nav Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links li a {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease-in-out;
  padding: 5px 0;
}

/* Hover Gradient Underline */
.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, #f9a8d4, #fde68a);
  border-radius: 5px;
  transition: width 0.4s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a:hover {
  transform: translateY(-2px);
}

/* CTA Button */
.cta-btn {
  padding: 10px 20px;
  background: linear-gradient(45deg, #60a5fa, #f9a8d4, #fde68a);
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.cta-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* User Info Display */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--candy-red), var(--sunny-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.logout-btn {
    background: linear-gradient(45deg, #ff4757, #ff3838) !important;
    color: #ffffff;
    border: none !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3) !important;
}

.logout-btn:hover {
    background: linear-gradient(45deg, #ff3838, #ff2d2d) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4) !important;
}

        /* Main Container */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
            position: relative;
            z-index: 10;
        }

        /* Header Section */
        .header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .header h1 {
            font-size: 3rem;
            color: white;
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
            margin-bottom: 1rem;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        .header p {
            font-size: 1.3rem;
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
        }

        /* Main Content */
        .main-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .input-section, .output-section {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
        }

        .section-title {
            font-size: 1.8rem;
            color: #FF6B6B;
            margin-bottom: 1.5rem;
            text-align: center;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 3px;
            background: #4ECDC4;
            border-radius: 2px;
        }

        /* Input Elements */
        .input-group {
            margin-bottom: 1.5rem;
        }

        .input-group label {
            display: block;
            font-weight: 600;
            color: #333;
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
        }

        .serving-inputs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .serving-input {
            position: relative;
        }

        .serving-input input {
            width: 100%;
            padding: 1rem;
            border: 3px solid #FFE66D;
            border-radius: 15px;
            font-size: 1.1rem;
            font-family: 'Comic Neue', cursive;
            text-align: center;
            transition: all 0.3s ease;
        }

        .serving-input input:focus {
            outline: none;
            border-color: #4ECDC4;
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
        }

        .recipe-textarea {
            width: 100%;
            min-height: 200px;
            padding: 1rem;
            border: 3px solid #FFE66D;
            border-radius: 15px;
            font-size: 1rem;
            font-family: 'Comic Neue', cursive;
            resize: vertical;
            transition: all 0.3s ease;
        }

        .recipe-textarea:focus {
            outline: none;
            border-color: #4ECDC4;
            box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
        }

        /* Buttons */
        .btn-group {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-top: 1.5rem;
        }

        .btn {
            padding: 1rem 2rem;
            border: none;
            border-radius: 25px;
            font-size: 1.1rem;
            font-weight: 600;
            font-family: 'Comic Neue', cursive;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
            color: white;
            box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
            animation: shimmer 1s ease-in-out;
        }

        @keyframes shimmer {
            0% { background-position: -200% center; }
            100% { background-position: 200% center; }
        }

        .btn-secondary {
            background: #FFE66D;
            color: #333;
            box-shadow: 0 5px 15px rgba(255, 230, 109, 0.3);
        }

        .btn-secondary:hover {
            background: #FFD93D;
            transform: translateY(-3px);
        }

        /* Toggle Switch */
        .toggle-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            margin: 1rem 0;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: #4ECDC4;
        }

        input:checked + .slider:before {
            transform: translateX(26px);
        }

        /* Results Section */
        .results-container {
            display: none;
        }

        .results-container.show {
            display: block;
            animation: fadeInUp 0.5s ease-out;
        }

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

        .results-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .results-table th,
        .results-table td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid #f0f0f0;
        }

        .results-table th {
            background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
            color: white;
            font-weight: 600;
        }

        .results-table tr:hover {
            background-color: #f8f9fa;
        }

        .ingredient-icon {
            font-size: 1.5rem;
            margin-right: 0.5rem;
        }

        /* Suggestions Box */
        .suggestions-box {
            background: rgba(255, 230, 109, 0.2);
            border: 2px solid #FFE66D;
            border-radius: 15px;
            padding: 1.5rem;
            margin-top: 1rem;
        }

        .suggestions-box h3 {
            color: #FF6B6B;
            margin-bottom: 1rem;
            font-size: 1.3rem;
        }

        .suggestions-box p {
            color: #333;
            line-height: 1.6;
            margin-bottom: 0.5rem;
        }

        /* Loading Animation */
        .loading {
            display: none;
            text-align: center;
            padding: 2rem;
        }

        .loading.show {
            display: block;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #FF6B6B;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }

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

        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-links {
                flex-direction: column;
                gap: 0.5rem;
            }

            .main-content {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .serving-inputs {
                grid-template-columns: 1fr;
            }

            .header h1 {
                font-size: 2rem;
            }

            .container {
                padding: 1rem;
            }

            .btn-group {
                flex-direction: column;
            }
        }

        @media (max-width: 480px) {
            .nav-container {
                flex-direction: column;
                gap: 1rem;
            }

            .nav-links {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
            }
        }

        
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 40px 20px;
    font-family: sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer h2 {
    color: #ff7f50;
}

.footer h3 {
    margin-bottom: 10px;
    color: #ff7f50;
}

.footer p {
    font-size: 14px;
    line-height: 1.5;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 6px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #ff7f50;
}

.footer-newsletter input {
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
}

.footer-newsletter button {
    background-color: #ff7f50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-newsletter button:hover {
    background-color: #ff956b;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: transform 0.3s, opacity 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

/* Specific brand colors */
.social-icon.linkedin { background: #0077b5; }
.social-icon.github   { background: #6e5494; }
.social-icon.twitter  { background: #1da1f2; }
.social-icon.email    { background: #ff8800; }

.footer-bottom {
    text-align: center;
    font-size: 14px;
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
}
