/* =========================================================
   🚀 1. ROOT VARIABLES (PALET WARNA SADEGA BERSIH)
   ========================================================= */
:root {
    --primary-dark: #12233a;
    --primary-light: #1c385c;
    --accent-primary: #00a2e8;
    --accent-primary-hover: #0084bd;
    --accent-yellow: #fbc02d;
    --bg-gray: #f0f4f9;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

/* =========================================================
   🚀 2. WARNA BACKGROUND & TIPOGRAFI
   ========================================================= */
body {
    background-color: var(--bg-gray);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
}

#wrapper {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

#content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-gray);
    position: relative;
    overflow-x: hidden;
}

/* =========================================================
   🚀 3. SIDEBAR SADEGA (NAVY & CYAN)
   ========================================================= */
#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: linear-gradient(180deg, #12233a 0%, #1c385c 100%);
    transition: all 0.3s;
    border-right: none;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
    z-index: 1050;
}
#sidebar.active { margin-left: -260px; }

.sidebar-header {
    padding: 20px;
    background-color: #0a1422;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.sidebar-header small {
    color: #00a2e8 !important;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.4) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    border-bottom: none;
    border-radius: 8px;
    margin: 4px 15px;
    transition: all 0.3s ease;
}
.nav-link i {
    font-size: 1.1rem;
    margin-right: 10px;
    width: 25px;
    display: inline-block;
    color: rgba(255,255,255,0.5);
    transition: 0.3s;
}

.nav-link:hover { background: rgba(0, 162, 232, 0.1); color: #00a2e8; }
.nav-link:hover i { color: #00a2e8; }

.nav-link.active {
    background-color: #00a2e8 !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 162, 232, 0.4);
    border-left: none;
}
.nav-link.active i { color: #ffffff !important; }

.dropdown-menu { border-radius: 12px; border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dropdown-item:hover { background-color: #f8fafc; color: #00a2e8; }

/* =========================================================
   🚀 4. HEADER / NAVBAR ATAS (CLEAN WHITE)
   ========================================================= */
.navbar-top {
    background: #ffffff;
    padding: 15px 25px;
    border-bottom: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
    z-index: 1000;
}
.navbar-top .btn-outline-primary { border-color: #12233a; color: #12233a; }
.navbar-top .btn-outline-primary:hover { background-color: #12233a; color: #ffffff; }
.nav-profile-img { object-fit: cover; border: 2px solid #00a2e8 !important; }

/* =========================================================
   🚀 5. EFEK "MAGIC BANNER" (BACKGROUND MELENGKUNG)
   ========================================================= */
.main-content {
    flex: 1 0 auto;
    position: relative;
    z-index: 2;
    padding-top: 1.5rem !important;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #12233a 0%, #1c385c 100%);
    border-bottom-left-radius: 2.5rem;
    border-bottom-right-radius: 2.5rem;
    z-index: -1;
}

footer {
    flex-shrink: 0;
    background-color: #ffffff;
    border-top: none !important;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.02);
    z-index: 10;
}

/* =========================================================
   🚀 6. KOMPONEN SPESIFIK DASHBOARD
   ========================================================= */
.card-premium {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}
.card-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.icon-box {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.icon-box-primary { background-color: rgba(18, 35, 58, 0.1); color: var(--primary-dark); }
.icon-box-accent { background-color: rgba(0, 162, 232, 0.1); color: var(--accent-primary); }
.icon-box-yellow { background-color: rgba(251, 192, 45, 0.1); color: var(--accent-yellow); }
.icon-box-light { background-color: #f1f5f9; color: #64748b; }

.text-primary-dark { color: var(--primary-dark) !important; }
.text-accent { color: var(--accent-primary) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.bg-accent { background-color: var(--accent-primary) !important; }

/* =========================================================
   🚀 7. KUSTOMISASI ARSIP DOKUMEN & FORM
   ========================================================= */
.content-header-custom {
    position: relative;
    z-index: 5;
    padding: 10px 0 20px 0;
}

.btn-primary-dark {
    background-color: #12233a !important;
    color: #ffffff !important;
    border: none;
    transition: all 0.3s ease;
}
.btn-primary-dark:hover {
    background-color: #1c385c !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(18, 35, 58, 0.2);
}

.custom-pills .nav-link {
    color: #12233a;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.custom-pills .nav-link:hover { background-color: #f8fafc; border-color: #12233a; color: #12233a; }
.custom-pills .nav-link.active {
    background-color: #12233a !important;
    color: #ffffff !important;
    border-color: #12233a !important;
    box-shadow: 0 4px 10px rgba(18, 35, 58, 0.3) !important;
}

.upload-option-card { border: 2px dashed #e2e8f0; transition: 0.3s; cursor: pointer; }
.upload-option-card:hover, .upload-option-card.active { border-color: #00a2e8; background-color: rgba(0, 162, 232, 0.05); }

/* =========================================================
   🚀 8. TOMBOL CUSTOM SADEGA (CYAN ACCENT & ANTI-GAGAL)
   ========================================================= */
.btn-accent {
    background-color: #00a2e8 !important; /* Biru Cyan */
    color: #ffffff !important; /* Warna teks dipaksa jadi putih */
    border: none !important;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #0084bd !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 162, 232, 0.4) !important;
}

.btn-outline-accent {
    border: 2px solid #00a2e8 !important;
    color: #00a2e8 !important;
    background-color: transparent !important;
    transition: all 0.3s ease;
}

.btn-outline-accent:hover {
    background-color: #00a2e8 !important;
    color: #ffffff !important;
}