/* ==================== CSS VARIABLES ==================== */
:root {
    /* Light Theme (Default) */
    --primary-gradient: linear-gradient(135deg, #44bc08 0%, #1e7b19 100%);
    --primary-color: #2b9305;
    --primary-hover: #44bc08;
    --sidebar-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --sidebar-text: rgba(255,255,255,0.85);
    --sidebar-text-hover: #fff;
    --sidebar-border: rgba(255,255,255,0.1);
    --header-bg: #fff;
    --header-text: #2d3748;
    --body-bg: #f4f7f6;
    --card-bg: #fff;
    --card-shadow: rgba(0,0,0,0.05);
    --border-color: #e2e8f0;
    --menu-active-bg: rgba(68,188,8,0.15);
    --bottom-nav-bg: #ffffff;
    --bottom-nav-border: #edf2f7;
    --text-muted: #718096;
    --text-dark: #1a202c;
    --text-white: #ffffff;
    --text-warning: #ff9100;
    --text-green: #44bc08;
    --badge-light-bg: #f1f5f9;
    --badge-light-text: #1e293b;
    --icon-bg-primary: rgba(0,123,255,0.1);
    --icon-bg-success: rgba(40,167,69,0.1);
    --icon-bg-warning: rgba(255,193,7,0.1);
    --icon-bg-info: rgba(23,162,184,0.1);
    --banner-overlay: rgba(255,255,255,0.2);
    --banner-date-bg: rgba(255,255,255,0.15);
    --table-header-bg: #f8f9fc;
    --table-border: #e2e8f0;
    --table-striped: #f9fafb;
}

/* Dark Theme */
html[data-theme="dark"] {
    --primary-gradient: linear-gradient(135deg, #2b6e04 0%, #0f4d0b 100%);
    --primary-color: #44bc08;
    --primary-hover: #5fd121;
    --sidebar-bg: linear-gradient(135deg, #0f0f1a 0%, #0a0a12 100%);
    --sidebar-text: rgba(255,255,255,0.85);
    --sidebar-text-hover: #ffffff;
    --sidebar-border: rgba(255,255,255,0.05);
    --header-bg: #1a202c;
    --header-text: #f1f5f9;
    --body-bg: #0f172a;
    --card-bg: #1e293b;
    --card-shadow: rgba(0,0,0,0.4);
    --border-color: #334155;
    --menu-active-bg: rgba(68,188,8,0.2);
    --bottom-nav-bg: #1e293b;
    --bottom-nav-border: #334155;
    --text-muted: #94a3b8;
    --text-dark: #f8fafc;
    --text-white: #ffffff;
    --text-warning: #fbbf24;
    --text-green: #4ade80;
    --badge-light-bg: #334155;
    --badge-light-text: #f1f5f9;
    --icon-bg-primary: rgba(59,130,246,0.15);
    --icon-bg-success: rgba(34,197,94,0.15);
    --icon-bg-warning: rgba(245,158,11,0.2);
    --icon-bg-info: rgba(6,182,212,0.15);
    --banner-overlay: rgba(0,0,0,0.2);
    --banner-date-bg: rgba(0,0,0,0.25);
    --info-bg: #1e293b;
    --table-header-bg: #2d3748;
    --table-border: #334155;
    --table-striped: #2d3748;
}

body {
    background-color: var(--body-bg);
    padding-bottom: 70px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--header-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Top Navbar */
.app-header {
    background: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 60px;
    transition: background 0.3s ease;
}

/* Main Container Layout */
.app-wrapper {
    margin-top: 36px;
    display: flex;
}

.app-content {
    flex: 1;
    padding: none;
    width: 100%;
}

/* Sidebar Desktop Layout */
.app-sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    min-height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    display: none;
    transition: background 0.3s ease;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

/* Custom scrollbar untuk sidebar */
.app-sidebar::-webkit-scrollbar {
    width: 5px;
}

.app-sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.app-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

.app-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.sidebar-menu {
    list-style: none;
    padding: 15px;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--sidebar-text);
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-menu li a i {
    width: 28px;
    font-size: 18px;
    margin-right: 12px;
    text-align: center;
}

.sidebar-menu li a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--sidebar-text-hover);
}

.sidebar-menu li.active a {
    background: var(--menu-active-bg);
    color: var(--text-green);
}

.sidebar-menu .nav-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    padding: 10px 15px 5px;
    display: block;
}

/* Bottom Menu Mobile */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--bottom-nav-bg);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1040;
    border-top: 1px solid var(--bottom-nav-border);
    transition: background 0.3s ease;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
    width: 20%;
    height: 100%;
    transition: color 0.2s;
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--primary-color);
}

