* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f7f8fc;
    color: #222;
    padding-top: 90px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 999;
    transition: all 0.3s ease;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo span {
    color: #ff6363;
}

.logo i {
    color: #2e7d32;
    font-size: 30px;
}


.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 4px;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2.5px;
    background: #2e7d32;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #2e7d32;
}

.nav-login-link {
    color: #2e7d32 !important;
    font-weight: 600 !important;
}

.nav-login-link i {
    margin-right: 5px;
}

.nav-user-link {
    color: #2e7d32 !important;
    font-weight: 600 !important;
}

.nav-user-link i {
    margin-right: 5px;
}

.nav-logout-link {
    color: #e74c3c !important;
    font-weight: 500 !important;
}

.nav-logout-link:hover {
    color: #c0392b !important;
}

#dark {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#dark:hover {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    transform: rotate(20deg);
}


.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #333;
    padding: 5px;
    flex-shrink: 0;
}

.dark {
    background: #121212;
    color: white;
}

.dark header {
    background: #1a1a1a !important;
    border-bottom: 1px solid #333 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
}

.dark .logo {
    color: white;
}

.dark .logo span {
    color: #ff6637;
}

.dark .logo i {
    color: #66bb6a;
}

.dark .nav-links a {
    color: #d0d0d0 !important;
}

.dark .nav-links a:hover {
    color: #66bb6a !important;
}

.dark .nav-links a::after {
    background: #66bb6a;
}

.dark .nav-login-link {
    color: #66bb6a !important;
}

.dark .nav-user-link {
    color: #66bb6a !important;
}

.dark .nav-logout-link {
    color: #ef5350 !important;
}

.dark .nav-logout-link:hover {
    color: #e53935 !important;
}

.dark #dark {
    color: #d0d0d0;
}

.dark #dark:hover {
    background: rgba(102, 187, 106, 0.15);
    color: #66bb6a;
}

.dark .menu-toggle {
    color: #d0d0d0;
}

.dark .nav-links.active {
    background: #1a1a1a !important;
}

.dark .nav-links.active a {
    color: #d0d0d0 !important;
}

.dark .nav-links.active a:hover {
    background: rgba(102, 187, 106, 0.1);
    color: #66bb6a !important;
}

.dark .card,
.dark .food,
.dark form {
    background: #1f1f1f;
    color: white;
}

.dark .card p,
.dark .food p {
    color: #ccc;
}

.dark input,
.dark textarea,
.dark select {
    background: #2b2b2b;
    color: white;
    border: 1px solid #444;
}

.dark input::placeholder,
.dark textarea::placeholder {
    color: #888;
}

.dark footer {
    background: #050505;
}

.dark #program {
    background: #1a2a1a;
}

.dark #programT {
    background: #2a1a1a;
}

.dark h2 {
    color: white;
}

.dark .card h3 {
    color: white;
}

.dark .food h3 {
    color: white;
}


.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 8% 80px;
    min-height: 80vh;
    gap: 50px;
}

.hero-text {
    max-width: 550px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.2;
    font-weight: 700;
    color: #1a1a1a;
}

.hero span {
    color: #e45c50;
}

.hero p {
    margin-top: 20px;
    font-size: 17px;
    line-height: 30px;
    color: #444;
}

.btn-group {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn1 {
    background: #2e7d32;
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn1:hover {
    background: #1e5e22;
    transform: translateY(-2px);
}

.btn2 {
    background: white;
    border: 2px solid #333;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.btn2:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.hero-img img {
    width: 500px;
    max-width: 100%;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.dark .hero h1 {
    color: white;
}

.dark .hero p {
    color: #ccc;
}

.dark .hero-img img {
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
}

.dark .btn2 {
    background: #1f1f1f;
    border-color: #555;
    color: white;
}

.dark .btn2:hover {
    background: #2a2a2a;
}

section {
    padding: 80px 8%;
}

h2 {
    text-align: center;
    font-size: 44px;
    margin-bottom: 50px;
    position: relative;
    color: #1a1a1a;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 35px 30px;
    width: 270px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card i {
    font-size: 40px;
    color: #2e7d32;
    margin-bottom: 18px;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 18px;
    color: #1a1a1a;
}

.card p {
    line-height: 26px;
    color: #666;
    font-size: 14px;
}


.food {
    background: white;
    width: 330px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.food:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.food img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.food h3 {
    padding: 18px 20px 8px;
    font-size: 18px;
    color: #1a1a1a;
}

.food p {
    padding: 0 20px;
    color: #666;
    font-size: 14px;
    line-height: 24px;
}

.food span {
    display: inline-block;
    background: #2e7d32;
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    margin: 15px 20px 20px;
    font-size: 13px;
    font-weight: 500;
}

#program {
    background: #a2fdba54;
}

#programT {
    background: #ff717118;
}

#program .card i {
    color: #2e7d32;
}

#programT .card i {
    color: #ff7b54;
}

#program .card:hover {
    border: 2px solid #2e7d32;
}

