/* =========================================================
   GLOBAL THEME - SISTEM PELAN STRATEGIK BPSM 2026-2030
   Tema: Navy Blue + Gold
========================================================= */

:root {
    --navy: #061b3f;
    --navy-dark: #03112b;
    --navy-darker: #020817;
    --blue: #0b3d91;
    --blue-soft: #eaf1ff;
    --teal: #087a82;
    --gold: #d8a83d;
    --gold-dark: #b9811d;
    --gold-light: #ffe28a;
    --white: #ffffff;
    --light-bg: #f7f9fd;
    --muted: #6c757d;
    --danger: #dc3545;
    --success: #198754;
    --warning: #ffc107;
    --info: #0dcaf0;
    --border-soft: rgba(6, 27, 63, 0.10);
    --shadow-soft: 0 12px 32px rgba(6, 27, 63, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #eef3f9;
    color: #1f2937;
    font-size: 0.9rem;
}

a {
    text-decoration: none;
}

.text-gold {
    color: var(--gold);
}

.bg-navy {
    background: var(--navy);
}

.btn-gold {
    border: 0;
    color: var(--navy);
    font-weight: 800;
    background: linear-gradient(135deg, #fff0a6, #d8a83d 48%, #b9811d);
    box-shadow: 0 10px 22px rgba(216, 168, 61, 0.25);
}

.btn-gold:hover {
    color: var(--navy);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(216, 168, 61, 0.34);
}

.btn-navy {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #0b3d91, #061b3f);
    font-weight: 700;
}

.btn-navy:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #1554bd, #061b3f);
}

.card {
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.card-header {
    border-radius: 18px 18px 0 0 !important;
    background: #ffffff;
    border-bottom: 1px solid rgba(6, 27, 63, 0.08);
    font-weight: 800;
}

/* =========================================================
   SIDEBAR THEME
========================================================= */

.sidebar {
    width: 260px;
    min-height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    background:
        radial-gradient(circle at top left, rgba(255, 226, 138, 0.16), transparent 28%),
        linear-gradient(180deg, #061b3f 0%, #03112b 55%, #020817 100%);
    color: #ffffff;
    padding: 18px 14px;
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.22);
    border-right: 1px solid rgba(216, 168, 61, 0.35);
    overflow-y: auto;
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(216, 168, 61, 0.08), transparent 35%),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.025) 0,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 9px
        );
    pointer-events: none;
}

.brand-box,
.sidebar-nav,
.sidebar-note,
.sidebar-section-title {
    position: relative;
    z-index: 1;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 11px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 226, 138, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fff0a6, #d8a83d 48%, #b9811d);
    color: #061b3f;
    font-size: 1.25rem;
    box-shadow: 0 10px 24px rgba(216, 168, 61, 0.28);
}

.brand-title {
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1;
    color: #ffffff;
}

.brand-subtitle {
    margin-top: 5px;
    font-size: 0.67rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-section-title {
    margin: 0 8px 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffe28a;
}

.sidebar-nav {
    gap: 5px;
}

.sidebar-nav .nav-link {
    min-height: 39px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 13px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.81rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: 0.22s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.sidebar-nav .nav-link i {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 0.92rem;
    color: #ffe28a;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.085);
    border-color: rgba(255, 226, 138, 0.22);
    transform: translateX(3px);
}

.sidebar-nav .nav-link.active {
    color: #061b3f;
    background: linear-gradient(135deg, #fff0a6, #d8a83d 48%, #b9811d);
    box-shadow: 0 12px 26px rgba(216, 168, 61, 0.26);
}

.sidebar-nav .nav-link.active i {
    color: #061b3f;
    background: rgba(255, 255, 255, 0.42);
}

.sidebar-note {
    margin-top: 20px;
    padding: 12px;
    display: flex;
    gap: 9px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 226, 138, 0.22);
    color: rgba(255, 255, 255, 0.78);
}

.sidebar-note .note-icon {
    color: #ffe28a;
    font-size: 1rem;
    line-height: 1;
    padding-top: 2px;
}

.sidebar-note strong {
    display: block;
    color: #ffe28a;
    font-size: 0.76rem;
    margin-bottom: 3px;
}

.sidebar-note p {
    margin: 0;
    font-size: 0.69rem;
    line-height: 1.45;
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {
    margin-left: 260px;
    min-height: 100vh;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(216, 168, 61, 0.09), transparent 26%),
        linear-gradient(180deg, #f7f9fd 0%, #eef3f9 100%);
}

.page-header {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 22px 24px;
    margin-bottom: 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 226, 138, 0.22), transparent 26%),
        linear-gradient(135deg, #061b3f 0%, #0b3d91 58%, #061b3f 100%);
    box-shadow: 0 18px 40px rgba(6, 27, 63, 0.18);
    border: 1px solid rgba(216, 168, 61, 0.28);
}

.page-header::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 330px;
    height: 220px;
    border-radius: 50%;
    background: rgba(216, 168, 61, 0.16);
    transform: rotate(-18deg);
}

.page-header h1,
.page-header h2,
.page-header h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.page-header p {
    position: relative;
    z-index: 1;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.stat-card {
    border: 0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 20px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--blue));
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: linear-gradient(135deg, #fff0a6, #d8a83d);
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
}

.stat-card .stat-label {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

/* =========================================================
   TABLE / DATATABLES
========================================================= */

.table {
    font-size: 0.82rem;
}

.table thead th {
    background: #061b3f;
    color: #ffffff;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.12);
}

.table tbody td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: #f3f7ff;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    font-size: 0.8rem;
}

.page-link {
    color: var(--navy);
}

.active > .page-link,
.page-link.active {
    background-color: var(--navy);
    border-color: var(--navy);
}

/* =========================================================
   FORM / MODAL
========================================================= */

.form-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #263244;
}

.form-control,
.form-select {
    font-size: 0.86rem;
    border-radius: 12px;
    border-color: rgba(6, 27, 63, 0.15);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.18rem rgba(216, 168, 61, 0.18);
}

.modal-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(6, 27, 63, 0.24);
}

.modal-header {
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 226, 138, 0.18), transparent 30%),
        linear-gradient(135deg, #061b3f, #0b3d91);
    border-bottom: 1px solid rgba(216, 168, 61, 0.28);
}

.modal-title {
    font-size: 1rem;
    font-weight: 900;
}

.btn-close {
    filter: invert(1);
}

/* =========================================================
   BADGE / STATUS
========================================================= */

.badge {
    font-size: 0.68rem;
    padding: 0.45em 0.65em;
    border-radius: 999px;
}

.badge-status {
    font-weight: 800;
}

.badge-belum {
    background: #e9ecef;
    color: #343a40;
}

.badge-sedang {
    background: #cff4fc;
    color: #055160;
}

.badge-selesai {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-tangguh {
    background: #fff3cd;
    color: #664d03;
}

.badge-tindakan {
    background: #f8d7da;
    color: #842029;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {
    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
        padding: 13px;
        border-right: 0;
        border-bottom: 1px solid rgba(216, 168, 61, 0.35);
    }

    .brand-box {
        margin-bottom: 12px;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .sidebar-nav .nav-link {
        font-size: 0.78rem;
        justify-content: flex-start;
    }

    .sidebar-note {
        margin-top: 12px;
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
    }

    .page-header {
        padding: 18px;
        border-radius: 18px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.86rem;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.62rem;
    }

    .sidebar-note {
        display: none;
    }

    .main-content {
        padding: 12px;
    }

    .page-header h1,
    .page-header h2,
    .page-header h3 {
        font-size: 1.25rem;
    }

    .table {
        font-size: 0.76rem;
    }
}