/* Profile Dropdown */
.profile-dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 10px;
    background: var(--card-bg);
}

.profile-dropdown .dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--header-text);
}

.profile-dropdown .dropdown-item:hover {
    background: var(--menu-active-bg);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.theme-toggle:hover {
    background: rgba(0,0,0,0.1);
}

/* Notification Button */
.notification-bell {
    position: relative;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}
.notification-bell:hover {
    background: rgba(255,255,255,0.1);
}
.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--header-bg, #2eb85c);
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-dropdown-menu {
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: none;
}
.notification-dropdown-menu .dropdown-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}
.notification-dropdown-menu .dropdown-footer {
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}
.notification-dropdown-menu .dropdown-divider {
    margin: 0;
}

.notification-item-dropdown {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
    cursor: pointer;
}
.notification-item-dropdown:hover {
    background: #f8f9fa;
}
.notification-item-dropdown.unread {
    background: #f0f7ff;
}
.notification-item-dropdown.unread:hover {
    background: #e8f0fe;
}
.notification-item-dropdown .unread-dot {
    width: 8px;
    height: 8px;
    background: #0d6efd;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 8px;
    margin-top: 4px;
}
.notification-icon-dropdown {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 14px;
    background: rgba(0,0,0,0.03);
}

.notification-dropdown-body::-webkit-scrollbar {
    width: 4px;
}
.notification-dropdown-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

/* Dark mode support */
[data-theme="dark"] .notification-dropdown-menu .dropdown-header,
[data-theme="dark"] .notification-dropdown-menu .dropdown-footer {
    background: #2d2d2d;
}
[data-theme="dark"] .notification-item-dropdown {
    border-bottom-color: #3d3d3d;
}
[data-theme="dark"] .notification-item-dropdown:hover {
    background: #2d2d2d;
}
[data-theme="dark"] .notification-item-dropdown.unread {
    background: #1a2a3d;
}
[data-theme="dark"] .notification-item-dropdown.unread:hover {
    background: #1f3347;
}
[data-theme="dark"] .notification-icon-dropdown {
    background: rgba(255,255,255,0.05);
}

html[data-theme="dark"] .theme-toggle {
    color: var(--text-warning);
}

html[data-theme="light"] .theme-toggle {
    color: #4a5568;
}

/* Dashboard Custom Styles */
.dashboard-content {
    background-color: var(--body-bg);
    min-height: 100vh;
}

/* Welcome Banner */
.welcome-banner {
    background: var(--primary-gradient);
    border-radius: 15px;
}

.welcome-banner .badge {
    background: var(--banner-overlay) !important;
}

.welcome-banner .date-card {
    background: var(--banner-date-bg) !important;
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--card-bg);
    border-radius: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem var(--card-shadow);
}

.dashboard-card h5 {
    color: var(--text-dark);
}

.dashboard-card p {
    color: var(--text-muted);
}

/* Icon Backgrounds */
.icon-bg-primary {
    background: var(--icon-bg-primary);
}

.icon-bg-success {
    background: var(--icon-bg-success);
}

.icon-bg-warning {
    background: var(--icon-bg-warning);
}

.icon-bg-info {
    background: var(--icon-bg-info);
}

/* Info Cards */
.info-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--card-shadow);
}

.info-card .info-icon {
    background: var(--info-bg);
}

.info-card .border-bottom {
    border-color: var(--border-color) !important;
}

.info-card .text-muted {
    color: var(--text-muted) !important;
}

.info-card .text-dark {
    color: var(--text-dark) !important;
}

/* Badge Light */
.badge-light-custom {
    background-color: var(--badge-light-bg);
    color: var(--badge-light-text);
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 30px;
}

/* Status Badges */
.badge-status-success {
    background: rgba(40,167,69,0.1);
    color: #28a745;
}

.badge-status-warning {
    background: rgba(255,193,7,0.1);
    color: #ffc107;
}

.badge-status-primary {
    background: rgba(0,123,255,0.1);
    color: #007bff;
}

