/* ============================================================================
   Pemerintah Desa Ngoran - Tema Opsi A: Emerald Nature & Golden Amber
   Identik dengan Mockup Desain: Deep Forest Canvas, Panorama Hero, Floating Cards
   ============================================================================ */

:root {
    --bg-forest-deep: #032b1f;
    --bg-forest-card: #063c2c;
    --bg-forest-surface: #0a4d3a;
    --bg-forest-light: #0d634b;
    --emerald-primary: #059669;
    --emerald-glow: #10b981;
    --amber-gold: #f59e0b;
    --amber-bright: #fbbf24;
    --amber-dark: #d97706;
    --text-light: #f8fafc;
    --text-muted-emerald: #a7f3d0;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-forest-deep);
    color: #e2e8f0;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(at 0% 0%, rgba(5, 150, 105, 0.25) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(6, 78, 59, 0.3) 0px, transparent 50%);
    background-attachment: fixed;
}

/* 1. Header / Navbar Dark Forest Style */
.navbar-emerald-mockup {
    background: rgba(3, 43, 31, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.brand-emblem-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    color: #032b1f;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.brand-logo-emblem {
    display: inline-block;
    vertical-align: middle;
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.2s ease;
}

.brand-logo-emblem:hover {
    transform: scale(1.06);
}

/* Navbar Menu Dock (Ultra Smooth, Seamless, No-Shift Segmented Glass Track) */
.nav-menu-bar {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50rem;
    padding: 3px 4px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
}

.nav-link-emerald {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    font-size: 0.79rem;
    padding: 0.32rem 0.56rem !important;
    border-radius: 50rem;
    background: transparent;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    letter-spacing: -0.01em;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .nav-menu-bar {
        padding: 2px 3px;
        gap: 1px;
    }
    .nav-link-emerald {
        font-size: 0.74rem;
        padding: 0.28rem 0.44rem !important;
    }
}

@media (min-width: 1400px) {
    .nav-menu-bar {
        padding: 3px 5px;
        gap: 3px;
    }
    .nav-link-emerald {
        font-size: 0.81rem;
        padding: 0.34rem 0.65rem !important;
    }
}

.nav-link-emerald:hover {
    color: #fbbf24 !important;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(251, 191, 36, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-link-emerald.active {
    color: #032b1f !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #fde68a;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

@media (max-width: 1199.98px) {
    .nav-menu-bar {
        border-radius: 1.25rem !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 4px !important;
        padding: 0.6rem !important;
    }
    .nav-link-emerald {
        width: 100% !important;
        text-align: left !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem;
    }
}

/* 2. Hero Panorama Card (Big Rounded Landscape Canvas) */
.hero-panorama-card {
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(3, 43, 31, 0.4) 0%, rgba(3, 43, 31, 0.85) 100%),
                url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(16, 185, 129, 0.2);
    overflow: hidden;
    position: relative;
    padding: 4rem 3rem 3rem 3rem;
}

@media (max-width: 768px) {
    .hero-panorama-card {
        border-radius: 1.5rem;
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
}

/* 3. Floating Stats Cards (Mockup 3 Cards Overlay) */
.stat-card-gradient-1 {
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.9) 0%, rgba(4, 120, 87, 0.8) 100%);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 1.5rem;
    color: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.stat-card-gradient-2 {
    background: linear-gradient(135deg, rgba(107, 33, 168, 0.85) 0%, rgba(147, 51, 234, 0.75) 100%);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(216, 180, 254, 0.3);
    border-radius: 1.5rem;
    color: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.stat-card-gradient-3 {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(6, 78, 59, 0.85) 100%);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 1.5rem;
    color: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* 4. Menu Utama Tiles (Square Golden Amber / Emerald Buttons) */
.menu-tile-gold {
    background: rgba(6, 60, 44, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 1.25rem;
    padding: 1.25rem 1rem;
    text-align: center;
    color: #f8fafc;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.menu-tile-gold:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #032b1f !important;
    border-color: #fbbf24;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.35);
}

.menu-tile-gold:hover .menu-tile-icon {
    background: rgba(3, 43, 31, 0.2);
    color: #032b1f;
}

.menu-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    transition: all 0.2s ease;
}

/* 5. News & Artikel Card Style (Dark Surface with Photo) */
.news-mockup-card {
    background: #063c2c;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-mockup-card:hover {
    transform: translateY(-5px);
    border-color: #f59e0b;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4);
}

.news-mockup-thumb {
    height: 150px;
    width: 100%;
    object-fit: cover;
}

/* 6. Aparatur & Wilayah Cards */
.dark-forest-card {
    background: #063c2c;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 7. Buttons */
.btn-amber-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    color: #032b1f !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
}

.btn-amber-gold:hover {
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-forest-outline {
    border: 1.5px solid rgba(245, 158, 11, 0.6);
    color: #fbbf24 !important;
    background: rgba(245, 158, 11, 0.1);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-forest-outline:hover {
    background: #f59e0b;
    color: #032b1f !important;
    border-color: #f59e0b;
}

.btn-pmi-lapor {
    background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    color: #ffffff !important;
    font-weight: 700;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
    transition: all 0.25s ease;
}

.btn-pmi-lapor:hover {
    background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.55);
    color: #ffffff !important;
    border-color: #ffffff;
}

/* Typography & Badges */
.text-amber-gold {
    color: #fbbf24 !important;
}

.text-emerald {
    color: #047857 !important;
}

.text-emerald-glow {
    color: #10b981 !important;
}

.hover-emerald:hover {
    color: #059669 !important;
}

.bg-emerald {
    background-color: #059669 !important;
}

.btn-emerald {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    border: none;
    transition: all 0.2s ease;
}

.btn-emerald:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-emerald-solid {
    background: linear-gradient(135deg, #047857 0%, #064e3b 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 1px solid #10b981 !important;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.35) !important;
    transition: all 0.25s ease;
}

.btn-emerald-solid:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    border-color: #34d399 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
}

/* TOTAL SURAT BADGE (High Contrast & Sangat Jelas Terbaca) */
.badge-total-surat {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid #10b981 !important;
    box-shadow: 0 3px 10px rgba(6, 78, 59, 0.35) !important;
    letter-spacing: 0.02em;
    font-size: 0.82rem !important;
    display: inline-flex !important;
    align-items: center !important;
}

.badge-total-surat .badge-count {
    color: #fbbf24 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.badge-total-surat .badge-text {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Colorful Gradient Icon Boxes for Categories */
.category-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover .category-icon-box {
    transform: scale(1.08) rotate(3deg);
}

.category-icon-cyan {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.35);
}

.category-icon-amber {
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.category-icon-rose {
    background: linear-gradient(135deg, #be123c 0%, #e11d48 100%);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35);
}

.category-icon-emerald {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.category-icon-indigo {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.badge-emerald-dark {
    background: rgba(5, 150, 105, 0.25);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-amber-dark {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Micro Interactions */
.hover-lift {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Explicit Text White High Contrast Classes */
.text-white-75 {
    color: #f1f5f9 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.text-white-80 {
    color: #f8fafc !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.text-white-90 {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Footer Mockup */
.footer-mockup-forest {
    background: #021e15;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    color: #94a3b8;
}

/* ============================================================================
   Global High-Contrast Breadcrumbs, Steps, & Form Styles for All Pages
   ============================================================================ */
.breadcrumb {
    background: rgba(4, 38, 28, 0.75) !important;
    border: 1px solid rgba(52, 211, 153, 0.25) !important;
    border-radius: 50rem !important;
    padding: 0.5rem 1.25rem !important;
    backdrop-filter: blur(12px) !important;
}

.breadcrumb-item a {
    color: #fbbf24 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.breadcrumb-item a:hover {
    color: #fde68a !important;
    text-decoration: underline !important;
}

.breadcrumb-item.active {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* 3-Step Progress Cards Global High-Contrast Styling */
.step-progress-card {
    background: rgba(4, 38, 28, 0.85) !important;
    border: 1px solid rgba(52, 211, 153, 0.25) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    border-radius: 1.25rem !important;
}

.step-progress-card.active {
    background: rgba(6, 60, 44, 0.95) !important;
    border: 1px solid #fbbf24 !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25) !important;
}

.step-progress-card .step-number {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #032b1f !important;
    font-weight: 800 !important;
}

.step-progress-card.completed .step-number {
    background: #10b981 !important;
    color: #ffffff !important;
}

.step-progress-card .fw-semibold.text-dark,
.step-progress-card .fw-bold.text-dark,
.step-progress-card .text-dark {
    color: #ffffff !important;
}

.step-progress-card .text-muted,
.step-progress-card .text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.step-progress-card .text-success {
    color: #34d399 !important;
}

.step-progress-card .text-primary {
    color: #fbbf24 !important;
}

/* Radio Button & Custom Selector Styles */
.custom-radio-box input[type="radio"]:checked + label {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3) !important;
}
.custom-radio-box input[type="radio"]:checked + label i {
    color: #ffffff !important;
}
.custom-radio-box label {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    background-color: #ffffff;
    color: #1e293b;
    border-color: #cbd5e1;
}
.custom-radio-box label:hover {
    border-color: #0d6efd;
    background-color: #f8fafc;
}

/* ============================================================================
   Form Header Card & Badge Styling (Ultra High Contrast, Crisp & Elegant)
   ============================================================================ */
.bg-gradient-brand,
.bg-gradient-primary,
.form-header-card {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #047857 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(52, 211, 153, 0.35) !important;
    box-shadow: 0 10px 30px rgba(2, 44, 34, 0.45) !important;
}

.form-header-badge,
.form-header-card .badge-form-header,
.bg-white.bg-opacity-20,
.form-header-card .bg-white.bg-opacity-20 {
    background: rgba(251, 191, 36, 0.2) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.45) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
    font-weight: 700 !important;
}

.form-header-badge i,
.bg-white.bg-opacity-20 i {
    color: #fbbf24 !important;
}


