[data-bs-theme="dark"] body {
    background-color: #1f2128;
    color: #d6d9df;
}

[data-bs-theme="dark"] body,
[data-bs-theme="dark"] p,
[data-bs-theme="dark"] span,
[data-bs-theme="dark"] label,
[data-bs-theme="dark"] li,
[data-bs-theme="dark"] dt,
[data-bs-theme="dark"] dd,
[data-bs-theme="dark"] small {
    color: #d6d9df;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] strong,
[data-bs-theme="dark"] b {
    color: #f1f3f8;
}

[data-bs-theme="dark"] .main-content,
[data-bs-theme="dark"] .section,
[data-bs-theme="dark"] .section .section-body {
    background-color: #1f2128;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .section .section-header,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .main-sidebar,
[data-bs-theme="dark"] .navbar,
[data-bs-theme="dark"] .navbar-bg,
[data-bs-theme="dark"] .list-group-item,
[data-bs-theme="dark"] .table,
[data-bs-theme="dark"] .alert {
    background-color: #2a2d36;
    color: #d6d9df;
    border-color: #3a3f4b;
}

[data-bs-theme="dark"] .section .section-header h1,
[data-bs-theme="dark"] .card .card-header h4,
[data-bs-theme="dark"] .table th,
[data-bs-theme="dark"] .dropdown-title,
[data-bs-theme="dark"] .sidebar-menu li.menu-header {
    color: #f1f3f8;
}

[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .section .section-lead,
[data-bs-theme="dark"] .card .card-body,
[data-bs-theme="dark"] .breadcrumb-item,
[data-bs-theme="dark"] .sidebar-menu li a span {
    color: #aab1c1 !important;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .card p,
[data-bs-theme="dark"] .card span,
[data-bs-theme="dark"] .card td,
[data-bs-theme="dark"] .card th,
[data-bs-theme="dark"] .section-title,
[data-bs-theme="dark"] .section-lead,
[data-bs-theme="dark"] .empty-state,
[data-bs-theme="dark"] .list-unstyled li,
[data-bs-theme="dark"] .media-title,
[data-bs-theme="dark"] .summary .summary-info h4,
[data-bs-theme="dark"] .user-item .user-details .user-name,
[data-bs-theme="dark"] .invoice .invoice-detail-item .invoice-detail-name,
[data-bs-theme="dark"] .invoice .invoice-detail-item .invoice-detail-value,
[data-bs-theme="dark"] .activities .activity .activity-detail,
[data-bs-theme="dark"] .activities .activity .activity-detail p,
[data-bs-theme="dark"] .chocolat-wrapper .chocolat-bottom,
[data-bs-theme="dark"] .wizard-steps .wizard-step,
[data-bs-theme="dark"] .article .article-title,
[data-bs-theme="dark"] .article .article-header .article-badge,
[data-bs-theme="dark"] .article .article-details,
[data-bs-theme="dark"] .article .article-details .article-cta,
[data-bs-theme="dark"] .faq-item .faq-title,
[data-bs-theme="dark"] .faq-item .faq-body,
[data-bs-theme="dark"] .hero h2,
[data-bs-theme="dark"] .hero p,
[data-bs-theme="dark"] .pricing .pricing-title,
[data-bs-theme="dark"] .pricing .pricing-padding,
[data-bs-theme="dark"] .stats .statistic-details .statistic-details-item .detail-name,
[data-bs-theme="dark"] .stats .statistic-details .statistic-details-item .detail-value {
    color: #d6d9df !important;
}

[data-bs-theme="dark"] .main-sidebar .sidebar-menu li a {
    color: #b5bccd;
}

[data-bs-theme="dark"] .main-sidebar .sidebar-menu li.active a,
[data-bs-theme="dark"] .main-sidebar .sidebar-menu li a:hover {
    background-color: #323746;
    color: #ffffff;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .custom-select,
[data-bs-theme="dark"] .input-group-text,
[data-bs-theme="dark"] .note-editor.note-frame,
[data-bs-theme="dark"] .note-editor.note-airframe {
    background-color: #252934;
    color: #d6d9df;
    border-color: #3a3f4b;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .custom-select:focus {
    border-color: #6878ef;
    box-shadow: 0 0 0 0.2rem rgba(103, 119, 239, 0.2);
}

[data-bs-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .dropdown-item,
[data-bs-theme="dark"] .page-item .page-link,
[data-bs-theme="dark"] .breadcrumb-item a,
[data-bs-theme="dark"] .nav-link {
    color: #b5bccd;
}

[data-bs-theme="dark"] a,
[data-bs-theme="dark"] .btn-link,
[data-bs-theme="dark"] .breadcrumb-item.active,
[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-body,
[data-bs-theme="dark"] .text-black,
[data-bs-theme="dark"] .text-reset {
    color: #c4ccde !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus,
[data-bs-theme="dark"] .page-item .page-link:hover {
    background-color: #323746;
    color: #ffffff;
}

[data-bs-theme="dark"] .badge-light {
    background-color: #3a3f4b;
    color: #d6d9df;
}

/* Sidebar mini dark mode */
[data-bs-theme="dark"] body.sidebar-mini .main-sidebar,
[data-bs-theme="dark"] body.sidebar-mini .main-sidebar::after,
[data-bs-theme="dark"] body.sidebar-mini #sidebar-wrapper {
    background-color: #252934 !important;
}

/* Item hover/active saat mini */
[data-bs-theme="dark"] body.sidebar-mini .sidebar-menu li a {
    color: #cdd3d8 !important;
}

[data-bs-theme="dark"] body.sidebar-mini .sidebar-menu li.active a,
[data-bs-theme="dark"] body.sidebar-mini .sidebar-menu li a:hover {
    background-color: #2b3035 !important;
    color: #fff !important;
}

/* =========================
   PAGINATION DARK MODE
   ========================= */

[data-bs-theme="dark"] .pagination .page-link {
    background-color: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

[data-bs-theme="dark"] .pagination .page-link:hover {
    background-color: #6777ef;
    color: #b12525;
    border-color: #6777ef;
}

[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    background-color: #6777ef;
    border-color: #6777ef;
    color: #6777ef;
}

[data-bs-theme="dark"] .pagination .page-item.disabled .page-link {
    opacity: 0.5;
    background-color: #6777ef;
    color: #aaa;
}

/* =========================
   WAR & JOINED DARK MODE
   ========================= */

[data-bs-theme="dark"] .sc-blue { background: linear-gradient(135deg, #1c2340, #252b4d) !important; color: #a4b3f5 !important; }
[data-bs-theme="dark"] .sc-green { background: linear-gradient(135deg, #162f1e, #1d3b26) !important; color: #76d289 !important; }
[data-bs-theme="dark"] .sc-red { background: linear-gradient(135deg, #3d1b1b, #4a2121) !important; color: #ff8787 !important; }
[data-bs-theme="dark"] .sc-orange { background: linear-gradient(135deg, #3d2d14, #4f3b19) !important; color: #ffca66 !important; }

[data-bs-theme="dark"] .sc-blue .icon-wrap { background: rgba(164,179,245,.15) !important; }
[data-bs-theme="dark"] .sc-green .icon-wrap { background: rgba(118,210,137,.15) !important; }
[data-bs-theme="dark"] .sc-red .icon-wrap { background: rgba(255,135,135,.15) !important; }
[data-bs-theme="dark"] .sc-orange .icon-wrap { background: rgba(255,202,102,.15) !important; }

[data-bs-theme="dark"] .detail-value,
[data-bs-theme="dark"] .anggota-info .name {
    color: #f1f3f8 !important;
}

[data-bs-theme="dark"] .detail-row {
    border-bottom-color: #374151 !important;
}

[data-bs-theme="dark"] .anggota-item {
    border-bottom-color: #374151 !important;
}

[data-bs-theme="dark"] .anggota-avatar.L { background: #252b4d !important; color: #a4b3f5 !important; }
[data-bs-theme="dark"] .anggota-avatar.P { background: #421c29 !important; color: #ff87b4 !important; }

[data-bs-theme="dark"] .badge-faculty {
    background: #252b4d !important;
    color: #a4b3f5 !important;
}

[data-bs-theme="dark"] .share-btn {
    border-color: #374151 !important;
    color: #a0aec0 !important;
}

[data-bs-theme="dark"] .share-btn:hover {
    border-color: #6777ef !important;
    color: #6777ef !important;
    background: rgba(103,119,239,.1) !important;
}

[data-bs-theme="dark"] .info-card .card-header {
    border-bottom-color: #374151 !important;
}

[data-bs-theme="dark"] .kelompok-card {
    background-color: #2b3035 !important;
}

[data-bs-theme="dark"] .kelompok-card .kelompok-header {
    border-bottom-color: #374151 !important;
}

[data-bs-theme="dark"] .kelompok-card .kelompok-title {
    color: #f1f3f8 !important;
}

[data-bs-theme="dark"] .kelompok-card .quota-box {
    background-color: #1f2128 !important;
}

[data-bs-theme="dark"] .countdown-box {
    background-color: rgba(0,0,0,0.3) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

/* =========================
   WAR MONITOR DARK MODE
   ========================= */

[data-bs-theme="dark"] .sec-card {
    background: #1f2430;
}
[data-bs-theme="dark"] .sec-card .card-header {
    border-bottom-color: rgba(255,255,255,.06);
}
[data-bs-theme="dark"] .kl-row {
    border-bottom-color: rgba(255,255,255,.04);
}
[data-bs-theme="dark"] .kl-row:hover {
    background: rgba(255,255,255,.03);
}
[data-bs-theme="dark"] .kl-num {
    background: rgba(255,255,255,.08);
    color: #b5bccd;
}
[data-bs-theme="dark"] .kl-name {
    color: #f1f3f8;
}
[data-bs-theme="dark"] .kl-loc {
    color: #aab1c1;
}
[data-bs-theme="dark"] .kl-bar {
    background: rgba(255,255,255,.08);
}
[data-bs-theme="dark"] .kl-count {
    color: #aab1c1;
}
[data-bs-theme="dark"] .kl-badge.available {
    background: rgba(71,195,99,.15);
    color: #63d47c;
}
[data-bs-theme="dark"] .kl-badge.full {
    background: rgba(252,84,75,.15);
    color: #fc7c75;
}
[data-bs-theme="dark"] .kl-badge.near {
    background: rgba(255,164,38,.15);
    color: #ffb84d;
}
[data-bs-theme="dark"] .fak-bar {
    background: rgba(255,255,255,.08);
}
[data-bs-theme="dark"] .fak-count,
[data-bs-theme="dark"] .fak-pct {
    color: #aab1c1;
}
[data-bs-theme="dark"] .log-item {
    background: rgba(255,255,255,.03);
}
[data-bs-theme="dark"] .log-time {
    color: #6c757d;
}
[data-bs-theme="dark"] .fak-empty,
[data-bs-theme="dark"] .log-empty {
    color: #6c757d;
}

/* =========================
   WAR ARENA DARK MODE
   ========================= */

[data-bs-theme="dark"] .kelompok-list-item {
    border-bottom-color: rgba(255,255,255,.08);
}
[data-bs-theme="dark"] .kelompok-list-item:hover {
    background: rgba(255,255,255,.04);
}
[data-bs-theme="dark"] .kl-number {
    background: rgba(255,255,255,.08);
    color: #b5bccd;
}
[data-bs-theme="dark"] .kl-location {
    color: #aab1c1;
}
[data-bs-theme="dark"] .kl-quota .q-num {
    color: #a4b0f5;
}
[data-bs-theme="dark"] .kl-quota .q-label {
    color: #6c757d;
}
[data-bs-theme="dark"] .kl-full-badge {
    background: rgba(201,42,42,.15);
    color: #fc544b;
}
[data-bs-theme="dark"] .kl-bar-fill.ok   { background: linear-gradient(90deg,#63d47c,#2f9e44); }
[data-bs-theme="dark"] .kl-bar-fill.warn { background: linear-gradient(90deg,#ffb84d,#e67700); }
[data-bs-theme="dark"] .kl-bar-fill.full { background: linear-gradient(90deg,#fc544b,#c92a2a); }

[data-bs-theme="dark"] .kl-section-divider {
    background: rgba(255,255,255,.04);
    color: #6c757d;
    border-bottom-color: rgba(255,255,255,.06);
}
[data-bs-theme="dark"] .kelompok-list-item.is-disabled {
    opacity: .35;
}
[data-bs-theme="dark"] .kelompok-list-item.is-disabled .kl-number {
    background: rgba(255,255,255,.04);
    color: #555;
}
[data-bs-theme="dark"] .kl-full-badge[style*="fff8e1"],
[data-bs-theme="dark"] .kl-full-badge[style*="e67700"] {
    background: rgba(255,164,38,.15) !important;
    color: #ffb84d !important;
}