.badge-status-secondary {
    background: rgba(108,117,125,0.1);
    color: #6c757d;
}

html[data-theme="dark"] .badge-status-success {
    background: rgba(40,167,69,0.2);
    color: #2ea043;
}

html[data-theme="dark"] .badge-status-warning {
    background: rgba(245,158,11,0.2);
    color: #f59e0b;
}

html[data-theme="dark"] .badge-status-primary {
    background: rgba(59,130,246,0.2);
    color: #3b82f6;
}

html[data-theme="dark"] .badge-status-secondary {
    background: rgba(100,116,139,0.2);
    color: #94a3b8;
}

/* Dark Mode - Teks Agar Lebih Terang */
html[data-theme="dark"] body,
html[data-theme="dark"] .card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .dashboard-card {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .text-dark,
html[data-theme="dark"] h5,
html[data-theme="dark"] .font-weight-bold,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .card h5,
html[data-theme="dark"] .info-card .text-dark {
    color: #f8fafc !important;
}

html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .card-text,
html[data-theme="dark"] small:not(.text-white) {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .border-bottom {
    border-color: #334155 !important;
}

/* 🔴 PERBAIKAN: Table styles untuk dark mode */
.table {
    color: var(--text-dark);
    background-color: var(--card-bg);
    border-color: var(--table-border);
}

.table thead th {
    background-color: var(--table-header-bg);
    border-bottom-color: var(--table-border);
    color: var(--text-dark);
}

.table td, .table th {
    border-color: var(--table-border);
}

.table-bordered {
    border-color: var(--table-border);
}

.table-bordered td, .table-bordered th {
    border-color: var(--table-border);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--table-striped);
}

/* Card styles for dark mode */
.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.card-header {
    background-color: var(--card-bg);
    border-bottom-color: var(--border-color);
}

.card-footer {
    background-color: var(--card-bg);
    border-top-color: var(--border-color);
}

/* Badge teks di dark mode */
html[data-theme="dark"] .badge.badge-light,
html[data-theme="dark"] .badge-light-custom {
    background-color: #334155 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .badge.bg-secondary {
    background-color: #475569 !important;
}

html[data-theme="dark"] .badge.bg-light {
    background-color: #334155 !important;
    color: #f1f5f9 !important;
}

/* Alert styles for dark mode */
html[data-theme="dark"] .alert-info {
    background-color: #1e3a5f;
    border-color: #2b4f7a;
    color: #b9e0ff;
}

html[data-theme="dark"] .alert-warning {
    background-color: #543a0e;
    border-color: #7a5214;
    color: #ffe0a3;
}

html[data-theme="dark"] .alert-success {
    background-color: #1a4a1a;
    border-color: #236b23;
    color: #a5e0a5;
}

html[data-theme="dark"] .alert-danger {
    background-color: #5a1a1a;
    border-color: #7a2323;
    color: #ffb3b3;
}

/* Responsive */
@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
    .app-sidebar {
        display: block;
    }
    .bottom-nav {
        display: none;
    }
    .app-content {
        padding-top: 5px !important;
    }
}

@media (max-width: 991px) {
    .app-sidebar {
        position: fixed;
        left: -260px;
        top: 60px;
        z-index: 1040;
        transition: left 0.3s ease;
        display: block;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        padding-bottom: 80px; 
    }
    
    .app-sidebar.open {
        left: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1035;
        display: none;
    }
    
    .sidebar-overlay.open {
        display: block;
    }
    
    .sidebar-toggle {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--header-text);
        margin-right: 15px;
    }
}

/* Environment Watermark */
.env-watermark {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100000;
    text-align: center;
    padding: 5px 0;
    font-family: sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    pointer-events: none;
    opacity: 0.95;
}

.env-side-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100001;
    width: 250px;
    height: 50px;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    font-size: 10px;
    color: white;
    text-transform: uppercase;
    transform-origin: left top;
    transform: rotate(-45deg) translate(-75px, 0);
    pointer-events: none;
}

.env-pulse {
    animation: env-alert 1s infinite alternate ease-in-out;
}

@keyframes env-alert {
    0% { opacity: 0.85; }
    100% { opacity: 1; }
}

.avatar-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Transition untuk semua elemen yang berubah warna */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rounded-10 {
    border-radius: 10px !important;
}
.rounded-15 {
    border-radius: 15px !important;
}
.rounded-20 {
    border-radius: 20px !important;
}