#programT .card:hover {
    border: 2px solid #ff7b54;
}

form {
    background: white;
    max-width: 700px;
    margin: auto;
    padding: 40px 45px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

input,
select,
textarea {
    padding: 15px 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
    color: #222;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

textarea {
    height: 110px;
    resize: none;
}

form button {
    padding: 16px;
    border: none;
    background: #2e7d32;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

form button:hover {
    background: #1e5e22;
    transform: translateY(-2px);
}

footer {
    background: #0a0a0a;
    color: white;
    padding: 60px 8% 30px;
    margin-top: 80px;
    border-top: 4px solid #2e7d32;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1a1a1a;
}

.footer-col .logo {
    font-size: 32px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col .logo i {
    color: #2e7d32;
    font-size: 36px;
}

.footer-col .logo span {
    color: #ffffff;
}

.footer-col p {
    color: #888;
    font-size: 14px;
    line-height: 1.8;
    margin-top: 12px;
    max-width: 280px;
}

.footer-col h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #2e7d32;
    border-radius: 10px;
}

.footer-col ul {
    list-style: none;
    margin-top: 5px;
}

.footer-col ul li {
    color: #888;
    margin-bottom: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li:hover {
    color: white;
    transform: translateX(5px);
}

.footer-col ul li i {
    color: #2e7d32;
    width: 18px;
    font-size: 14px;
}

.footer-col ul li a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #66bb6a;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icons a {
    color: #888;
    font-size: 20px;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.social-icons a:hover {
    color: white;
    background: rgba(46, 125, 50, 0.2);
    border-color: rgba(46, 125, 50, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(46, 125, 50, 0.15);
}


.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    color: #555;
    font-size: 14px;
}

.footer-bottom i {
    color: #2e7d32;
    margin: 0 5px;
}

.dark footer {
    background: #050505;
    border-top-color: #1a3a1a;
}

.dark .footer-col .logo {
    color: white;
}

.dark .footer-col h4 {
    color: #e0e0e0;
}

.dark .footer-col h4::after {
    background: #43a047;
}

.dark .footer-col ul li {
    color: #777;
}

.dark .footer-col ul li:hover {
    color: #e0e0e0;
}

.dark .footer-col ul li a:hover {
    color: #66bb6a;
}

.dark .social-icons a {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.02);
}

.dark .social-icons a:hover {
    background: rgba(46, 125, 50, 0.12);
    border-color: rgba(46, 125, 50, 0.15);
}

.dark .footer-bottom p {
    color: #444;
}


@media(max-width: 1024px) {
    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 13px;
    }
}

@media(max-width: 992px) {
    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 13px;
    }
}

@media(max-width: 768px) {
    header {
        padding: 12px 20px;
    }

    .logo {
        font-size: 24px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        transition: all 0.4s ease;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 18px;
        padding: 12px 20px;
        width: 100%;
        text-align: center;
        border-radius: 10px;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background: rgba(46, 125, 50, 0.08);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px 60px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-img img {
        max-width: 300px;
    }

    h2 {
        font-size: 32px;
    }

    .card {
        width: 100%;
        max-width: 350px;
    }

    .food {
        width: 100%;
        max-width: 380px;
    }

    form {
        padding: 30px 20px;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn1,
    .btn2 {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    section {
        padding: 60px 5%;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 30px;
    }

    .footer-col .logo {
        justify-content: center;
    }

    .footer-col p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col ul li {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media(max-width: 480px) {
    header {
        padding: 10px 15px;
    }

    .logo {
        font-size: 20px;
    }

    .logo i {
        font-size: 24px;
    }

    .nav-links {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 30px 15px;
        gap: 15px;
    }

    .nav-links a {
        font-size: 16px;
        padding: 10px 16px;
    }

    #dark {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .menu-toggle {
        font-size: 22px;
    }

    .hero h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 28px;
    }

    footer {
        padding: 40px 5% 20px;
    }

    .footer-col .logo {
        font-size: 26px;
    }

    .footer-col .logo i {
        font-size: 28px;
    }

    .footer-col h4 {
        font-size: 16px;
    }

    .footer-col ul li {
        font-size: 13px;
    }

    .social-icons a {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
}

#resep {
    background: linear-gradient(180deg, #f3fd95a6 0%, #18a71877 100%);
    padding: 80px 8% 100px;
    position: relative;
}

#resep::before {
    content: "🍽️";
    position: absolute;
    font-size: 120px;
    opacity: 0.05;
    right: 5%;
    top: 10%;
    transform: rotate(-10deg);
}

#resep h2 {
    font-size: 44px;
    margin-bottom: 25px;
}

#resep .subtitle-resep {
    text-align: center;
    max-width: 600px;
    margin: -10px auto 50px auto;
    color: #888;
    font-size: 17px;
    line-height: 1.7;
}

.resep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    justify-items: center;
}

.resep-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    max-width: 370px;
    position: relative;
    border: 1px solid rgba(46, 125, 50, 0.08);
}

