/* =========================
   GLOBAL FONT SCALE
========================= */
body {
    font-size: 13px;
    line-height: 1.4;
}

/* =========================
   HEADINGS (LEBIH KECIL)
========================= */
h1 { font-size: 1.25rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
h4 { font-size: .95rem; }
h5 { font-size: .9rem; }
h6 { font-size: .85rem; }

/* =========================
   NAVBAR & SIDEBAR
========================= */
.navbar,
.sidebar {
    font-size: 13px;
}

.sidebar .nav-item .nav-link {
    padding: .5rem .75rem;
}

/* =========================
   TAB MINIMAL
========================= */
.nav-tabs .nav-link {
    font-size: 12px;
    padding: .4rem .75rem;
}

.nav-tabs .nav-link.active {
    font-weight: 600;
}

/* =========================
   BUTTON
========================= */
.btn {
    font-size: 12px;
    padding: .25rem .6rem;
}

.btn-sm {
    font-size: 11px;
    padding: .2rem .5rem;
}

/* =========================
   FORM
========================= */
.form-control {
    font-size: 12px;
    padding: .35rem .5rem;
}

.form-control-sm {
    font-size: 11px;
    padding: .25rem .4rem;
}

/* =========================
   TABLE
========================= */
.table {
    font-size: 12px;
}

.table th,
.table td {
    padding: .4rem .5rem;
}

/* =========================
   CARD
========================= */
.card-header {
    font-size: 13px;
    padding: .6rem .75rem;
}

.card-body {
    padding: .75rem;
}

/* =========================
   ALERT
========================= */
.alert {
    font-size: 12px;
    padding: .5rem .75rem;
}

/* =========================
   BADGE
========================= */
.badge {
    font-size: 11px;
    padding: .3em .5em;
}

/* =========================
   FOOTER
========================= */
footer,
.footer {
    font-size: 11px;
}

/* =========================
   MOBILE EXTRA COMPACT
========================= */
@media (max-width: 576px) {
    body {
        font-size: 12px;
    }

    .card-body {
        padding: .6rem;
    }

    .btn {
        font-size: 11px;
    }
}
/* ====== GLOBAL ====== */
body.dark-mode {
  background-color: #1e1e2d;
  color: #e5e7eb;
}

/* ====== SIDEBAR ====== */
body.dark-mode .sidebar {
  background: #111827;
}
body.dark-mode .sidebar .nav-item .nav-link,
body.dark-mode .sidebar .sidebar-brand-text {
  color: #e5e7eb;
}
body.dark-mode .sidebar .nav-item.active .nav-link {
  background: rgba(255,255,255,.08);
}

/* ====== TOPBAR ====== */
body.dark-mode .topbar {
  background: #111827 !important;
}
body.dark-mode .topbar .nav-link {
  color: #e5e7eb !important;
}

/* ====== CONTENT ====== */
body.dark-mode .content-wrapper,
body.dark-mode .container-fluid {
  background: #1e1e2d;
}

/* ====== CARD ====== */
body.dark-mode .card {
  background: #111827;
  border-color: #1f2937;
}
body.dark-mode .card-header {
  background: #0f172a;
  border-bottom-color: #1f2937;
}

/* ====== TABLE ====== */
body.dark-mode .table {
  color: #e5e7eb;
}
body.dark-mode .table thead th {
  background: #0f172a;
  border-color: #1f2937;
}
body.dark-mode .table td,
body.dark-mode .table th {
  border-color: #1f2937;
}

/* ====== BREADCRUMB ====== */
body.dark-mode .breadcrumb {
  background: #111827;
}

/* ====== DROPDOWN ====== */
body.dark-mode .dropdown-menu {
  background: #111827;
  border-color: #1f2937;
}
body.dark-mode .dropdown-item {
  color: #e5e7eb;
}
body.dark-mode .dropdown-item:hover {
  background: #1f2937;
}
