/* ==========================================================================
   ENTERPRISE MODERN UI - DESA SUKA MAKMUR
   Author: Sistem Informasi Desa CI4
   Design System: Bootstrap 5 Customization & Modern Utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES (Tema Warna & Properti Utama)
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette - Trust & Professionalism (Slate & Ocean Blue) */
    --primary: #0f172a;        /* Deep Slate 900 - Header/Footer */
    --primary-light: #1e293b;  /* Slate 800 */
    --secondary: #0284c7;      /* Ocean Blue 600 - Tombol Utama/Aksen */
    --secondary-hover: #0369a1;/* Ocean Blue 700 */
    --accent: #eab308;         /* Yellow 500 - Highlight/Peringatan */
    --accent-hover: #ca8a04;
    
    /* Backgrounds & Surfaces */
    --bg-body: #f8fafc;        /* Slate 50 - Background utama website */
    --surface: #ffffff;        /* Background card/container */
    --surface-hover: #f1f5f9;  /* Slate 100 */
    
    /* Typography Colors */
    --text-main: #334155;      /* Slate 700 - Teks paragraf utama */
    --text-muted: #64748b;     /* Slate 500 - Teks pendukung */
    --text-heading: #0f172a;   /* Slate 900 - Judul H1-H6 */
    
    /* Borders & Dividers */
    --border-color: #e2e8f0;   /* Slate 200 */
    --border-light: #f1f5f9;
    
    /* Border Radius (Pojok melengkung yang modern) */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-pill: 50rem;
    
    /* Soft Elevation / Box Shadows (Gaya Apple/Modern Enterprise) */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-float: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. BASE & RESET
   -------------------------------------------------------------------------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.025em; /* Rapat elegan ala startup modern */
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--secondary-hover);
}

.hero-section{
    background:
        
        url('../img/bg-desa.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 700px;
}

.hero-section .overlay{
    position:absolute;
    inset:0;
}
/* Mengubah scrollbar menjadi lebih estetik */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --------------------------------------------------------------------------
   3. ENTERPRISE COMPONENTS
   -------------------------------------------------------------------------- */

/* Cards - Menimpa bawaan Bootstrap agar lebih elegan */
.card-enterprise {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    overflow: hidden;
}

.card-enterprise:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

/* Glassmorphism / Blur Effect (Untuk Navbar atau Elemen Mengambang) */
.glass-panel {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Buttons - Gaya Modern */
.btn-enterprise {
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary-custom {
    background-color: var(--secondary);
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.3);
}

.btn-primary-custom:hover {
    background-color: var(--secondary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.4);
}

/* Input Fields & Forms */
.form-control-enterprise {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.form-control-enterprise:focus {
    background-color: var(--surface);
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
    outline: none;
}

/* --------------------------------------------------------------------------
   4. UTILITIES & ANIMATIONS
   -------------------------------------------------------------------------- */
.hover-lift {
    transition: var(--transition-base);
}
.hover-lift:hover {
    transform: translateY(-5px);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* --------------------------------------------------------------------------
   5. ACCESSIBILITY (Terhubung dengan state AlpineJS)
   -------------------------------------------------------------------------- */
/* State: High Contrast Mode (Hitam & Kuning/Cyan) */
body.high-contrast {
    background-color: #121212 !important;
    color: #ffffff !important;
}

body.high-contrast .card-enterprise, 
body.high-contrast .glass-panel,
body.high-contrast .bg-white {
    background-color: #1e1e1e !important;
    border-color: #ffff00 !important;
    color: #ffffff !important;
}

body.high-contrast h1, 
body.high-contrast h2, 
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6 {
    color: #ffff00 !important; /* Kuning terang agar mudah dibaca */
}

body.high-contrast a {
    color: #00ffff !important; /* Cyan untuk link */
    text-decoration: underline !important;
}

/* State: Text Large Mode */
body.text-large {
    font-size: 1.15rem !important;
}

body.text-large h1 { font-size: 3rem !important; }
body.text-large h2 { font-size: 2.5rem !important; }
body.text-large h3 { font-size: 2rem !important; }
body.text-large .small { font-size: 1rem !important; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hover-scale:hover {
    transform: scale(1.1);
}