.resep-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 20px 60px rgba(46, 125, 50, 0.15);
    border-color: rgba(46, 125, 50, 0.2);
}

.resep-card-header {
    padding: 28px 25px 10px 25px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.resep-card-header .resep-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.resep-card-header .resep-icon.green {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.resep-card-header .resep-icon.orange {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

.resep-card-header .resep-icon.purple {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #6a1b9a;
}

.resep-card-header .resep-icon.blue {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #0d47a1;
}

.resep-card-header .resep-icon.red {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
}

.resep-card-header .resep-icon.teal {
    background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
    color: #00695c;
}

.resep-card-header .resep-icon.pink {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    color: #880e4f;
}

.resep-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: #2e7d32;
    color: white;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.25);
}

.resep-badge.hijau {
    background: linear-gradient(135deg, #2e7d32, #43a047);
}

.resep-badge.orange {
    background: linear-gradient(135deg, #e65100, #f57c00);
}

.resep-badge.purple {
    background: linear-gradient(135deg, #6a1b9a, #8e24aa);
}

.resep-badge.blue {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
}

.resep-badge.red {
    background: linear-gradient(135deg, #c62828, #e53935);
}

.resep-badge.teal {
    background: linear-gradient(135deg, #00695c, #00897b);
}

.resep-badge.pink {
    background: linear-gradient(135deg, #880e4f, #ad1457);
}

.resep-card-body {
    padding: 5px 25px 20px 25px;
}

.resep-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.3;
}

.resep-card-body .resep-desc {
    color: #777;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resep-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 12px 0 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.resep-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
}

.resep-meta-item i {
    color: #2e7d32;
    font-size: 14px;
    width: 18px;
}

.resep-meta-item .cal {
    color: #e65100;
}

.btn-resep-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.25);
    width: fit-content;
}

.btn-resep-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.35);
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
}

.btn-resep-card i {
    transition: transform 0.3s ease;
}

.btn-resep-card:hover i {
    transform: translateX(4px);
}

/* Dark Mode Resep */
.dark #resep {
    background: linear-gradient(180deg, #121212 0%, #1a1a1a 100%);
}

.dark #resep::before {
    opacity: 0.03;
}

.dark .resep-card {
    background: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.05);
}

