/**
 * @file style.css
 * @description Premium Modern UI Stylesheet untuk MASJAD v1.0.
 * Menerapkan Minimalist Fluent Design dengan detail banyangan ambient halus.
 */

/* ==================================================================== */
/* 1. VARIABLE TOKENS & RESET                                           */
/* ==================================================================== */
:root {
    --sidebar-width: 280px;
    --transition-speed: 0.25s;
    
    /* Elegant Dark Slate Palette (Sidebar) */
    --dark-bg: #111827;        /* Tailwind Gray 900 */
    --dark-card: #1f2937;      /* Tailwind Gray 800 */
    --dark-hover: #1f2937;
    
    /* Light UI Elements */
    --body-bg: #f8fafc;        /* Tailwind Slate 50 */
    --card-bg: #ffffff;
    --text-main: #0f172a;      /* Tailwind Slate 900 */
    --text-muted: #64748b;     /* Tailwind Slate 500 */
    
    /* Status & Action Accents */
    --accent-success: #10b981; /* Emerald 500 */
    --accent-primary: #3b82f6; /* Blue 500 */
    --accent-warning: #f59e0b; /* Amber 500 */
    --accent-danger: #ef4444;  /* Red 500 */
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    background-color: var(--body-bg);
    color: var(--text-main);
    min-height: 100vh;
}

/* ==================================================================== */
/* 2. MASTER CONTAINER WORKSPACE                                        */
/* ==================================================================== */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background-color: var(--dark-bg) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 999;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

#content {
    flex-grow: 1;
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    background-color: var(--body-bg);
    display: flex;
    flex-direction: column;
}

/* ==================================================================== */
/* 3. PREMIUM SIDEBAR NAVIGATION                                        */
/* ==================================================================== */
.sidebar-header {
    padding: 2rem 1.5rem 1.5rem 1.5rem !important;
}

#sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem !important;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8 !important; /* Soft gray */
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all var(--transition-speed) ease;
}

/* Hover State - Soft Highlight */
#sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: #ffffff !important;
}

/* Active State - Vibrant Pill Glass Effect */
#sidebar li.active > .nav-link {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

#sidebar li.active > .nav-link i {
    color: #ffffff !important;
}

#sidebar .nav-link i {
    width: 24px;
    text-align: left;
    font-size: 1.1rem;
}

.nav-section-title {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px;
    color: #475569 !important; /* Muted slate */
    margin-top: 20px !important;
    margin-bottom: 8px !important;
    padding-left: 1.2rem !important;
}

/* ==================================================================== */
/* 4. MODERN MODERN DASHBOARD CARDS & WIDGETS                         */
/* ==================================================================== */

/* Jumbotron Welcome Card */
.welcome-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.015) !important;
}

/* Grid Indicator Stat Cards */
.stat-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left !important;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Dynamic Accent Colors for Icons Background */
.stat-success { background-color: #ecfdf5; color: var(--accent-success); }
.stat-primary { background-color: #eff6ff; color: var(--accent-primary); }
.stat-warning { background-color: #fffbeb; color: var(--accent-warning); }
.stat-danger  { background-color: #fef2f2; color: var(--accent-danger); }

/* Top Navigation / Navbar Bar */
.navbar {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 1.25rem 2rem !important;
}

/* Callout utility styles */
.callout {
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    background: #ffffff;
}