:root {
    --blue: #0d47a1;
    --gold: #d4af37;
    --bg: #f4f6f9;
    --text: #333;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
}

/* Layout */
.app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--blue);
}

.sidebar .brand {
    padding: 20px;
    text-align: center;
    color: var(--gold);
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.sidebar a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255,255,255,.15);
    border-left: 4px solid var(--gold);
}

/* Main */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.topbar .right {
    margin-left: auto;
}

/* Content */
.content {
    padding: 24px;
}

/* Card */
.card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* ===== DASHBOARD SEKSI ===== */

/* page title */
.page-title {
    font-weight: 600;
    margin-bottom: 24px;
}

/* summary cards */
.summary-card {
    padding: 20px;
    border-left: 4px solid var(--blue);
}

.summary-card.gold {
    border-left-color: var(--gold);
}

.summary-card h6 {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 6px;
}

.summary-card h4 {
    font-weight: 600;
    margin: 0;
}

/* spacing between sections */
.section {
    margin-bottom: 28px;
}

/* chart placeholder */
.chart-box {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 1px dashed #ddd;
    border-radius: 6px;
}

/* table refinement */
.table thead th {
    background: #f8f9fa;
    font-size: 13px;
}

.table td {
    vertical-align: middle;
    font-size: 13px;
}
/* ===== HEADER REFINEMENT ===== */
.topbar {
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: relative;
}

/* thin gold accent */
.topbar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--gold);
    opacity: .6;
}

/* username */
.topbar .user-info {
    font-weight: 500;
    color: var(--blue);
}

/* logout button refinement */
.topbar .btn {
    font-size: 13px;
    padding: 4px 10px;
}
/* ===== SIDEBAR REFINEMENT ===== */
.sidebar a {
    font-size: 14px;
}

.sidebar a.active {
    font-weight: 600;
}

.sidebar .menu-title {
    font-size: 11px;
    letter-spacing: .5px;
    color: rgba(255,255,255,.6);
    padding: 14px 18px 6px;
    text-transform: uppercase;
}
/* ===== STRUKTUR ORGANISASI ===== */
/* ===== STRUKTUR ORGANISASI ===== */

.struktur-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* row hierarchy */
.struktur-row {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

/* base box */
.struktur-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 16px;
    min-width: 160px;
    text-align: center;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

/* kepala seksi */
.struktur-box.kepala {
    border-top: 4px solid var(--gold);
    font-weight: 600;
}

/* kepala subseksi */
.struktur-box.subseksi {
    border-top: 4px solid var(--blue);
    font-weight: 600;
}

/* staff */
.struktur-box.staff {
    background: #f8f9fa;
}

/* name text */
.struktur-box small {
    display:block;
    margin-top:4px;
    font-size:11px;
    color:#666;
    line-height:1.3;
}
.chart-card {
    height: 500px;
}

.chart-card canvas {
    width: 100% !important;
    height: 100% !important;
}
.page-title {
    font-weight: 600;
    margin-bottom: 16px;
}

.card {
    border-radius: 10px;
}

.card h6 {
    font-weight: 600;
    color: #0d47a1;
}

.card small {
    color: #6c757d;
}
.chart-card h6 {
    text-align: center;
    margin-bottom: 10px;
}