.dark .resep-card:hover {
    border-color: rgba(46, 125, 50, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dark .resep-card-body h3 {
    color: #f0f0f0;
}

.dark .resep-card-body .resep-desc {
    color: #aaa;
}

.dark .resep-meta {
    border-color: #333;
}

.dark .resep-meta-item {
    color: #999;
}

.dark .resep-card-header .resep-icon.green {
    background: linear-gradient(135deg, #1a2a1a, #1e3a1e);
    color: #66bb6a;
}

.dark .resep-card-header .resep-icon.orange {
    background: linear-gradient(135deg, #2a1a0a, #3a1a0a);
    color: #ff8a65;
}

.dark .resep-card-header .resep-icon.purple {
    background: linear-gradient(135deg, #1a0a2a, #2a0a3a);
    color: #ab47bc;
}

.dark .resep-card-header .resep-icon.blue {
    background: linear-gradient(135deg, #0a0a2a, #0a1a3a);
    color: #64b5f6;
}

.dark .resep-card-header .resep-icon.red {
    background: linear-gradient(135deg, #2a0a0a, #3a0a0a);
    color: #ef5350;
}

.dark .resep-card-header .resep-icon.teal {
    background: linear-gradient(135deg, #0a1a1a, #0a2a2a);
    color: #4db6ac;
}

.dark .resep-card-header .resep-icon.pink {
    background: linear-gradient(135deg, #2a0a1a, #3a0a1a);
    color: #ec407a;
}

.dark .btn-resep-card {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

.dark .btn-resep-card:hover {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

@media(max-width: 992px) {
    .resep-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media(max-width: 768px) {
    #resep {
        padding: 60px 5% 70px;
    }

    #resep h2 {
        font-size: 32px;
    }

    .resep-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .resep-card {
        max-width: 420px;
    }

    .resep-card-header {
        padding: 22px 20px 8px 20px;
    }

    .resep-card-body {
        padding: 5px 20px 18px 20px;
    }

    .resep-card-body h3 {
        font-size: 18px;
    }
}

@media(max-width: 480px) {
    #resep h2 {
        font-size: 28px;
    }

    .resep-card-header .resep-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .resep-meta {
        gap: 12px;
        font-size: 12px;
    }

    .btn-resep-card {
        padding: 10px 22px;
        font-size: 13px;
    }
}

.resep-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.resep-detail-header {
    margin-bottom: 30px;
}

.resep-detail-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.resep-detail-meta {
    display: flex;
    gap: 30px;
    color: #888;
    font-size: 15px;
    flex-wrap: wrap;
}

.resep-detail-meta i {
    color: #2e7d32;
    margin-right: 6px;
}

.resep-detail-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.resep-detail-ingredients {
    background: #f5f7fa;
    padding: 25px;
    border-radius: 15px;
}

.resep-detail-ingredients h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.resep-detail-ingredients ul {
    list-style: none;
}

.resep-detail-ingredients ul li {
    padding: 8px 0;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resep-detail-ingredients ul li::before {
    content: "•";
    color: #2e7d32;
    font-size: 20px;
}

.resep-detail-steps h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.resep-detail-steps ol {
    padding-left: 20px;
}

.resep-detail-steps ol li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
}

.resep-detail-tips {
    margin-top: 25px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 12px;
    border-left: 4px solid #2e7d32;
}

.resep-detail-tips h4 {
    color: #2e7d32;
    margin-bottom: 8px;
}

.resep-detail-tips p {
    color: #555;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2e7d32;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    text-decoration: none;
}

.btn-back:hover {
    background: #1e5e22;
    transform: translateX(-5px);
}

.dark .resep-detail-ingredients {
    background: #1f1f1f;
}

.dark .resep-detail-ingredients ul li {
    border-bottom-color: #333;
    color: #ddd;
}

.dark .resep-detail-steps ol li {
    border-bottom-color: #333;
    color: #ddd;
}

.dark .resep-detail-tips {
    background: #1a2a1a;
}

.dark .resep-detail-tips p {
    color: #ccc;
}

@media(max-width: 768px) {
    .resep-detail-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .resep-detail-header h1 {
        font-size: 28px;
    }
}

#uploadedMenuContainer {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
    width: 100%;
}

#uploadedMenuContainer .food {
    background: white;
    width: 330px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

#uploadedMenuContainer .food:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

#uploadedMenuContainer .food img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

#uploadedMenuContainer .food h3 {
    padding: 18px 20px 8px;
    font-size: 18px;
    color: #1a1a1a;
}

#uploadedMenuContainer .food p {
    padding: 0 20px;
    color: #666;
    font-size: 14px;
    line-height: 24px;
}

#uploadedMenuContainer .food span {
    display: inline-block;
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    margin: 15px 20px 20px;
    font-size: 13px;
    font-weight: 500;
}

#uploadedMenuContainer .food span:first-of-type {
    background: #2e7d32;
}

#uploadedMenuContainer .food .badge-tambah {
    background: #1565c0;
}

#uploadedMenuContainer .food .badge-turun {
    background: #e65100;
}

#uploadedMenuContainer .food .badge-netral {
    background: #6d6d6d;
}

.dark #uploadedMenuContainer .food {
    background: #1f1f1f;
    border-color: #333;
}

.dark #uploadedMenuContainer .food h3 {
    color: white;
}

.dark #uploadedMenuContainer .food p {
    color: #ccc;
}

.dark #uploadedMenuContainer .food:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

@media(max-width: 768px) {
    #uploadedMenuContainer .food {
        width: 100%;
        max-width: 380px;
    }
}

@media(max-width: 480px) {
    #uploadedMenuContainer .food {
        max-width: 100%;
    }

    #uploadedMenuContainer .food img {
        height: 180px;
    }
}

#konsultasi form button {
    padding: 16px;
    border: none;
    background: #09680dc0;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#konsultasi form button:hover {
    background: #0c5f13ab;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#konsultasi form button i {
    font-size: 20px;
}

.dark #konsultasi form button {
    background: #09680dc0;
}

