/* FILENAME: style.css 
   THEME: Modern Government Dashboard
*/

/* 1. IMPORT FONT MODERN (POPPINS) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;       /* Biru Modern */
    --secondary-color: #64748b;     /* Abu-abu Slate */
    --sidebar-bg: #0f172a;          /* Dark Navy */
    --bg-color: #f1f5f9;            /* Putih Kebiruan (Background Utama) */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: #334155;
    font-size: 0.9rem;
}

/* 2. SIDEBAR STYLING */
.sidebar-container {
    background-color: var(--sidebar-bg);
    box-shadow: 4px 0 24px rgba(0,0,0,0.05);
    z-index: 100;
}

.brand-logo {
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1.5rem;
}

.nav-link {
    color: #94a3b8 !important;
    font-weight: 500;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.nav-link.active {
    background: var(--primary-color);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-link i {
    width: 24px;
    text-align: center;
}

/* 3. CARD & WIDGET STYLING */
.card {
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.card-counter:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}

/* 4. TABLE STYLING */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* 5. FORM ELEMENTS */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 6. BADGES (SOFT UI) */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    border-radius: 6px;
}

/* Kustomisasi warna badge agar "Soft" */
.bg-danger { background-color: #fee2e2 !important; color: #991b1b !important; } /* Merah Soft */
.bg-warning { background-color: #fef3c7 !important; color: #92400e !important; } /* Kuning Soft */
.bg-success { background-color: #dcfce7 !important; color: #166534 !important; } /* Hijau Soft */
.bg-primary { background-color: #dbeafe !important; color: #1e40af !important; } /* Biru Soft */
.bg-info    { background-color: #e0f2fe !important; color: #075985 !important; } /* Biru Muda Soft */

/* 7. BUTTONS */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    box-shadow: 0 6px 10px rgba(37, 99, 235, 0.3);
}

/* =========================================
   FORM STYLING (KHUSUS INPUT RISIKO)
   ========================================= */

/* 1. Label & Input Styling */
.form-label-custom {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b; /* Slate gray */
    font-weight: 700;
    margin-bottom: 6px;
}

.form-control, .form-select {
    background-color: #f8fafc; /* Latar belakang input agak abu-abu muda */
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 500;
    padding: 10px 15px; /* Padding lebih lega */
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); /* Efek glow biru halus */
}

/* Placeholder text styling */
::placeholder {
    color: #94a3b8 !important;
    opacity: 1; /* Firefox */
    font-weight: 400;
    font-size: 0.9em;
}

/* 2. Textarea Khusus */
textarea.form-control {
    resize: vertical; /* Hanya bisa ditarik ke bawah */
    min-height: 80px;
}

/* 3. Select2 Customization (Agar senada dengan Input lain) */
.select2-container--default .select2-selection--single {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    height: 45px !important; /* Tinggi disamakan dengan input */
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #334155 !important;
    font-weight: 500 !important;
    padding-left: 15px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px !important;
    right: 10px !important;
}

/* 4. SCORING BOX (Area Penilaian 1-5) */
.scoring-section {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    margin-top: 20px;
}

/* Garis dekorasi di kiri */
.scoring-section::before {
    content: '';
    position: absolute;
    left: 0; top: 20px; bottom: 20px;
    width: 4px;
    background: linear-gradient(to bottom, #3b82f6, #ef4444); /* Biru ke Merah */
    border-radius: 0 4px 4px 0;
}

.scoring-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dropdown Scoring yang Menonjol */
.select-score {
    font-size: 1.1rem;
    text-align: center;
    font-weight: bold;
    border: 2px solid transparent;
    cursor: pointer;
}

.score-blue {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.score-red {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.select-score:focus {
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

/* 5. Section Divider */
.form-section-title {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 600;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
}
.form-section-title i {
    margin-right: 10px;
    color: var(--primary-color);
}