/**
 * Teras Tani Indonesia - Stylesheet
 */

:root {
    --primary-color: #3E7E36;
    --primary-light: #60A857;
    --secondary-color: #85C37C;
    --accent-color: #D36B2B;
    --accent-hover: #B7551C;
    --bg-light: #F0F9FF;
    --card-shadow: 0 10px 30px rgba(12, 74, 110, 0.08);
    --card-shadow-hover: 0 15px 35px rgba(12, 74, 110, 0.15);
    --glass-bg: linear-gradient(135deg, rgba(244, 249, 255, 0.92) 0%, rgba(224, 242, 254, 0.85) 100%); /* Gradasi kaca biru muda es premium */
    --glass-border: rgba(186, 230, 253, 0.7); /* Bingkai kaca biru muda */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-bs-theme="dark"] {
    --bg-light: #121412;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.45);
    --glass-bg: rgba(20, 24, 20, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: var(--font-body);
    background: #f4f9f4 url('../../uploads/settings/hero_bg.jpg') no-repeat center top fixed;
    background-size: cover;
    color: var(--bs-body-color);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

.bg-light, .bg-white {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
}

[data-bs-theme="dark"] .bg-light, 
[data-bs-theme="dark"] .bg-white {
    background-color: rgba(18, 20, 18, 0.9) !important;
    backdrop-filter: blur(10px);
}

h1, h2, h3, h4, h5, h6, .brand-text {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Background utilities */
.bg-light-tint {
    background-color: #F8FAF8;
}
.bg-dark-tint {
    background-color: #121412;
}

/* Navigation styling */
.navbar-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-size: 1.25rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

[data-bs-theme="dark"] .brand-text {
    color: var(--secondary-color);
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #000000;
    padding: 0.5rem 0.8rem !important;
    position: relative;
    transition: var(--transition-smooth);
    margin: 0 0.1rem;
    letter-spacing: 0.1px;
    white-space: nowrap; /* Prevent wrapping completely */
}

@media (min-width: 992px) and (max-width: 1100px) {
    .navbar-nav .nav-link {
        font-size: 0.72rem;
        padding: 0.4rem 0.25rem !important;
        margin: 0 0.01rem;
    }
}

@media (min-width: 1101px) and (max-width: 1250px) {
    .navbar-nav .nav-link {
        font-size: 0.78rem;
        padding: 0.4rem 0.35rem !important;
        margin: 0 0.02rem;
    }
}

@media (min-width: 1251px) and (max-width: 1400px) {
    .navbar-nav .nav-link {
        font-size: 0.84rem;
        padding: 0.5rem 0.5rem !important;
        margin: 0 0.03rem;
    }
}

@media (min-width: 1401px) {
    .navbar-nav .nav-link {
        font-size: 0.88rem;
        padding: 0.5rem 0.65rem !important;
        margin: 0 0.05rem;
    }
}

[data-bs-theme="dark"] .navbar-nav .nav-link {
    color: #ffffff;
}

/* Elegant Underline Hover Animation */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}

[data-bs-theme="dark"] .navbar-nav .nav-link::after {
    background-color: var(--secondary-color);
}

.navbar-nav .nav-link:hover::after, 
.navbar-nav .nav-link.active::after {
    width: 60%;
    left: 20%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

[data-bs-theme="dark"] .navbar-nav .nav-link:hover,
[data-bs-theme="dark"] .navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

/* Theme toggle button */
.btn-icon-theme {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-icon-theme:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .btn-icon-theme:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Premium Rounded Cards */
.card-premium {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(12, 74, 110, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    position: relative;
}

/* Garis dekoratif gradien premium di bagian atas kartu */
.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    opacity: 0.85;
    z-index: 5;
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(12, 74, 110, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    border-radius: 12px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

.btn-primary-custom:hover {
    background-color: #235f26;
    border-color: #235f26;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

.btn-accent-custom {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #212529;
    border-radius: 12px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-accent-custom:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #000;
    transform: translateY(-2px);
}

/* Custom Cart Badge styling */
.cart-icon-wrapper {
    background-color: rgba(46, 125, 50, 0.05);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-wrapper .badge {
    font-size: 0.65rem;
}

/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

/* Custom Footer and Social Links */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-social-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

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

.footer-links li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0 80px 0;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 187, 106, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Gallery Hover styling */
.gallery-hover-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.gallery-hover-item img {
    transition: var(--transition-smooth);
}

.gallery-hover-item:hover img {
    transform: scale(1.08);
}

/* Swiper Controls Custom */
.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* Responsive constraints */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        background: var(--glass-bg);
        border-radius: 15px;
        padding: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }
    .hero-section {
        padding: 60px 0 40px 0;
    }
}

/* Keterbacaan Teks Maksimal pada Area Header / Hero */
.py-5.text-white h1, 
.py-5.text-white p, 
.text-white.py-5 h1, 
.text-white.py-5 p,
.text-white.py-5 span,
.carousel-item h1, 
.carousel-item p,
.carousel-item span,
.hero-section h1, 
.hero-section p, 
.hero-section span {
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.95) !important;
    font-weight: 500;
}

/* ==========================================================================
   DARK MODE TEXT COLOR & READABILITY FIXES
   ========================================================================== */
[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-black,
[data-bs-theme="dark"] .text-black-50,
[data-bs-theme="dark"] .card-premium .text-dark,
[data-bs-theme="dark"] .quick-nav-card p.text-dark {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .card-premium .text-secondary {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .card-premium .text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .card-premium,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .list-group-item,
[data-bs-theme="dark"] .table {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .list-group-item-action {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .list-group-item-action.active {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    color: #85C37C !important;
    background-color: rgba(62, 126, 54, 0.15) !important;
}

[data-bs-theme="dark"] .accordion-button.collapsed {
    color: #f8f9fa !important;
}

/* =====================================================
   SMOOTH ANIMATIONS & MICRO-INTERACTIONS
   Professional animation system
   ===================================================== */

/* --- Keyframes --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.93); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(62,126,54,0.25); }
    50%       { box-shadow: 0 0 0 10px rgba(62,126,54,0); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes bounceIn {
    0%   { opacity: 0; transform: scale(0.5); }
    60%  { opacity: 1; transform: scale(1.08); }
    100% { transform: scale(1); }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

/* --- Utility animation classes --- */
.anim-fade-up   { animation: fadeInUp 0.55s cubic-bezier(0.22,1,0.36,1) both; }
.anim-fade-left { animation: fadeInLeft 0.55s cubic-bezier(0.22,1,0.36,1) both; }
.anim-fade-right{ animation: fadeInRight 0.55s cubic-bezier(0.22,1,0.36,1) both; }
.anim-fade      { animation: fadeIn 0.5s ease both; }
.anim-scale     { animation: scaleIn 0.45s cubic-bezier(0.22,1,0.36,1) both; }
.anim-bounce    { animation: bounceIn 0.6s cubic-bezier(0.22,1,0.36,1) both; }
.anim-float     { animation: floatY 3s ease-in-out infinite; }

/* Stagger delays for lists / grids */
.stagger > *:nth-child(1)  { animation-delay: 0.05s; }
.stagger > *:nth-child(2)  { animation-delay: 0.12s; }
.stagger > *:nth-child(3)  { animation-delay: 0.19s; }
.stagger > *:nth-child(4)  { animation-delay: 0.26s; }
.stagger > *:nth-child(5)  { animation-delay: 0.33s; }
.stagger > *:nth-child(6)  { animation-delay: 0.40s; }
.stagger > *:nth-child(7)  { animation-delay: 0.47s; }
.stagger > *:nth-child(8)  { animation-delay: 0.54s; }

/* --- AOS (built-in backup) overrides for smoother feel --- */
[data-aos="fade-up"]    { transition-timing-function: cubic-bezier(0.22,1,0.36,1) !important; }
[data-aos="fade-right"] { transition-timing-function: cubic-bezier(0.22,1,0.36,1) !important; }
[data-aos="fade-left"]  { transition-timing-function: cubic-bezier(0.22,1,0.36,1) !important; }
[data-aos="zoom-in"]    { transition-timing-function: cubic-bezier(0.22,1,0.36,1) !important; }

/* --- Smooth page enter (all pages) --- */
main, .container-fluid, .container {
    animation: fadeIn 0.35s ease both;
}

/* --- Card hover lift & glow --- */
.card-premium {
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.3s cubic-bezier(0.22,1,0.36,1) !important;
    will-change: transform, box-shadow;
}
.card-premium:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 45px rgba(12, 74, 110, 0.14) !important;
}
[data-bs-theme="dark"] .card-premium:hover {
    box-shadow: 0 20px 45px rgba(0,0,0,0.4) !important;
}

/* --- Button micro-animations --- */
.btn {
    transition: all 0.22s cubic-bezier(0.22,1,0.36,1) !important;
    position: relative;
    overflow: hidden;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn:active {
    transform: translateY(0) scale(0.97);
}
.btn-primary-custom:hover { box-shadow: 0 6px 20px rgba(62,126,54,0.35); }
.btn-danger:hover         { box-shadow: 0 6px 20px rgba(220,53,69,0.35); }
.btn-success:hover        { box-shadow: 0 6px 20px rgba(25,135,84,0.35); }
.btn-warning:hover        { box-shadow: 0 6px 20px rgba(255,193,7,0.35); }

/* Ripple effect on button click */
.btn::after {
    content: '';
    position: absolute;
    width: 0; height: 0;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}
.btn:active::after {
    width: 200px; height: 200px;
    opacity: 1;
    transition: 0s;
}

/* --- Nav link smooth underline slide --- */
.nav-link {
    position: relative;
    transition: color 0.22s ease !important;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.28s cubic-bezier(0.22,1,0.36,1), left 0.28s cubic-bezier(0.22,1,0.36,1);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%; left: 10%;
}

/* --- Table row smooth hover --- */
.table-hover > tbody > tr {
    transition: background-color 0.18s ease, transform 0.18s ease;
}
.table-hover > tbody > tr:hover {
    transform: translateX(3px);
}

/* --- Badge pop animation --- */
.badge {
    animation: scaleIn 0.3s cubic-bezier(0.22,1,0.36,1) both;
}

/* --- Form input focus glow --- */
.form-control, .form-select {
    transition: border-color 0.22s ease, box-shadow 0.22s ease !important;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(62,126,54,0.18) !important;
    border-color: var(--primary-color) !important;
}

/* --- List group item slide --- */
.list-group-item {
    transition: background-color 0.18s ease, transform 0.18s ease, padding-left 0.18s ease;
}
.list-group-item-action:hover {
    padding-left: 1.2rem !important;
    background-color: rgba(62,126,54,0.06) !important;
}

/* --- Navbar badge bounce on load --- */
.badge.rounded-pill {
    animation: bounceIn 0.5s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}

/* --- Image smooth load --- */
img {
    transition: opacity 0.35s ease, transform 0.35s ease;
}
img:hover {
    opacity: 0.95;
}

/* --- Scrollbar slim & stylish --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(62,126,54,0.4); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(62,126,54,0.7); }

/* --- Alert / flash message slide-down --- */
.alert {
    animation: slideDown 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

/* --- Skeleton shimmer loader --- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}
[data-bs-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #1e2420 25%, #252e23 50%, #1e2420 75%);
    background-size: 200% 100%;
}

/* --- Stat counter card animation --- */
.card-premium h4 {
    transition: color 0.3s ease;
}
.card-premium:hover h4 {
    color: var(--primary-color) !important;
}

/* --- Smooth section reveal via IntersectionObserver class --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
                transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Pulsing CTA button --- */
.btn-pulse {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* --- Smooth dropdown menu --- */
.dropdown-menu {
    animation: slideDown 0.25s cubic-bezier(0.22,1,0.36,1) both;
}

/* --- Cart icon wiggle on add --- */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    20%       { transform: rotate(-10deg); }
    60%       { transform: rotate(10deg); }
    80%       { transform: rotate(-5deg); }
}
.cart-wiggle { animation: wiggle 0.5s ease both; }

/* ==========================================================================
   ULTRA-RESPONSIVE MOBILE STYLING (HP MOBILE OPTIMIZATION)
   ========================================================================== */
@media (max-width: 767.98px) {
    /* Body & Hero Background scaling */
    body {
        background-attachment: scroll !important;
        background-position: center top !important;
    }

    /* Hero Banner Mobile */
    .hero-container {
        min-height: 320px !important;
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }
    .hero-heading-title {
        font-size: 1.7rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
    }
    .hero-subtitle-text {
        font-size: 0.86rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }

    /* Quick Nav 5 Cards Mobile Grid */
    .quick-nav-card {
        padding: 0.5rem !important;
    }
    .quick-nav-icon-box {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.15rem !important;
    }
    .quick-nav-label {
        font-size: 0.72rem !important;
        line-height: 1.2 !important;
    }

    /* Category Boxes (UMKM, Pertanian, Peternakan, Jasa) Mobile */
    .category-card-item {
        padding: 0.65rem 0.75rem !important;
    }
    .category-icon-wrapper {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.95rem !important;
        margin-right: 0.5rem !important;
    }
    .category-card-item h6 {
        font-size: 0.8rem !important;
    }
    .category-card-item small {
        font-size: 0.68rem !important;
    }

    /* Product Grid Mobile (Side by Side 2 Columns) */
    .product-thumb {
        height: 140px !important;
    }

    /* Navbar Brand Mobile */
    .brand-text {
        font-size: 1.05rem !important;
    }
    .logo-img {
        height: 32px !important;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .btn-lg {
        padding: 0.5rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
}

/* ========================================================
   MODERN OFFCANVAS MENU & TOPBAR STYLES (PC & HP)
   ======================================================== */
.btn-menu-toggle {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.25);
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
}
.btn-menu-toggle:hover, .btn-menu-toggle:focus {
    background: #2e7d32;
    color: #ffffff !important;
    border-color: #2e7d32;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}
[data-bs-theme="dark"] .btn-menu-toggle {
    background: rgba(133, 195, 124, 0.15);
    color: #85c37c;
    border-color: rgba(133, 195, 124, 0.3);
}
[data-bs-theme="dark"] .btn-menu-toggle:hover {
    background: #85c37c;
    color: #121412 !important;
}

.offcanvas-custom {
    width: 380px !important;
    max-width: 88vw !important;
    background: #ffffff;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
    z-index: 1060;
}
[data-bs-theme="dark"] .offcanvas-custom {
    background: #181c18;
    color: #e0e0e0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5);
}

.offcanvas-menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 0.3rem;
}
.offcanvas-menu-link:hover {
    background: rgba(46, 125, 50, 0.08);
    color: #2e7d32;
    transform: translateX(4px);
}
.offcanvas-menu-link.active {
    background: #2e7d32;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}
.offcanvas-menu-link.active .offcanvas-icon-box {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .offcanvas-menu-link {
    color: #d1d5db;
}
[data-bs-theme="dark"] .offcanvas-menu-link:hover {
    background: rgba(133, 195, 124, 0.15);
    color: #85c37c;
}
[data-bs-theme="dark"] .offcanvas-menu-link.active {
    background: #85c37c;
    color: #121412 !important;
}
[data-bs-theme="dark"] .offcanvas-menu-link.active .offcanvas-icon-box {
    background: rgba(0, 0, 0, 0.15) !important;
    color: #121412 !important;
}

.offcanvas-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.85rem;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.offcanvas-icon-box i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.offcanvas-menu-link:hover .offcanvas-icon-box {
    transform: scale(1.12);
}