.dark #konsultasi form button:hover {
    background: #0c5f13ab;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #2e7d32;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.3);
    transition: all 0.3s ease;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #1e5e22;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.5);
}

.scroll-top-btn:active {
    transform: scale(0.9);
}

.scroll-top-btn i {
    font-size: 22px;
    animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.dark .scroll-top-btn {
    background: #43a047;
    box-shadow: 0 4px 20px rgba(67, 160, 71, 0.3);
}

.dark .scroll-top-btn:hover {
    background: #2e7d32;
    box-shadow: 0 8px 30px rgba(67, 160, 71, 0.5);
}

@media(max-width: 768px) {
    .scroll-top-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-top-btn i {
        font-size: 18px;
    }
}

.program-badge-index {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.program-badge-index.program-up-index {
    background: #e3f2fd;
    color: #0d47a1;
}

.program-badge-index.program-down-index {
    background: #fff3e0;
    color: #e65100;
}

.program-badge-index.program-none-index {
    background: #f5f5f5;
    color: #888;
}

.dark .program-badge-index.program-up-index {
    background: #1a2a4a;
    color: #64b5f6;
}

.dark .program-badge-index.program-down-index {
    background: #4a2a1a;
    color: #ff8a65;
}

.dark .program-badge-index.program-none-index {
    background: #2a2a2a;
    color: #888;
}

.notification-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-weight: 500;
    max-width: 450px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    animation: slideInRight 0.4s ease;
}

.notification-custom.success {
    background: #2e7d32;
    color: white;
}

.notification-custom.error {
    background: #d32f2f;
    color: white;
}

.notification-custom.info {
    background: #1976d2;
    color: white;
}

.notification-custom.warning {
    background: #f57c00;
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-custom.hide {
    animation: slideOutRight 0.4s ease;
}


.admin-profile {
    position: relative;
    cursor: pointer;
}

.admin-profile .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #2e7d32;
}

.admin-profile .dropdown-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    display: none;
    z-index: 1000;
}

.admin-profile:hover .dropdown-menu {
    display: block;
}

.admin-profile .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #222;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-profile .dropdown-menu a:hover {
    background: #f5f5f5;
}

.dark .admin-profile .dropdown-menu {
    background: #1f1f1f;
}

.dark .admin-profile .dropdown-menu a {
    color: white;
}

.dark .admin-profile .dropdown-menu a:hover {
    background: #2a2a2a;
}

.login-required-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 40px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 2px dashed #c8e6c9;
}

.login-required-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 36px;
    color: #2e7d32;
}

.login-required-box h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.login-required-box p {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
}

.login-required-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-login-required {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login-required.btn-login {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: white;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.25);
}

.btn-login-required.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.35);
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
}

.btn-login-required.btn-register {
    background: white;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}

.btn-login-required.btn-register:hover {
    transform: translateY(-3px);
    background: #e8f5e9;
}

.dark .login-required-box {
    background: #1f1f1f;
    border-color: #2a4a2a;
}

.dark .login-required-box h3 {
    color: white;
}

.dark .login-required-box p {
    color: #aaa;
}

.dark .login-required-icon {
    background: #1a2a1a;
    color: #66bb6a;
}

.dark .btn-login-required.btn-register {
    background: #1f1f1f;
    color: #66bb6a;
    border-color: #66bb6a;
}

.dark .btn-login-required.btn-register:hover {
    background: #1a2a1a;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto; 
    flex-shrink: 0;
    padding-left: 20px; 
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    background: #2e7d32;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #1b5e20;
    transform: translateY(-2px);
}

.btn-user {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    background: #2e7d32;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-user:hover {
    background: #1b5e20;
}

.btn-logout-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #f5f5f5;
    color: #555;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-logout-header:hover {
    background: #ffebee;
    color: #c62828;
}

.btn-dark {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    padding: 6px 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-dark:hover {
    background: rgba(0,0,0,0.05);
    transform: rotate(20deg);
}

.dark .btn-dark {
    color: #d0d0d0;
}

.dark .btn-dark:hover {
    background: rgba(255,255,255,0.05);
    color: #66bb6a;
}

.dark .btn-logout-header {
    background: #2a2a2a;
    color: #aaa;
}

.dark .btn-logout-header:hover {
    background: #2a1a1a;
    color: #ef5350;
}

.dark .btn-login {
    background: #2e7d32;
}

.dark .btn-login:hover {
    background: #1b5e20;
}

.dark .btn-user {
    background: #2e7d32;
}

.dark .btn-user:hover {
    background: #1b5e20;
}