/* ==================== KHS STYLES ==================== */
.khs-semester-card { 
    border-radius: 15px; 
    overflow: hidden; 
    margin-bottom: 25px; 
}

.khs-semester-header { 
    background: #f8f9fc; 
    padding: 15px 20px; 
    border-bottom: 2px solid #4e73df; 
}

.khs-table th { 
    background: #f8f9fc; 
    font-weight: 600; 
    font-size: 0.85rem; 
}

.khs-table td { 
    vertical-align: middle; 
}

/* Grade Colors - Light Mode */
.grade-A, .grade-A- { background-color: #d4edda; }
.grade-B-plus, .grade-B, .grade-B-minus { background-color: #d1ecf1; }
.grade-C-plus, .grade-C, .grade-C-minus { background-color: #fff3cd; }
.grade-D, .grade-E { background-color: #f8d7da; }

/* Grade Colors - Dark Mode */
html[data-theme="dark"] .grade-A,
html[data-theme="dark"] .grade-A- { background-color: #1a3a1a; color: #a5e0a5; }

html[data-theme="dark"] .grade-B-plus,
html[data-theme="dark"] .grade-B,
html[data-theme="dark"] .grade-B-minus { background-color: #1a3a4a; color: #a5d0ff; }

html[data-theme="dark"] .grade-C-plus,
html[data-theme="dark"] .grade-C,
html[data-theme="dark"] .grade-C-minus { background-color: #4a3a1a; color: #ffe0a3; }

html[data-theme="dark"] .grade-D,
html[data-theme="dark"] .grade-E { background-color: #4a1a1a; color: #ffb3b3; }

/* KHS Dark Mode Override */
html[data-theme="dark"] .khs-semester-header {
    background: #2d3748 !important;
    border-bottom-color: #4e73df !important;
}

html[data-theme="dark"] .khs-semester-header h5 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .khs-semester-card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
}

html[data-theme="dark"] .khs-table th {
    background-color: #2d3748 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .khs-table td,
html[data-theme="dark"] .khs-table tr {
    color: var(--text-dark) !important;
    background-color: var(--card-bg) !important;
}

html[data-theme="dark"] .khs-table tr:hover {
    background-color: var(--menu-active-bg) !important;
}

html[data-theme="dark"] .table-secondary {
    background-color: #2d3748 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .table-info {
    background-color: #1e3a5f !important;
    color: #b9e0ff !important;
}

/* Badge Soft Colors - Dark Mode */
html[data-theme="dark"] .badge-soft-primary {
    background: rgba(59,130,246,0.2) !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .badge-soft-success {
    background: rgba(34,197,94,0.2) !important;
    color: #4ade80 !important;
}

html[data-theme="dark"] .badge-soft-warning {
    background: rgba(245,158,11,0.2) !important;
    color: #fbbf24 !important;
}

/* Alert Dark Mode */
html[data-theme="dark"] .alert-warning {
    background-color: #4a3a1a !important;
    border-color: #7a5214 !important;
    color: #ffe0a3 !important;
}

html[data-theme="dark"] .alert-info {
    background-color: #1e3a5f !important;
    border-color: #2b4f7a !important;
    color: #b9e0ff !important;
}

html[data-theme="dark"] .alert-danger {
    background-color: #5a1a1a !important;
    border-color: #7a2323 !important;
    color: #ffb3b3 !important;
}

/* Badge Soft Colors - Light Mode */
.badge-soft-primary { background: rgba(78,115,223,.1); color: #4e73df; }
.badge-soft-success { background: rgba(40,167,69,.1); color: #28a745; }
.badge-soft-warning { background: rgba(255,193,7,.15); color: #856404; }

/* Dark mode - semua hover background lebih gelap dengan teks putih */
html[data-theme="dark"] .table-hover tbody tr:hover,
html[data-theme="dark"] .table tbody tr:hover,
html[data-theme="dark"] .khs-table tbody tr:hover,
html[data-theme="dark"] .course-row:hover {
    color: #ffffff !important;
    background-color: #2d3748 !important;
}

/* Untuk tabel striped di dark mode */
html[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255,255,255,0.02);
}

html[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd):hover {
    background-color: #2d3748 !important;
}

/* ==================== DARK MODE OVERRIDE UNTUK KRS & KERANJANG ==================== */

/* Dark mode untuk card */
html[data-theme="dark"] .card {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .card-header {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-bottom-color: var(--border-color) !important;
}

html[data-theme="dark"] .card-footer {
    background-color: rgba(0, 0, 0, 0.15) !important;
    border-top-color: var(--border-color) !important;
}

html[data-theme="dark"] .card-body {
    color: var(--text-dark) !important;
}

/* Dark mode untuk list group (keranjang KRS) */
html[data-theme="dark"] .list-group-item {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark) !important;
}

html[data-theme="dark"] .list-group-item .text-dark,
html[data-theme="dark"] .list-group-item .font-weight-bold,
html[data-theme="dark"] .list-group-item .fw-bold {
    color: var(--text-dark) !important;
}

html[data-theme="dark"] .list-group-item .text-muted {
    color: var(--text-muted) !important;
}

html[data-theme="dark"] .list-group-item .small {
    color: var(--text-muted) !important;
}

/* Dark mode untuk border */
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-start,
html[data-theme="dark"] .border-end {
    border-color: var(--border-color) !important;
}

/* Dark mode untuk badge */
html[data-theme="dark"] .badge-primary {
    background-color: #4e73df !important;
}

html[data-theme="dark"] .badge-success {
    background-color: #1e7e34 !important;
}

html[data-theme="dark"] .badge-danger {
    background-color: #a71d2a !important;
}

html[data-theme="dark"] .badge-warning {
    background-color: #d39e00 !important;
    color: #1a202c !important;
}

html[data-theme="dark"] .badge-info {
    background-color: #117a8b !important;
}

/* Dark mode untuk alert */
html[data-theme="dark"] .alert-info {
    background-color: #1e3a5f !important;
    border-color: #2b4f7a !important;
    color: #b9e0ff !important;
}

html[data-theme="dark"] .alert-warning {
    background-color: #4a3a1a !important;
    border-color: #7a5214 !important;
    color: #ffe0a3 !important;
}

html[data-theme="dark"] .alert-danger {
    background-color: #5a1a1a !important;
    border-color: #7a2323 !important;
    color: #ffb3b3 !important;
}

html[data-theme="dark"] .alert-light {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #e2e8f0 !important;
}

/* Dark mode untuk icon box */
html[data-theme="dark"] .icon-primary {
    background: rgba(78, 115, 223, 0.15) !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .icon-success {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
}

html[data-theme="dark"] .icon-warning {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .icon-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
}

/* Dark mode untuk input form */
html[data-theme="dark"] .form-control {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .form-control:focus {
    background-color: #1e293b !important;
    border-color: #4e73df !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .form-control::placeholder {
    color: #64748b !important;
}

/* Dark mode untuk select */
html[data-theme="dark"] .form-select {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

/* Dark mode untuk progress bar */
html[data-theme="dark"] .progress {
    background-color: #334155 !important;
}

html[data-theme="dark"] .progress-bar.bg-success {
    background-color: #1e7e34 !important;
}

html[data-theme="dark"] .progress-bar.bg-danger {
    background-color: #a71d2a !important;
}

/* Dark mode untuk dropdown */
html[data-theme="dark"] .dropdown-menu {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .dropdown-item {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .dropdown-item:hover {
    background-color: #334155 !important;
}

html[data-theme="dark"] .dropdown-divider {
    border-color: #334155 !important;
}

/* Dark mode untuk modal */
html[data-theme="dark"] .modal-content {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .modal-header {
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .modal-footer {
    border-top-color: #334155 !important;
}

/* Dark mode untuk close button */
html[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Dark mode untuk sticky-krs */
html[data-theme="dark"] .sticky-krs {
    background-color: var(--card-bg) !important;
}

/* Dark mode untuk text */
html[data-theme="dark"] .text-dark {
    color: var(--text-dark) !important;
}

html[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

.pt-25 {padding-top: 2.5rem!important}

/* Sidebar profile text handling */
/* .sidebar-profile .text-white,
.sidebar-profile .text-white-50 {
    word-break: break-word;
    overflow-wrap: break-word;
}

.sidebar-profile .d-flex {
    gap: 0.5rem;
}

.sidebar-profile .d-flex > span:last-child {
    text-align: right;
    flex: 1;
    min-width: 0; /* Penting untuk flex wrapping */
} */