:root {
    --candy-red: #FF6B6B;
    --sky-blue: #4ECDC4;
    --sunny-yellow: #FFD93D;
    --soft-pink: #FFB6C1;
    --mint-green: #98FB98;
    --lavender: #E6E6FA;
    --dark-bg: #1a1a1a;
    --dark-card: #2d2d2d;
    --dark-text: #ffffff;
    --dark-border: #404040;
}

body.dark-mode {
    background-color: #0d0d0d;
}

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

:root {
    --candy-red: #FF4757;
    --sky-blue: #70A1FF;
    --sunny-yellow: #FFA502;
    --white: #FFFFFF;
    --light-pink: #FFE0E6;
    --light-blue: #E8F4FF;
    --light-yellow: #FFF5E0;
}

body {
    font-family: 'Comic Neue', cursive;
    background-color: #f5f3f1;
    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;
}

body.dark-mode .floating-elements {
    opacity: 0.6;
}

.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: 20%;
    left: 20%;
    animation-delay: 4s;
}

.floating-cupcake:nth-child(4) {
    bottom: 30%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Navigation */
/* ===== STANDARDIZED NAVIGATION BAR ===== */
.navbar {
    background: radial-gradient(circle at center, #e5c5b3, #e9b4b6);
    backdrop-filter: blur(15px);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

body.dark-mode .navbar {
    background: #1e1e1e !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

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

.logo {
    font-size: 2rem;
    font-weight: 600;
    color: #3e2723;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Comic Neue", cursive;
    min-width: 150px;
    padding-right: 50px;
}

.logo-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.logo-text {
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo:hover {
    transform: scale(1.05);
    color: #3e2723;
}

.logo:hover .logo-icon {
    transform: rotate(10deg);
}

body.dark-mode .logo {
    color: #e0e0e0;
}

body.dark-mode .logo:hover {
    color: #e0e0e0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #3e2723;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
}

body.dark-mode .nav-links a {
    color: #e0e0e0 !important;
    background: rgba(111, 100, 91, 0.133) !important;
    border: 2px solid transparent !important;
}

.nav-links a:hover {
    background-color: #f3e0d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(228, 191, 180, 0.3);
    color: #3e2723;
}

body.dark-mode .nav-links a:hover {
    background-color: #0d0d0d !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

/* Active navigation link styles */
.nav-links a.active {
    background: linear-gradient(90deg, #3e2723, #573730, #3e2723) !important;
    color: #ffffff !important;
    border-color: #1e1e1e !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .nav-links a.active {
    background-color: #0d0d0d !important;
    color: #ffffff !important;
    border-color: #1e1e1e !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dark-mode-btn {
    background-color: #3e2723;
    border: none;
    color: white;
    padding: 0.7rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dark-mode-btn:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dark-mode-btn {
    background-color: #e0e0e0;
    color: #1e1e1e;
}


.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: linear-gradient(45deg, #a4766a, #5d4037);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

body.dark-mode .hamburger span {
    background: #e0e0e0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.logo {
    font-size: 2rem;
    font-weight: 600;
    color: #3e2723;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Comic Neue", cursive;
    min-width: 150px;
    padding-right: 50px;
}

.logo-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.logo-text {
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo:hover {
    transform: scale(1.05);
    color: #3e2723;
}

.logo:hover .logo-icon {
    transform: rotate(10deg);
}

body.dark-mode .logo {
    color: #e0e0e0;
}

body.dark-mode .logo:hover {
    color: #e0e0e0;
}


/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dark-mode-btn {
    background-color: #3e2723;
    border: none;
    color: white;
    padding: 0.7rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dark-mode-btn:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dark-mode-btn {
    background-color: #e0e0e0;
    color: #1e1e1e;
}


.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}


.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== STANDARDIZED MOBILE NAVIGATION ===== */
@media (max-width: 1242px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #1a1a1a;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 6rem;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
        gap: 0;
        z-index: 999;
    }

    body.dark-mode .nav-links {
        background: #1a1a1a !important;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 90%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    body.dark-mode .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        width: 100%;
        padding: 1.5rem 2rem;
        font-size: 1.2rem;
        margin-bottom: 0;
        background: #2a2a2a !important;
        color: #e0e0e0 !important;
        border-radius: 0;
        display: flex;
        align-items: center;
        gap: 1rem;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: #3a3a3a !important;
        color: #ffffff !important;
    }

    /* Mobile navigation active state */
    .nav-links a.active {
        background: #0d0d0d !important;
        color: #ffffff !important;
    }

    .nav-actions{gap:.5rem; z-index:1001; position: absolute; right:5rem;}

    .dark-mode-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-icon {
        font-size: 1.7rem;
    }
}

/* ===== STANDARDIZED SMALL MOBILE NAVIGATION ===== */
@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .nav-actions {
        gap: 0.3rem;
    }


    .dark-mode-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Footer Styles */
.footer {
    background: radial-gradient(circle at center, #e9b4b6, #e5c5b3);
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 3rem 2rem 2rem;
}

.footer-section h3.footer-title {
    color: #3e2723;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: #3e2723;
    border-radius: 2px;
}

body.dark-mode .footer-section h3.footer-title::after {
    background: #e0e0e0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #3e2723;
}

.footer-logo-icon {
    font-size: 2rem;
}

.footer-description {
    color: #333;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
    border-radius: 5px;
}

.footer-links a:hover {
    color: black;
    transform: translateX(4px);
    background: rgba(255, 107, 107, 0.1);
    padding-left: 0.8rem;
}

.footer-links i {
    font-size: 0.9rem;
    width: 16px;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}



.footer-bottom {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #333;
    font-size: 0.9rem;
    margin: 0;
}

.copyright .name {
    color: #3e2723;
    font-weight: 600;
}

body.dark-mode .copyright .name {
    color: #ef6154;
}

.footer-badges {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge-green {
    background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
}

.badge-blue {
    background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
}

.badge-purple {
    background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
}

body.dark-mode .badge-green {
    background: #e0e0e0;
    color: #0d0d0d;
}

body.dark-mode .badge-blue {
    background: #e0e0e0;
    color: #0d0d0d;
}

body.dark-mode .badge-purple {
    background: #e0e0e0;
    color: #0d0d0d;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-badges {
        justify-content: center;
    }
}

/* Dark Mode Styles for Content */
body.dark-mode .page-subtitle {
    color: #e0e0e0 !important;
}

body.dark-mode .ingredient-card {
    background: rgba(26, 26, 26, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--dark-text);
}

body.dark-mode .ingredient-name {
    color: var(--dark-text);
}

body.dark-mode .control-label {
    color: var(--dark-text);
}

body.dark-mode .custom-select,
body.dark-mode .custom-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--dark-text);
}

body.dark-mode .custom-select:focus,
body.dark-mode .custom-input:focus {
    border-color: var(--candy-red);
    background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .footer {
    background: #1e1e1e;
}

body.dark-mode .footer-section h3.footer-title {
    color: #e0e0e0;
}

body.dark-mode .footer-logo {
    color: #e0e0e0;
}

body.dark-mode .footer-description {
    color: #a0a0a0;
}

body.dark-mode .footer-links a {
    color: #e0e0e0;
}

body.dark-mode .footer-links a:hover {
    color: #a0a0a0;
    background: rgba(255, 138, 128, 0.1);
}

body.dark-mode .footer-bottom {
    background: #1e1e1e;
}

body.dark-mode .copyright {
    color: #a0a0a0;
}

body.dark-mode .copyright .name {
    color: #ef6154;
}

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

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size:clamp(2rem, 6vw, 3rem); 
    font-weight:700; 
    margin-bottom:1rem; 
    color:#3e2723;
    animation:bounce 2s ease-in-out infinite;
}

body.dark-mode .page-title {
    color: #e0e0e0 !important;
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.1);
}

.page-subtitle {
   
     font-size:1.2rem;
      color:#6b6767; 
      opacity:.9;
       margin-bottom:2rem; 
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Ingredient Cards */
.ingredients-container {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ingredient-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.dark-mode .ingredient-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.ingredient-card:hover {
    transform: translateY(-5px);
    border-color: #3e2723;
    box-shadow: 0 12px 40px #3e2723;
}

body.dark-mode .ingredient-card:hover {
    border-color: #9c8d8022;
    box-shadow: 0 12px 40px #6f645b22;
}

.ingredient-card:hover::before {
    left: 100%;
}

.ingredient-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.ingredient-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.ingredient-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    flex: 1;
}

.ingredient-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: end;
}

.control-group {
    display: flex;
    flex-direction: column;
}

.control-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
}

.custom-select,
.custom-input {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Comic Neue', cursive;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

body.dark-mode .custom-select,
body.dark-mode .custom-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.custom-select:focus,
.custom-input:focus {
    outline: none;
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 3px rgba(112, 161, 255, 0.2);
}

body.dark-mode .custom-select:focus,
body.dark-mode .custom-input:focus {
    border-color: #ff8a80;
    box-shadow: 0 0 0 3px rgba(255, 138, 128, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.custom-input[type="number"] {
    text-align: center;
    font-weight: 600;
}


body.dark-mode .custom-select option {
    background: #222;
    color: #fff;
}

body.dark-mode .custom-select option:hover {
    background: #333;
    color: #ff8a80;
}


/* Brand Selector */
.brand-selector {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.dark-mode .brand-selector {
    background: rgba(111, 100, 91, 0.133);
    border: 1px solid rgba(111, 100, 91, 0.133);
    ;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
    margin-bottom: 1rem;
    text-align: center;
}

body.dark-mode .brand-title {
    color: var(--dark-text);
}

.brand-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.brand-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

body.dark-mode .brand-option {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.brand-option:hover {
    border-color: #e5b5c3;
    background: #fae2d4;
    transform: scale(1.05);
}

body.dark-mode .brand-option:hover {
    background: #8f8e8e53;
    border: 2px solid #4b4a4a;
}

.brand-option.selected {
    border-color: #412b28;
    background: #d5a69e;
}

body.dark-mode .brand-option.selected {
    background: #8f8e8e92;
    border: 2px solid #4b4a4a;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-family: 'Comic Neue', cursive;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

body.dark-mode .btn-primary {
    background: rgba(220, 121, 63, 0.893);
    color: #e0e0e0;
    box-shadow: 0 2px 2px rgba(220, 121, 63, 0.893);
}

.btn-secondary {
    background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
    color: white;
    box-shadow: 0 4px 15px rgba(112, 161, 255, 0.4);
}

body.dark-mode .btn-secondary {
    background: rgba(220, 121, 63, 0.893);
    color: #e0e0e0;
    box-shadow: 0 2px 2px rgba(220, 121, 63, 0.893);
}

.btn-success {
    background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.4);
}

body.dark-mode .btn-success {
    background: rgba(220, 121, 63, 0.893);
    color: #e0e0e0;
    box-shadow: 0 2px 2px rgba(220, 121, 63, 0.893);
}

.btn:hover {
    transform: translateY(-3px);
    animation: wobble 0.5s ease-in-out;
}

@keyframes wobble {
    0% {
        transform: translateY(-3px) rotate(0deg);
    }

    25% {
        transform: translateY(-3px) rotate(1deg);
    }

    75% {
        transform: translateY(-3px) rotate(-1deg);
    }

    100% {
        transform: translateY(-3px) rotate(0deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* .nav-links {
                display: none;
            } */

    .page-title {
        font-size: 2rem;
    }

    .ingredient-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .brand-options {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Back to Top Button Styles */
#backToTop {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 2000;
    background: linear-gradient(45deg, #a4766a, #5d4037);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.2s;
}

body.dark-mode #backToTop {
    background: #e0e0e0;
    color: #0d0d0d;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1.08);
}

#backToTop:hover {
    background: linear-gradient(45deg, #a4766a, #5d4037);
    transform: scale(1.15);
}

/* Back to Top to Bottom Button Styles */
#Toptoback {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 2000;
    background: linear-gradient(45deg, #a4766a, #5d4037);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.2s;
}

body.dark-mode #Toptoback {
    background: #e0e0e0;
    color: #0d0d0d;
}

#Toptoback.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-10px) scale(1.08);
}

#Toptoback:hover {
    background: linear-gradient(45deg, #a4766a, #5d4037);
    transform: scale(1.15);
}

body.dark-mode #Toptoback:hover {
    background: #e0e0e0;
    transform: scale(1.15);
}

/* Success Message */
.success-message {
    background: rgba(46, 213, 115, 0.1);
    border: 2px solid #2ED573;
    border-radius: 15px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    color: #2ED573;
    font-weight: 600;
}

body.dark-mode .success-message {
    background: rgba(46, 213, 115, 0.2);
    color: #4cd137;
    border-color: #4cd137;
    display: none;
    animation: slideDown 0.5s ease-out;
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Tooltip */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 0%;
    transform: translateX(-55%);
    background: #333;
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    white-space: normal;
    width: max-content;
    max-width: 280px;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}