/* ==========================================================================
   RiceERP Design System - Matched with Groen host Login Theme
   Updated with Premium Spacing Layout & Interactive Dashboard Glow
   ========================================================================== */
:root {
    --primary-dark: #15332A;      /* Deep forest green from login page */
    --primary-darker: #0D221B;    /* Dark contrast for elements */
    --gold: #D1A543;              /* Premium gold from text/icons */
    --gold-hover: #b88f36;        
    --text-main: #2b3a34;
    --text-muted: #667a71;
    --bg-main: #ffffff;
    --bg-section: #f4f7f5;        /* Soft gray-green tint */
    --bg-dashboard: #1B3C32;
    --glass-bg: rgba(21, 51, 42, 0.7);
    --light-green: rgba(209, 165, 67, 0.1); 
}

[data-theme="dark"] {
    --text-main: #f0f4f2;
    --text-muted: #94a39d;
    --bg-main: #0D221B;
    --bg-section: #15332A;
    --bg-dashboard: #1a4235;
    --glass-bg: rgba(13, 34, 27, 0.85);
}

/* ==========================================================================
   Base Elements & Global Resets
   ========================================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.text-gold { color: var(--gold) !important; }
.bg-gold { background-color: var(--gold) !important; }
.text-primary-dark { color: var(--primary-dark) !important; }
.text-primary-darker { color: var(--primary-darker) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.bg-primary-darker { background-color: var(--primary-darker) !important; }
.bg-section { background-color: var(--bg-section); }
.bg-light-green { background-color: var(--light-green); }
.border-gold { border-color: var(--gold) !important; }
.border-bottom-gold { border-bottom: 2px solid var(--gold) !important; }

/* Global Utilities */
.section-padding { padding: 80px 0; }
.transition-all { transition: all 0.3s ease; }
.hover-gold:hover { color: var(--gold) !important; }

/* Buttons */
.btn-gold { background-color: var(--gold); color: #0D221B; border: none; transition: all 0.3s ease; }
.btn-gold:hover { background-color: var(--gold-hover); color: #ffffff !important; }
.btn-outline-gold { border: 2px solid var(--gold); color: var(--gold); transition: all 0.3s ease; }
.btn-outline-gold:hover { background-color: var(--gold); color: #0D221B; }
.btn-primary-dark { background-color: var(--primary-dark); color: var(--gold); transition: all 0.3s ease; }
.btn-primary-dark:hover { background-color: var(--primary-darker); color: #fff; }

/* ==========================================================================
   Header & Enhanced Navigation (Khula Khula Spacing)
   ========================================================================== */
#mainNav {
    background-color: var(--bg-main) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.custom-shadow { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important; }

/* Links Alignment & Gap Setup */
.nav-gap {
    gap: 2.5rem; /* Exact airy spacing between menu items */
}
#mainNav .nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 12px 18px !important; 
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}
#mainNav .nav-link:hover, #mainNav .nav-link.active {
    color: var(--gold) !important;
}

.dropdown-toggle::after { vertical-align: middle; margin-left: 0.4em; border-width: 0.25em; }
.icon-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; padding: 0; border-width: 2px; }

/* Micro Interaction: Hover Lift */
.hover-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hover-lift:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(209, 165, 67, 0.25) !important; }

/* Mega Menu Dropdown Setup */
.has-megamenu:hover .megamenu { display: block; margin-top: 0; }
.megamenu {
    display: none; position: absolute; top: 100%; left: 0; width: 760px; padding: 30px;
    background: var(--bg-main); border-radius: 12px;
    border-top: 3px solid var(--gold) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}
.menu-links li { margin-bottom: 14px; }
.menu-links a { color: var(--text-main); text-decoration: none; display: block; font-size: 0.98rem; transition: 0.2s; }
.menu-links a:hover { color: var(--gold); padding-left: 8px; }
.menu-links a i { width: 30px; text-align: center; }

/* ==========================================================================
   Hero & Content Architecture
   ========================================================================== */
.hero-section { 
    min-height: 85vh; 
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%); 
    padding-top: 80px; 
    padding-bottom: 80px; 
}
.hero-image-container { position: relative; padding: 10px; }
.hero-image-wrapper { 
    border: 3px solid rgba(209, 165, 67, 0.25) !important; 
    background-color: var(--primary-darker);
    border-radius: 16px !important;
    transition: transform 0.4s ease;
}
.dashboard-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: scale(1.01); 
    transition: transform 0.5s ease;
}
.hero-image-container:hover .dashboard-img {
    transform: scale(1.03); 
}
.custom-glow { box-shadow: 0 20px 50px rgba(209, 165, 67, 0.15) !important; }

/* ==========================================================================
   Feature Cards & Sections
   ========================================================================== */
.feature-card { background: var(--bg-main); transition: transform 0.3s ease, box-shadow 0.3s ease; border-bottom: 3px solid transparent !important; }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(21, 51, 42, 0.06) !important; border-bottom: 3px solid var(--gold) !important; }
.icon-box { width: 65px; height: 65px; display: flex; align-items: center; justify-content: center; }
.border-bottom-thick { border-bottom: 4px solid var(--gold) !important; }

/* ==========================================================================
   Floating Functional UI
   ========================================================================== */
.back-to-top, .whatsapp-float { position: fixed; bottom: 30px; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.15); transition: 0.3s; }
.back-to-top { right: 30px; background: var(--primary-dark); opacity: 0; visibility: hidden; text-decoration: none; }
.back-to-top:hover { color: var(--gold); }
.back-to-top.active { opacity: 1; visibility: visible; }
.whatsapp-float { left: 30px; background: #25D366; text-decoration: none; }
.whatsapp-float:hover { background: #128C7E; color: white; transform: scale(1.05); }

/* Footer Links Micro Animations */
.footer-links a:hover {
    padding-left: 6px;
    color: var(--gold) !important;
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */
@media (max-width: 992px) {
    .nav-gap { gap: 1rem; }
    .megamenu { position: static; width: 100%; box-shadow: none; border-top: none !important; }
    .hero-section { text-align: center; padding-top: 60px; }
    .hero-section .justify-content-lg-start { justify-content: center !important; }
}