.box {
  background-color: #ffffff;
  border-radius: 12px;
  margin-bottom: 20px;
}

.revenue-growth{
  height: 284px;
}
.revenue-growth .reality-chart {
  position: relative;
  top: -50px;
}
.rtl .knob {
    margin-left: 0;
    margin-right: -116px;
}

.avatar-sm {
    width: 59px;
    height: 59px;
    line-height: 29px;
    font-size: 0.7143rem;
}
.recent{
  height:382px;
}

/* ==========================================================================
   ASALINK BLUE & DUAL-MODE COMPATIBLE DESIGN SYSTEM (ADMIN SEKOLAH & LMS)
   ========================================================================== */

body, .content-wrapper, .main-header, .main-sidebar {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* 1. Bento Card Modern (Dual Mode) */
.bento-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.bento-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.bento-body {
  padding: 20px;
}

.bento-footer {
  padding: 14px 20px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 2. Stat Bento Widget */
.stat-bento-widget {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  height: 100%;
}

.stat-bento-widget:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.stat-bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 3. Modern Table */
.modern-table-container {
  overflow-x: auto;
}

.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  vertical-align: middle;
}

.modern-table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 12px 18px;
  border-top: none;
  border-bottom: 1px solid #e2e8f0;
}

.modern-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 0.84rem;
  color: #1e293b;
  background: #ffffff;
  transition: background 0.15s ease;
}

.modern-table tbody tr:hover td {
  background: #f8fafc;
}

.modern-table tbody tr:last-child td {
  border-bottom: none;
}

/* 4. Asalink Blue & Pastel Badges */
.badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.badge-modern-blue {
  background: #eff6ff;
  color: #1565C0;
  border: 1px solid #bfdbfe;
}

.badge-modern-emerald {
  background: #ecfdf5;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.badge-modern-amber {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.badge-modern-rose {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.badge-modern-purple {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.badge-modern-slate {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* 5. Modern Buttons (Theme Blue #1565C0) */
.btn-modern-primary {
  background: #1565C0 !important;
  border: 1px solid #1565C0 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 8px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.25) !important;
  transition: all 0.15s ease !important;
  cursor: pointer;
}

.btn-modern-primary:hover {
  background: #0d47a1 !important;
  border-color: #0d47a1 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.35) !important;
}

.btn-modern-outline {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 8px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.15s ease !important;
  cursor: pointer;
}

.btn-modern-outline:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.btn-modern-action-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* 6. Form Controls Modern */
.form-control-modern {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 0.84rem !important;
  color: #0f172a !important;
  padding: 9px 12px !important;
  transition: all 0.15s ease !important;
}

.form-control-modern:focus {
  background: #ffffff !important;
  border-color: #1565C0 !important;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15) !important;
  outline: none !important;
}

/* 7. Step Items */
.bento-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.bento-step-item:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

/* 8. Alert Box Responsive */
.bento-alert-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 16px;
  overflow: hidden;
}

/* ==========================================================================
   DARK MODE ADAPTATION (100% DARK SKIN COMPATIBLE)
   ========================================================================== */
body.dark-skin,
body.dark,
html.dark {
  background-color: #0b1120 !important;
  color: #f1f5f9 !important;
}

body.dark-skin .bento-card,
body.dark-skin .stat-bento-widget {
  background: #141d2e !important;
  border-color: #1e293b !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

body.dark-skin .bento-header,
body.dark-skin .bento-footer {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

body.dark-skin .modern-table thead th {
  background: #0f172a !important;
  border-color: #1e293b !important;
  color: #94a3b8 !important;
}

body.dark-skin .modern-table tbody td {
  background: #141d2e !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}

body.dark-skin .modern-table tbody tr:hover td {
  background: #1e293b !important;
}

body.dark-skin .btn-modern-outline {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

body.dark-skin .btn-modern-outline:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

body.dark-skin .form-control-modern {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

body.dark-skin .bento-step-item {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

body.dark-skin .bento-step-item:hover {
  background: #1e293b !important;
}

body.dark-skin .bento-alert-box {
  background: rgba(225, 29, 72, 0.15) !important;
  border-color: rgba(225, 29, 72, 0.3) !important;
  color: #fca5a5 !important;
}

body.dark-skin .badge-modern-blue {
  background: rgba(21, 101, 192, 0.2) !important;
  border-color: rgba(21, 101, 192, 0.4) !important;
  color: #60a5fa !important;
}

body.dark-skin .badge-modern-emerald {
  background: rgba(22, 163, 74, 0.2) !important;
  border-color: rgba(22, 163, 74, 0.4) !important;
  color: #4ade80 !important;
}

body.dark-skin .badge-modern-amber {
  background: rgba(217, 119, 6, 0.2) !important;
  border-color: rgba(217, 119, 6, 0.4) !important;
  color: #fcd34d !important;
}

body.dark-skin .badge-modern-rose {
  background: rgba(225, 29, 72, 0.2) !important;
  border-color: rgba(225, 29, 72, 0.4) !important;
  color: #fda4af !important;
}

body.dark-skin .badge-modern-purple {
  background: rgba(126, 34, 206, 0.2) !important;
  border-color: rgba(126, 34, 206, 0.4) !important;
  color: #d8b4fe !important;
}

body.dark-skin .badge-modern-slate {
  background: rgba(148, 163, 184, 0.15) !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #cbd5e1 !important;
}


/*-----------Dashboard-3-----------*/

.first-section .first-plan {
    border-radius: 5px;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.first-section .first-plan .bg-img {
    width: 30%;
    position: absolute;
    opacity: 0.1;
    transform: rotate(0deg);
    right: 0px;
    bottom: -2px;
}
.rtl .first-section .first-plan {
    border-radius: 5px;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.rtl .first-section .first-plan .bg-img {
    width: 30%;
    position: absolute;
    opacity: 0.1;
    transform: rotate(0deg);
    left: 0px;
    right: auto;
    bottom: -2px;
}

.chargingstation {
  height:446px;
}

hr {
  color: #D3D3D3;
}

.smartcharging {
  height:391px;
}

.button1 {
  background-color: white;
  color: grey;
}

.button1:hover {
  background-color: #0052cc;
  color:white;
}

.activecharging {
  height:130px;
}
.newusers {
  height:130px;
}

.selectcars {
  height:225px;
}

.charging-table {
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-top: 10px;
}
.charging-table thead tr th {
  border: none;
}
.charging-table thead tr {
  background: #EEF2F6;
  border-radius: 10px;
}
.charging-table tbody tr {
  background: white;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  border-radius: 8px;
}
.charging-table tbody tr td {
  border: none;
}

.dropdown-item i {
  margin-right: 10px;
}

/* Custom modern smooth progress bar */
.progress-bar-custom {
  background: #e9ecef;
  border-radius: 6px;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern smooth buttons & pills */
.btn-smooth-primary {
  background: linear-gradient(135deg, #1565c0, #1e88e5);
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-smooth-primary:hover {
  background: linear-gradient(135deg, #0d47a1, #1565c0);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.4);
  transform: translateY(-1px);
}

.btn-primary svg,
.btn-primary .feather,
.btn-primary i,
.btn-smooth-primary svg,
.btn-smooth-primary .feather,
.btn-smooth-primary i {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

.btn-smooth-light {
  background: rgba(21, 101, 192, 0.08);
  color: #1565c0 !important;
  border: 1px solid rgba(21, 101, 192, 0.2);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-smooth-light:hover {
  background: rgba(21, 101, 192, 0.16);
  border-color: #1565c0;
  transform: translateY(-1px);
}

.btn-smooth-orange {
  background: rgba(230, 81, 0, 0.08);
  color: #e65100 !important;
  border: 1px solid rgba(230, 81, 0, 0.25);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-smooth-orange:hover {
  background: rgba(230, 81, 0, 0.18);
  border-color: #e65100;
  color: #bf360c !important;
  transform: translateY(-1px);
}

.btn-smooth-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-smooth-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  transform: translateY(-1px);
}

.btn-smooth-repo {
  background: #f8fafc;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.78rem;
  padding: 5px 12px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
}
.btn-smooth-repo:hover {
  background: #e2e8f0;
  color: #0f172a !important;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.btn-smooth-secondary {
  background: rgba(148, 163, 184, 0.12);
  color: #64748b !important;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 5px 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.btn-smooth-secondary:hover {
  background: rgba(148, 163, 184, 0.22);
  border-color: rgba(148, 163, 184, 0.45);
  color: #334155 !important;
  transform: translateY(-1px);
}

/* =========================================================================
   DARK MODE ADAPTIVE SYSTEM (body.dark-skin)
   ========================================================================= */

body.dark-skin {
  background-color: #0b1329 !important;
  color: #e2e8f0 !important;
}

body.dark-skin .content-wrapper {
  background-color: #0b1329 !important;
}

body.dark-skin .main-header {
  background-color: #0d172e !important;
  border-bottom: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

body.dark-skin .main-sidebar {
  background-color: #0d172e !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-skin .box {
  background-color: #111c38 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  color: #e2e8f0 !important;
}

body.dark-skin .box-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background-color: #111c38 !important;
  color: #f8fafc !important;
}

body.dark-skin .box-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background-color: #0e172e !important;
}

body.dark-skin h1, body.dark-skin h2, body.dark-skin h3, 
body.dark-skin h4, body.dark-skin h5, body.dark-skin h6 {
  color: #f8fafc !important;
}

body.dark-skin .text-muted,
body.dark-skin .text-fade {
  color: #94a3b8 !important;
}

body.dark-skin .table {
  color: #e2e8f0 !important;
}

body.dark-skin .table thead th {
  background-color: #0e172e !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-skin .table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
}

body.dark-skin .table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

body.dark-skin .form-control,
body.dark-skin .form-select,
body.dark-skin select.form-control,
body.dark-skin input.form-control,
body.dark-skin textarea.form-control {
  background-color: #0e172e !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
}

body.dark-skin .form-control:focus,
body.dark-skin .form-select:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.25) !important;
}

body.dark-skin .input-group-text {
  background-color: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
}

body.dark-skin .modal-content {
  background-color: #111c38 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7) !important;
}

body.dark-skin .modal-header,
body.dark-skin .modal-footer {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background-color: #111c38 !important;
}

body.dark-skin .progress-bar-custom {
  background: rgba(255, 255, 255, 0.08) !important;
}

body.dark-skin .btn-smooth-repo {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
body.dark-skin .btn-smooth-repo:hover {
  background: #334155 !important;
  color: #f8fafc !important;
  border-color: #64748b !important;
}

body.dark-skin .btn-smooth-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
body.dark-skin .btn-smooth-secondary:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #f1f5f9 !important;
}

body.dark-skin .btn-smooth-light {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}
body.dark-skin .btn-smooth-light:hover {
  background: rgba(56, 189, 248, 0.22) !important;
  color: #7dd3fc !important;
}

body.dark-skin .btn-smooth-orange {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fb923c !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}
body.dark-skin .btn-smooth-orange:hover {
  background: rgba(245, 158, 11, 0.24) !important;
  color: #fed7aa !important;
  border-color: #f59e0b !important;
}

body.dark-skin .btn-smooth-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}
body.dark-skin .btn-smooth-danger:hover {
  background: rgba(239, 68, 68, 0.28) !important;
  color: #fca5a5 !important;
}

body.dark-skin .main-footer {
  background-color: #111c38 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  border-radius: 0 0 16px 16px !important;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  border: none !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  background: #EBF5FF !important;
  color: #1565C0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.btn-theme-toggle:hover {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

.btn-theme-toggle:focus,
.btn-theme-toggle:active {
  outline: none !important;
  box-shadow: none !important;
  background: #EBF5FF !important;
  color: #1565C0 !important;
}

body.dark-skin .btn-theme-toggle {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f59e0b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.dark-skin .btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fbbf24 !important;
}

body.dark-skin .btn-theme-toggle:focus,
body.dark-skin .btn-theme-toggle:active {
  outline: none !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f59e0b !important;
}

/* Fase Card & Level Stats */
.fase-card {
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.fase-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.fase-card-desc {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.35;
  min-height: 32px;
}

body.dark-skin .fase-card {
  background-color: #1a2234 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

body.dark-skin .fase-card-desc {
  color: #94a3b8 !important;
}

.level-stat-pill {
  text-align: center;
  min-width: 80px;
  padding: 10px 14px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

body.dark-skin .level-stat-pill {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Jenjang Distribution Cards Grid (7 Sejajar di Desktop) */
.jenjang-distribution-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1399px) {
  .jenjang-distribution-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .jenjang-distribution-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .jenjang-distribution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .jenjang-distribution-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Clean & Smooth Table Action Buttons */
.btn-action-detail,
.btn-action-edit,
.btn-action-delete,
.btn-action-reset {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  outline: none !important;
}

.btn-action-detail {
  background: rgba(14, 165, 233, 0.12) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(14, 165, 233, 0.28) !important;
}
.btn-action-detail:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

.btn-action-edit {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #d97706 !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
}
.btn-action-edit:hover {
  background: #d97706 !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
}

.btn-action-reset {
  background: rgba(21, 101, 192, 0.12) !important;
  color: #1565C0 !important;
  border: 1px solid rgba(21, 101, 192, 0.28) !important;
}
.btn-action-reset:hover {
  background: #1565C0 !important;
  color: #ffffff !important;
  border-color: #1565C0 !important;
}

.btn-action-delete {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(239, 68, 68, 0.28) !important;
}
.btn-action-delete:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}

/* Dark mode action buttons */
body.dark-skin .btn-action-detail {
  background: rgba(56, 189, 248, 0.18) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.38) !important;
}
body.dark-skin .btn-action-detail:hover {
  background: #38bdf8 !important;
  color: #0f172a !important;
  border-color: #38bdf8 !important;
}

body.dark-skin .btn-action-edit {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.38) !important;
}
body.dark-skin .btn-action-edit:hover {
  background: #f59e0b !important;
  color: #0f172a !important;
  border-color: #f59e0b !important;
}

body.dark-skin .btn-action-reset {
  background: rgba(21, 101, 192, 0.22) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(96, 165, 250, 0.38) !important;
}
body.dark-skin .btn-action-reset:hover {
  background: #1565C0 !important;
  color: #ffffff !important;
  border-color: #1565C0 !important;
}

body.dark-skin .btn-action-delete {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.38) !important;
}
body.dark-skin .btn-action-delete:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

/* Admin Dashboard Adaptive Styles */
.stat-box-card {
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

body.dark-skin .stat-box-card {
  background-color: #111c38 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Quick action links in dashboard */
.quick-action-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #1e293b;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

.quick-action-link:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateX(3px);
}

body.dark-skin .quick-action-link {
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
}

body.dark-skin .quick-action-link:hover {
  background-color: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

/* Jenjang Card Item */
.jenjang-stat-item {
  padding: 16px 14px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.jenjang-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

body.dark-skin .jenjang-stat-item {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-skin .jenjang-stat-item:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Metric Indicator Card */
.metric-indicator-box {
  padding: 12px 16px;
  border-radius: 10px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
}

body.dark-skin .metric-indicator-box {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Chart Canvas Container */
.chart-canvas-box {
  border-radius: 12px;
  padding: 20px;
  height: 100%;
  min-height: 300px;
  border: 1px dashed #e2e8f0;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #ffffff;
}

body.dark-skin .chart-canvas-box {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border: 1px dashed rgba(255, 255, 255, 0.1) !important;
}

.chart-grid-line {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
  width: 100%;
  height: 0;
}

body.dark-skin .chart-grid-line {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06) !important;
}

/* Modern Tab Tingkatan Selector */
.tingkatan-tab-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}

.tingkatan-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border: 1.5px solid transparent;
  background: #ffffff;
  color: #64748b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.dark-skin .tingkatan-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.08);
}

.tingkatan-tab-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

body.dark-skin .tingkatan-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.tingkatan-tab-btn.active {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  color: #ffffff !important;
}

/* Modern Clean Box & Badges */
.modern-clean-card {
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.2s ease;
  background: #ffffff;
}

body.dark-skin .modern-clean-card {
  background: #182235 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Modern Table Skeleton Shimmer Animation */
.skeleton-shimmer {
  display: inline-block;
  position: relative;
  overflow: hidden;
  background-color: #f1f5f9;
  border-radius: 6px;
}

body.dark-skin .skeleton-shimmer {
  background-color: rgba(255, 255, 255, 0.07) !important;
}

.skeleton-shimmer::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.6) 20%,
    rgba(255, 255, 255, 0.8) 60%,
    rgba(255, 255, 255, 0)
  );
  animation: table-shimmer 1.5s infinite;
  content: '';
}

body.dark-skin .skeleton-shimmer::after {
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.04) 20%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0)
  ) !important;
}

@keyframes table-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.table-loading-container {
  padding: 10px 0;
}

/* ==========================================================================
   PERFECT LIGHT & DARK MODE DESIGN SYSTEM TOKENS (WORLD-CLASS THEME SYSTEM)
   ========================================================================== */
:root {
  --app-bg-page: #f4f6f9;
  --app-bg-card: #ffffff;
  --app-bg-card-hover: #f8fafc;
  --app-bg-subtle: #f1f5f9;
  --app-bg-muted: #e2e8f0;
  --app-text-main: #0f172a;
  --app-text-muted: #64748b;
  --app-text-subtle: #94a3b8;
  --app-border: #e2e8f0;
  --app-table-head: #f8fafc;
  --app-table-hover: #f8fafc;
  --app-table-border: #f1f5f9;
}

body.dark-skin,
html.dark,
.dark {
  --app-bg-page: #0b132b;
  --app-bg-card: #151e30;
  --app-bg-card-hover: #1a253c;
  --app-bg-subtle: #1e293b;
  --app-bg-muted: #334155;
  --app-text-main: #f8fafc;
  --app-text-muted: #94a3b8;
  --app-text-subtle: #64748b;
  --app-border: #1e293b;
  --app-table-head: #101726;
  --app-table-hover: #1a2438;
  --app-table-border: #1e293b;
}

/* Modern Adaptive Card */
.modern-ui-card {
  background: var(--app-bg-card) !important;
  color: var(--app-text-main) !important;
  border: 1px solid var(--app-border) !important;
  border-radius: 18px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

/* Modern Adaptive Table */
.modern-ui-table-container {
  background: var(--app-bg-card) !important;
  border: 1px solid var(--app-border) !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.modern-ui-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
  background: var(--app-bg-card) !important;
  color: var(--app-text-main) !important;
}

.modern-ui-table thead tr {
  background: var(--app-table-head) !important;
  border-bottom: 1px solid var(--app-border) !important;
  color: var(--app-text-muted) !important;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-ui-table thead th {
  padding: 14px 16px;
}

.modern-ui-table tbody tr {
  background: var(--app-bg-card) !important;
  border-bottom: 1px solid var(--app-table-border) !important;
  color: var(--app-text-main) !important;
  transition: background 0.15s ease;
}

.modern-ui-table tbody tr:hover {
  background: var(--app-table-hover) !important;
}

.modern-ui-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
}

/* Modern Segmented Tab Bar */
.modern-segmented-control {
  background: var(--app-bg-subtle) !important;
  border: 1px solid var(--app-border) !important;
  border-radius: 16px;
  padding: 5px;
  display: inline-flex;
  gap: 4px;
}

.modern-segmented-btn {
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--app-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.modern-segmented-btn:hover {
  color: var(--app-text-main);
}

.modern-segmented-btn.active {
  background: #1565C0 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.4);
}

/* Modern Filter Pills */
.modern-filter-pill {
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--app-border);
  background: var(--app-bg-card);
  color: var(--app-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modern-filter-pill:hover {
  background: var(--app-bg-subtle);
  color: var(--app-text-main);
}

.modern-filter-pill.active {
  background: #1565C0 !important;
  border-color: #1565C0 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.35);
}

/* ==========================================================================
   DRIBBLE MODERN LMS DESIGN SYSTEM (SMOOTH, CLEAN & TACTILE)
   ========================================================================== */
.dribbble-card {
  background: var(--app-bg-card) !important;
  color: var(--app-text-main) !important;
  border: 1px solid var(--app-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dribbble-card:hover {
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08) !important;
}

.dribbble-avatar-blue {
  background: linear-gradient(135deg, #1565C0 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
}

.dribbble-avatar-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
}

.dribbble-avatar-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
  color: #ffffff !important;
}

.dribbble-avatar-amber {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
  color: #ffffff !important;
}

.dribbble-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: all 0.15s ease;
}

.dribbble-status-pill.success {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.dribbble-status-pill.warning {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #f59e0b !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.dribbble-status-pill.info {
  background: rgba(21, 101, 192, 0.12) !important;
  color: #1565C0 !important;
  border: 1px solid rgba(21, 101, 192, 0.25) !important;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.pulse {
  animation: dribbble-pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes dribbble-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.45; }
}

.dribbble-btn-primary {
  background: #1565C0 !important;
  border-color: #1565C0 !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 7px 16px !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3) !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.dribbble-btn-primary:hover {
  background: #0d47a1 !important;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.45) !important;
  transform: translateY(-1px);
}

.dribbble-btn-primary:active {
  transform: scale(0.98);
}

.dribbble-btn-outline {
  background: var(--app-bg-card) !important;
  border: 1px solid var(--app-border) !important;
  color: var(--app-text-main) !important;
  border-radius: 12px !important;
  padding: 6px 14px !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.dribbble-btn-outline:hover {
  background: var(--app-bg-subtle) !important;
  border-color: #cbd5e1 !important;
}

body.dark-skin .dribbble-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.jadwal-hero-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

body.dark-skin .jadwal-hero-card {
  background: #182235 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35) !important;
}

.jadwal-grid-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: visible;
}

body.dark-skin .jadwal-grid-card {
  background: #182235 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.jadwal-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

body.dark-skin .jadwal-grid-card:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.45) !important;
}

/* Day Filter Segmented Control */
.day-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

body.dark-skin .day-filter-bar {
  background: #182235 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.day-pill-btn {
  padding: 7px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.day-pill-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

body.dark-skin .day-pill-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.day-pill-btn.active {
  background: #1565C0;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}

/* Modern Dual-Pane Preview Modal */
.preview-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeInModal 0.2s ease-out;
}

.preview-modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 1120px;
  height: 88vh;
  max-height: 840px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: scaleUpModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-skin .preview-modal-card {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUpModal {
  from { transform: scale(0.97); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Modern Flowchart Diagram UI */
.flowchart-step-card {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease;
}

.flowchart-step-card:hover {
  transform: translateY(-2px);
}

.flowchart-arrow-down {
  width: 2px;
  height: 22px;
  background: #cbd5e1;
  position: relative;
  margin: 2px 0;
}

.flowchart-arrow-down::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #cbd5e1;
}

/* ==========================================================================
   GLOBAL SMOOTH SCROLL & SCROLL LOCK FIX (TOTAL FREEDOM)
   ========================================================================== */

html,
body,
body.fixed,
body.dark-skin,
body.light-skin {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth !important;
  position: static !important;
}

.wrapper,
.fixedlayout-boxed .wrapper {
  min-height: 100vh !important;
  height: auto !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
  position: relative !important;
}

.content-wrapper,
.fixed .content-wrapper {
  min-height: calc(100vh - 60px) !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
  height: auto !important;
}

.container-full,
.content,
section.content {
  overflow-y: visible !important;
  height: auto !important;
}

/* ==========================================================================
   DUAL-MODE COMPATIBLE BADGES (DARK & LIGHT THEME)
   ========================================================================== */

/* Light Mode Defaults */
.badge-primary-light {
  background-color: #eff6ff !important;
  color: #1565C0 !important;
  border: 1px solid #bfdbfe !important;
}

.badge-success-light {
  background-color: #f0fdf4 !important;
  color: #16a34a !important;
  border: 1px solid #bbf7d0 !important;
}

.badge-danger-light {
  background-color: #fff1f2 !important;
  color: #e11d48 !important;
  border: 1px solid #fecdd3 !important;
}

.badge-warning-light {
  background-color: #fffbeb !important;
  color: #d97706 !important;
  border: 1px solid #fde68a !important;
}

.badge-info-light {
  background-color: #f5f3ff !important;
  color: #7c3aed !important;
  border: 1px solid #ddd6fe !important;
}

/* Dark Mode Overrides (body.dark-skin) */
body.dark-skin .badge-primary-light,
body.dark-skin .badge-modern-blue {
  background-color: rgba(30, 58, 138, 0.6) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(147, 197, 253, 0.4) !important;
  font-weight: 700 !important;
}
body.dark-skin .badge-primary-light svg,
body.dark-skin .badge-primary-light i,
body.dark-skin .badge-modern-blue svg,
body.dark-skin .badge-modern-blue i {
  stroke: #93c5fd !important;
  color: #93c5fd !important;
  stroke-width: 2.2px !important;
}

body.dark-skin .badge-success-light,
body.dark-skin .badge-modern-emerald {
  background-color: rgba(20, 83, 45, 0.6) !important;
  color: #86efac !important;
  border: 1px solid rgba(134, 239, 172, 0.4) !important;
  font-weight: 700 !important;
}
body.dark-skin .badge-success-light svg,
body.dark-skin .badge-success-light i,
body.dark-skin .badge-modern-emerald svg,
body.dark-skin .badge-modern-emerald i {
  stroke: #86efac !important;
  color: #86efac !important;
  stroke-width: 2.2px !important;
}

body.dark-skin .badge-danger-light,
body.dark-skin .badge-modern-rose {
  background-color: rgba(136, 19, 55, 0.6) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(252, 165, 165, 0.4) !important;
  font-weight: 700 !important;
}
body.dark-skin .badge-danger-light svg,
body.dark-skin .badge-danger-light i,
body.dark-skin .badge-modern-rose svg,
body.dark-skin .badge-modern-rose i {
  stroke: #fca5a5 !important;
  color: #fca5a5 !important;
  stroke-width: 2.2px !important;
}

body.dark-skin .badge-warning-light,
body.dark-skin .badge-modern-amber {
  background-color: rgba(120, 53, 15, 0.6) !important;
  color: #fde68a !important;
  border: 1px solid rgba(253, 230, 138, 0.4) !important;
  font-weight: 700 !important;
}
body.dark-skin .badge-warning-light svg,
body.dark-skin .badge-warning-light i,
body.dark-skin .badge-modern-amber svg,
body.dark-skin .badge-modern-amber i {
  stroke: #fde68a !important;
  color: #fde68a !important;
  stroke-width: 2.2px !important;
}

body.dark-skin .badge-info-light,
body.dark-skin .badge-modern-purple {
  background-color: rgba(88, 28, 135, 0.6) !important;
  color: #d8b4fe !important;
  border: 1px solid rgba(216, 180, 254, 0.4) !important;
  font-weight: 700 !important;
}
body.dark-skin .badge-info-light svg,
body.dark-skin .badge-info-light i,
body.dark-skin .badge-modern-purple svg,
body.dark-skin .badge-modern-purple i {
  stroke: #d8b4fe !important;
  color: #d8b4fe !important;
  stroke-width: 2.2px !important;
}

body.dark-skin .badge-secondary-light,
body.dark-skin .badge-modern-slate {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Stat Box Card System (Warna Asli - Diperjelas, Ditebalkan & Dipertegas) */
.stat-card-blue {
  border-left: 4px solid #1565C0 !important;
}
.stat-card-blue .stat-val {
  color: #3b82f6 !important;
  font-weight: 900 !important;
}
.stat-card-blue .stat-icon-box {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #2563eb !important;
}
.stat-card-blue .stat-icon-box svg,
.stat-card-blue .stat-icon-box i {
  stroke: #2563eb !important;
  stroke-width: 2.3px !important;
}

body.dark-skin .stat-card-blue .stat-val {
  color: #60a5fa !important;
}
body.dark-skin .stat-card-blue .stat-icon-box {
  background: rgba(21, 101, 192, 0.25) !important;
  color: #60a5fa !important;
}
body.dark-skin .stat-card-blue .stat-icon-box svg,
body.dark-skin .stat-card-blue .stat-icon-box i {
  stroke: #60a5fa !important;
  stroke-width: 2.3px !important;
}

.stat-card-emerald {
  border-left: 4px solid #16a34a !important;
}
.stat-card-emerald .stat-val {
  color: #22c55e !important;
  font-weight: 900 !important;
}
.stat-card-emerald .stat-icon-box {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #16a34a !important;
}
.stat-card-emerald .stat-icon-box svg,
.stat-card-emerald .stat-icon-box i {
  stroke: #16a34a !important;
  stroke-width: 2.3px !important;
}

body.dark-skin .stat-card-emerald .stat-val {
  color: #4ade80 !important;
}
body.dark-skin .stat-card-emerald .stat-icon-box {
  background: rgba(34, 197, 94, 0.25) !important;
  color: #4ade80 !important;
}
body.dark-skin .stat-card-emerald .stat-icon-box svg,
body.dark-skin .stat-card-emerald .stat-icon-box i {
  stroke: #4ade80 !important;
  stroke-width: 2.3px !important;
}

.stat-card-amber {
  border-left: 4px solid #f59e0b !important;
}
.stat-card-amber .stat-val {
  color: #f59e0b !important;
  font-weight: 900 !important;
}
.stat-card-amber .stat-icon-box {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #d97706 !important;
}
.stat-card-amber .stat-icon-box svg,
.stat-card-amber .stat-icon-box i {
  stroke: #d97706 !important;
  stroke-width: 2.3px !important;
}

body.dark-skin .stat-card-amber .stat-val {
  color: #fbbf24 !important;
}
body.dark-skin .stat-card-amber .stat-icon-box {
  background: rgba(245, 158, 11, 0.25) !important;
  color: #fbbf24 !important;
}
body.dark-skin .stat-card-amber .stat-icon-box svg,
body.dark-skin .stat-card-amber .stat-icon-box i {
  stroke: #fbbf24 !important;
  stroke-width: 2.3px !important;
}

.stat-card-rose {
  border-left: 4px solid #ef4444 !important;
}
.stat-card-rose .stat-val {
  color: #ef4444 !important;
  font-weight: 900 !important;
}
.stat-card-rose .stat-icon-box {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #dc2626 !important;
}
.stat-card-rose .stat-icon-box svg,
.stat-card-rose .stat-icon-box i {
  stroke: #dc2626 !important;
  stroke-width: 2.3px !important;
}

body.dark-skin .stat-card-rose .stat-val {
  color: #f87171 !important;
}
body.dark-skin .stat-card-rose .stat-icon-box {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #f87171 !important;
}
body.dark-skin .stat-card-rose .stat-icon-box svg,
body.dark-skin .stat-card-rose .stat-icon-box i {
  stroke: #f87171 !important;
  stroke-width: 2.3px !important;
}

/* Stat Card Typography Contrast */
.stat-label {
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #334155 !important;
}
body.dark-skin .stat-label {
  color: #94a3b8 !important;
}

.stat-sub {
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
}
body.dark-skin .stat-sub {
  color: #94a3b8 !important;
}

.card-title-text {
  color: #1565C0 !important;
  font-weight: 800 !important;
}
body.dark-skin .card-title-text {
  color: #60a5fa !important;
}

/* 3D Elevated Cards & Tactile Depth System (Light Mode Focus) */
body.light-skin .stat-card-blue,
body.light-skin .stat-card-emerald,
body.light-skin .stat-card-amber,
body.light-skin .stat-card-rose,
body:not(.dark-skin) .stat-card-blue,
body:not(.dark-skin) .stat-card-emerald,
body:not(.dark-skin) .stat-card-amber,
body:not(.dark-skin) .stat-card-rose {
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-bottom: 3.5px solid rgba(203, 213, 225, 0.85) !important;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.light-skin .stat-card-blue:hover,
body.light-skin .stat-card-emerald:hover,
body.light-skin .stat-card-amber:hover,
body.light-skin .stat-card-rose:hover,
body:not(.dark-skin) .stat-card-blue:hover,
body:not(.dark-skin) .stat-card-emerald:hover,
body:not(.dark-skin) .stat-card-amber:hover,
body:not(.dark-skin) .stat-card-rose:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06) !important;
}

/* 3D Stat Cards In Light Mode */
body.light-skin .stat-card-blue,
body:not(.dark-skin) .stat-card-blue {
  border-left: 5px solid #1565C0 !important;
  border-bottom: 3.5px solid rgba(21, 101, 192, 0.35) !important;
}

body.light-skin .stat-card-emerald,
body:not(.dark-skin) .stat-card-emerald {
  border-left: 5px solid #16a34a !important;
  border-bottom: 3.5px solid rgba(22, 163, 74, 0.35) !important;
}

body.light-skin .stat-card-amber,
body:not(.dark-skin) .stat-card-amber {
  border-left: 5px solid #f59e0b !important;
  border-bottom: 3.5px solid rgba(245, 158, 11, 0.35) !important;
}

body.light-skin .stat-card-rose,
body:not(.dark-skin) .stat-card-rose {
  border-left: 5px solid #ef4444 !important;
  border-bottom: 3.5px solid rgba(239, 68, 68, 0.35) !important;
}

/* 3D Embossed Icon Box */
body.light-skin .stat-icon-box,
body:not(.dark-skin) .stat-icon-box {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Adaptive Select Box (Tahun Ajaran & Filter) */
.select-box-adaptive {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
}
.select-box-adaptive select {
  color: #1565C0 !important;
  font-weight: 800 !important;
}
.select-box-adaptive svg,
.select-box-adaptive i {
  color: #1565C0 !important;
  stroke: #1565C0 !important;
}

body.dark-skin .select-box-adaptive {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
}
body.dark-skin .select-box-adaptive select {
  color: #93c5fd !important;
  font-weight: 800 !important;
}
body.dark-skin .select-box-adaptive svg,
body.dark-skin .select-box-adaptive i {
  color: #60a5fa !important;
  stroke: #60a5fa !important;
}

/* Card Inner Sections (Mapel & Rombel) */
.card-inner-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
body.dark-skin .card-inner-box {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.card-inner-highlight {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
}
body.dark-skin .card-inner-highlight {
  background: rgba(21, 101, 192, 0.15) !important;
  border: 1px solid rgba(96, 165, 250, 0.25) !important;
}

/* Avatar Box Contrast System */
.avatar-box-blue {
  background: #eff6ff !important;
  color: #1565C0 !important;
  border: 1px solid #bfdbfe !important;
  font-weight: 800 !important;
}
body.dark-skin .avatar-box-blue {
  background: rgba(21, 101, 192, 0.25) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(96, 165, 250, 0.3) !important;
}

.avatar-box-amber {
  background: #fffbeb !important;
  color: #d97706 !important;
  border: 1px solid #fde68a !important;
  font-weight: 800 !important;
}
body.dark-skin .avatar-box-amber {
  background: rgba(245, 158, 11, 0.25) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
}

.avatar-box-emerald {
  background: #f0fdf4 !important;
  color: #16a34a !important;
  border: 1px solid #bbf7d0 !important;
  font-weight: 800 !important;
}
body.dark-skin .avatar-box-emerald {
  background: rgba(34, 197, 94, 0.25) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74, 222, 128, 0.3) !important;
}

.card-icon-adaptive {
  color: #1565C0 !important;
  stroke: #1565C0 !important;
}
body.dark-skin .card-icon-adaptive {
  color: #60a5fa !important;
  stroke: #60a5fa !important;
}

/* Tab Button Pill System (Module Selector) */
.tab-btn-pill {
  padding: 6px 16px !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.tab-btn-pill.active {
  background: #1565C0 !important;
  color: #ffffff !important;
  border: 1.5px solid #1565C0 !important;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.35) !important;
}

.tab-btn-pill.inactive {
  background: #eff6ff !important;
  color: #1565C0 !important;
  border: 1.5px solid #bfdbfe !important;
}
.tab-btn-pill.inactive:hover {
  background: #dbeafe !important;
  border-color: #93c5fd !important;
}

body.dark-skin .tab-btn-pill.active {
  background: #1565C0 !important;
  color: #ffffff !important;
  border: 1.5px solid #1565C0 !important;
}

body.dark-skin .tab-btn-pill.inactive {
  background: rgba(21, 101, 192, 0.15) !important;
  color: #60a5fa !important;
  border: 1.5px solid rgba(96, 165, 250, 0.3) !important;
}
body.dark-skin .tab-btn-pill.inactive:hover {
  background: rgba(21, 101, 192, 0.25) !important;
  border-color: rgba(96, 165, 250, 0.5) !important;
}



/* 3D Roadmap Step Item In Light Mode */
body.light-skin .step-item-3d,
body:not(.dark-skin) .step-item-3d {
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-bottom: 2.5px solid rgba(203, 213, 225, 0.8) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.2s ease !important;
}

body.light-skin .step-item-3d:hover,
body:not(.dark-skin) .step-item-3d:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
  border-color: #cbd5e1 !important;
}

/* 3D Buttons in Light Mode */
body.light-skin .btn-primary,
body:not(.dark-skin) .btn-primary {
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  border-bottom: 2.5px solid #0d47a1 !important;
  transition: all 0.18s ease !important;
}

body.light-skin .btn-primary:active,
body:not(.dark-skin) .btn-primary:active {
  transform: translateY(1.5px);
  border-bottom-width: 1px !important;
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.2) !important;
}

body.light-skin .btn-smooth-light,
body:not(.dark-skin) .btn-smooth-light {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-bottom: 2px solid #cbd5e1 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
  color: #334155 !important;
}

body.light-skin .btn-smooth-light:hover,
body:not(.dark-skin) .btn-smooth-light:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* ==========================================================================
   TOP HEADER & NAVBAR SYSTEM (LIGHT & DARK MODE)
   ========================================================================== */

/* Light Mode: Crisp Solid Pure White Elevated Top Header */
body.light-skin .main-header,
body:not(.dark-skin) .main-header,
.main-header {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-bottom: none !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
  position: relative !important;
  z-index: 1030 !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.light-skin .main-header .logo-box,
body:not(.dark-skin) .main-header .logo-box,
.main-header .logo-box {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-bottom: none !important;
  border-right: 1.5px solid #e2e8f0 !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

/* Override template default: logo rata kiri, bukan center */
.main-header .logo-box .logo,
.main-header .logo-box a.logo {
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 0 16px !important;
}

body.light-skin .main-header .navbar,
body:not(.dark-skin) .main-header .navbar,
.main-header .navbar {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
}

body.light-skin .main-sidebar,
body:not(.dark-skin) .main-sidebar {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-right: 1.5px solid #e2e8f0 !important;
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.03) !important;
}

body.light-skin .content-wrapper,
body:not(.dark-skin) .content-wrapper {
  background-color: #f1f5f9 !important;
}

/* Modern Hamburger Menu Button with Royal Blue Solid Badge (Persis Screenshot) */
.main-header .navbar .push-btn,
.btn-burger-toggle {
  background: #1565C0 !important;
  background-color: #1565C0 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  margin: 0 14px !important;
  box-shadow: 0 3px 10px rgba(21, 101, 192, 0.28) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}
.main-header .navbar .push-btn svg,
.main-header .navbar .push-btn i,
.main-header .navbar .push-btn [data-feather="menu"],
.btn-burger-toggle svg,
.btn-burger-toggle i {
  color: #ffffff !important;
  stroke: #ffffff !important;
  width: 20px !important;
  height: 20px !important;
}
.main-header .navbar .push-btn:hover,
.btn-burger-toggle:hover {
  background: #0d47a1 !important;
  background-color: #0d47a1 !important;
  box-shadow: 0 5px 14px rgba(21, 101, 192, 0.38) !important;
  transform: translateY(-1px);
}

/* Sidebar Brand Header: Seamless and Clean (No Separator Line) */
.sidebar-brand-header {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.sidebar-brand-header:after,
.sidebar-brand-header:before {
  display: none !important;
}
.main-sidebar .sidebar-menu {
  border-top: none !important;
  padding-top: 4px !important;
}

/* Matikan pseudo :after lama yang membuat lengkungan rusak */
.sidebar-menu > li.active > a:after,
.sidebar-menu > li > a:after,
.theme-primary.light-skin .sidebar-menu > li.active > a:after,
.theme-primary.dark-skin .sidebar-menu > li.active > a:after {
  display: none !important;
  content: none !important;
}

/* Sidebar Menu Item — Clean Pill Style */
.main-sidebar .sidebar-menu > li {
  margin: 3px 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 10px !important;
  position: relative !important;
  list-style: none !important;
  border: none !important;
  box-shadow: none !important;
}
.main-sidebar .sidebar-menu > li::before,
.main-sidebar .sidebar-menu > li::after {
  content: none !important;
  display: none !important;
}

/* Header kategori (DASHBOARD, MENGAJAR, PENILAIAN) */
.main-sidebar .sidebar-menu > li.header {
  color: #94a3b8 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  padding: 16px 12px 6px 12px !important;
  background: transparent !important;
  text-transform: uppercase !important;
  margin: 0 12px !important;
  border-radius: 0 !important;
}

/* Link menu item */
.main-sidebar .sidebar-menu > li > a {
  padding: 10px 14px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  position: relative !important;
}
.main-sidebar .sidebar-menu > li > a::before,
.main-sidebar .sidebar-menu > li > a::after {
  content: none !important;
  display: none !important;
}

/* Icon */
.main-sidebar .sidebar-menu > li > a i,
.main-sidebar .sidebar-menu > li > a svg,
.main-sidebar .sidebar-menu > li > a .menu-icon {
  color: #64748b !important;
  stroke: #64748b !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin: 0 12px 0 0 !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: color 0.15s ease, stroke 0.15s ease !important;
}

/* Teks label normal */
body:not(.sidebar-collapse) .main-sidebar .sidebar-menu > li > a > .menu-title,
body:not(.sidebar-collapse) .main-sidebar .sidebar-menu > li > a > span {
  margin: 0 !important;
  padding: 0 !important;
  display: inline !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  color: inherit !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body:not(.sidebar-collapse) .main-sidebar .sidebar-menu > li > a > .menu-title::before,
body:not(.sidebar-collapse) .main-sidebar .sidebar-menu > li > a > .menu-title::after {
  content: none !important;
  display: none !important;
}

/* Hover (Light Skin) */
.main-sidebar .sidebar-menu > li > a:hover,
.main-sidebar .sidebar-menu > li:hover > a {
  background: rgba(21, 101, 192, 0.08) !important;
  color: #1565C0 !important;
  border-radius: 12px !important;
}
.main-sidebar .sidebar-menu > li > a:hover i,
.main-sidebar .sidebar-menu > li > a:hover svg,
.main-sidebar .sidebar-menu > li > a:hover .menu-icon,
.main-sidebar .sidebar-menu > li:hover > a i,
.main-sidebar .sidebar-menu > li:hover > a svg,
.main-sidebar .sidebar-menu > li:hover > a .menu-icon {
  color: #1565C0 !important;
  stroke: #1565C0 !important;
}

/* Active (Light Skin Expanded) */
.main-sidebar .sidebar-menu > li.active > a {
  background: rgba(21, 101, 192, 0.12) !important;
  color: #1565C0 !important;
  font-weight: 700 !important;
  border-left: 4px solid #1565C0 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(21, 101, 192, 0.15) !important;
}
.main-sidebar .sidebar-menu > li.active > a i,
.main-sidebar .sidebar-menu > li.active > a svg,
.main-sidebar .sidebar-menu > li.active > a .menu-icon {
  color: #1565C0 !important;
  stroke: #1565C0 !important;
}

/* Dark Skin */
body.dark-skin .main-sidebar,
.dark .main-sidebar {
  background: #0d172e !important;
  background-color: #0d172e !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.dark-skin .main-sidebar .sidebar-menu > li.header,
.dark .main-sidebar .sidebar-menu > li.header {
  color: #64748b !important;
}
body.dark-skin .main-sidebar .sidebar-menu > li > a,
.dark .main-sidebar .sidebar-menu > li > a {
  color: #94a3b8 !important;
  border-left: none !important;
  border-radius: 12px !important;
}
body.dark-skin .main-sidebar .sidebar-menu > li > a i,
body.dark-skin .main-sidebar .sidebar-menu > li > a .menu-icon,
.dark .main-sidebar .sidebar-menu > li > a i,
.dark .main-sidebar .sidebar-menu > li > a .menu-icon,
body.dark-skin .main-sidebar .sidebar-menu > li > a svg,
.dark .main-sidebar .sidebar-menu > li > a svg {
  color: #64748b !important;
  stroke: #64748b !important;
}

/* Hover (Dark Skin) */
body.dark-skin .main-sidebar .sidebar-menu > li > a:hover,
body.dark-skin .main-sidebar .sidebar-menu > li:hover > a,
.dark .main-sidebar .sidebar-menu > li > a:hover,
.dark .main-sidebar .sidebar-menu > li:hover > a {
  background: rgba(37, 99, 235, 0.12) !important;
  color: #60a5fa !important;
  border-radius: 12px !important;
}
body.dark-skin .main-sidebar .sidebar-menu > li > a:hover i,
body.dark-skin .main-sidebar .sidebar-menu > li > a:hover svg,
body.dark-skin .main-sidebar .sidebar-menu > li > a:hover .menu-icon,
body.dark-skin .main-sidebar .sidebar-menu > li:hover > a i,
body.dark-skin .main-sidebar .sidebar-menu > li:hover > a svg,
body.dark-skin .main-sidebar .sidebar-menu > li:hover > a .menu-icon,
.dark .main-sidebar .sidebar-menu > li > a:hover i,
.dark .main-sidebar .sidebar-menu > li > a:hover svg,
.dark .main-sidebar .sidebar-menu > li > a:hover .menu-icon,
.dark .main-sidebar .sidebar-menu > li:hover > a i,
.dark .main-sidebar .sidebar-menu > li:hover > a svg,
.dark .main-sidebar .sidebar-menu > li:hover > a .menu-icon {
  color: #60a5fa !important;
  stroke: #60a5fa !important;
}

/* Active (Dark Skin Expanded) */
body.dark-skin .main-sidebar .sidebar-menu > li.active > a,
.dark .main-sidebar .sidebar-menu > li.active > a {
  background: rgba(37, 99, 235, 0.22) !important;
  color: #60a5fa !important;
  font-weight: 700 !important;
  border-left: 4px solid #2563eb !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2) !important;
}
body.dark-skin .main-sidebar .sidebar-menu > li.active > a i,
body.dark-skin .main-sidebar .sidebar-menu > li.active > a svg,
body.dark-skin .main-sidebar .sidebar-menu > li.active > a .menu-icon,
.dark .main-sidebar .sidebar-menu > li.active > a i,
.dark .main-sidebar .sidebar-menu > li.active > a svg,
.dark .main-sidebar .sidebar-menu > li.active > a .menu-icon {
  color: #60a5fa !important;
  stroke: #60a5fa !important;
}

/* ===== COLLAPSED MODE (mini sidebar saat burger diklik di PC) ===== */

/* 1. Reset container mini sidebar */
body.sidebar-collapse .main-sidebar,
body.sidebar-mini.sidebar-collapse .main-sidebar,
body.sidebar-collapse .main-sidebar .sidebar,
body.sidebar-mini.sidebar-collapse .main-sidebar .sidebar,
body.sidebar-collapse .main-sidebar .multinav,
body.sidebar-mini.sidebar-collapse .main-sidebar .multinav,
body.sidebar-collapse .main-sidebar .multinav-scroll,
body.sidebar-mini.sidebar-collapse .main-sidebar .multinav-scroll {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  overflow: visible !important;
}

/* 2. Sembunyikan header kategori teks saat collapse */
body.sidebar-collapse .main-sidebar .sidebar-menu > li.header,
body.sidebar-mini.sidebar-collapse .main-sidebar .sidebar-menu > li.header,
body.sidebar-collapse .sidebar-menu li.header,
body.sidebar-mini.sidebar-collapse .sidebar-menu li.header {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 3. List menu ul — Center di tengah sidebar 70px */
body.sidebar-collapse .main-sidebar .sidebar-menu,
body.sidebar-mini.sidebar-collapse .main-sidebar .sidebar-menu,
body.sidebar-collapse .sidebar-menu,
body.sidebar-mini.sidebar-collapse .sidebar-menu {
  width: 70px !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  list-style: none !important;
}

/* 4. Setiap li — Kotak 44x44px persis di tengah */
body.sidebar-collapse .main-sidebar .sidebar-menu > li,
body.sidebar-mini.sidebar-collapse .main-sidebar .sidebar-menu > li,
body.sidebar-collapse .sidebar-menu > li,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li {
  margin: 4px auto !important;
  padding: 0 !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  position: relative !important;
  list-style: none !important;
  float: none !important;
}

/* 5. Link <a> di dalam li */
body.sidebar-collapse .main-sidebar .sidebar-menu > li > a,
body.sidebar-mini.sidebar-collapse .main-sidebar .sidebar-menu > li > a,
body.sidebar-collapse .sidebar-menu > li > a,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li > a {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  position: relative !important;
  text-align: center !important;
  float: none !important;
  transition: background 0.15s ease, color 0.15s ease, border 0.15s ease !important;
}

/* 6. Ikon SVG & Font Icons — Hapus margin-left 11px dari template lama */
body.sidebar-collapse .main-sidebar .sidebar-menu > li > a i,
body.sidebar-collapse .main-sidebar .sidebar-menu > li > a svg,
body.sidebar-collapse .main-sidebar .sidebar-menu > li > a .menu-icon,
body.sidebar-collapse .main-sidebar .sidebar-menu > li > a .feather-icon-wrap,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li > a i,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li > a svg,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li > a .menu-icon,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li > a .feather-icon-wrap {
  margin: 0 !important;
  padding: 0 !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 7. Inactive Icon Style saat collapse */
body.sidebar-collapse .main-sidebar .sidebar-menu > li:not(.active) > a i,
body.sidebar-collapse .main-sidebar .sidebar-menu > li:not(.active) > a svg,
body.sidebar-collapse .main-sidebar .sidebar-menu > li:not(.active) > a .menu-icon,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:not(.active) > a i,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:not(.active) > a svg,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:not(.active) > a .menu-icon {
  color: #94a3b8 !important;
  stroke: #94a3b8 !important;
}

/* 8. Hover Inactive saat collapse */
body.sidebar-collapse .main-sidebar .sidebar-menu > li:not(.active) > a:hover,
body.sidebar-collapse .main-sidebar .sidebar-menu > li:not(.active):hover > a,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:not(.active) > a:hover,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:not(.active):hover > a {
  background: rgba(37, 99, 235, 0.14) !important;
  border-radius: 12px !important;
}
body.sidebar-collapse .main-sidebar .sidebar-menu > li:not(.active) > a:hover i,
body.sidebar-collapse .main-sidebar .sidebar-menu > li:not(.active) > a:hover svg,
body.sidebar-collapse .main-sidebar .sidebar-menu > li:not(.active) > a:hover .menu-icon,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:not(.active):hover > a i,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:not(.active):hover > a svg,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:not(.active):hover > a .menu-icon {
  color: #60a5fa !important;
  stroke: #60a5fa !important;
}

/* 9. Active State — Kotak Kapsul Biru Rapi Simetris di Tengah */
body.sidebar-collapse .main-sidebar .sidebar-menu > li.active,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li.active {
  margin: 4px auto !important;
  width: 44px !important;
  height: 44px !important;
}
body.sidebar-collapse .main-sidebar .sidebar-menu > li.active > a,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a {
  width: 44px !important;
  height: 44px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(37, 99, 235, 0.22) !important;
  color: #60a5fa !important;
  border-radius: 12px !important;
  border-left: 4px solid #2563eb !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
}
body.sidebar-collapse .main-sidebar .sidebar-menu > li.active > a i,
body.sidebar-collapse .main-sidebar .sidebar-menu > li.active > a svg,
body.sidebar-collapse .main-sidebar .sidebar-menu > li.active > a .menu-icon,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a i,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a svg,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a .menu-icon {
  color: #60a5fa !important;
  stroke: #60a5fa !important;
  margin: 0 !important;
}

/* 10. Sembunyikan default span saat TIDAK di-hover */
body.sidebar-collapse .main-sidebar .sidebar-menu > li:not(:hover) > a > .menu-title,
body.sidebar-collapse .main-sidebar .sidebar-menu > li:not(:hover) > a > span,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:not(:hover) > a > .menu-title,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:not(:hover) > a > span {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* 11. Custom Popover Tooltip INSTAN saat KURSOR HOVER di atas menu */
body.sidebar-collapse .main-sidebar .sidebar-menu > li:hover > a > .menu-title,
body.sidebar-collapse .main-sidebar .sidebar-menu > li:hover > a > span,
body.sidebar-collapse .main-sidebar .sidebar-menu > li > a:hover > .menu-title,
body.sidebar-collapse .main-sidebar .sidebar-menu > li > a:hover > span,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > .menu-title,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span,
body.sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu > li:hover > a > span,
body.sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right) {
  display: inline-flex !important;
  align-items: center !important;
  position: absolute !important;
  left: 56px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  -webkit-transform: translateY(-50%) !important;
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #ffffff !important;
  padding: 6px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
  z-index: 999999 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  text-align: left !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

/* Hover interaktif langsung di atas tooltip */
body.sidebar-collapse .main-sidebar .sidebar-menu > li > a > .menu-title:hover,
body.sidebar-collapse .main-sidebar .sidebar-menu > li > a > span:hover,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .menu-title:hover,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span:hover {
  background: #2563eb !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #60a5fa !important;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45), 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

/* 12. Arrow Pointer Segitiga untuk Tooltip */
body.sidebar-collapse .main-sidebar .sidebar-menu > li:hover > a > .menu-title::before,
body.sidebar-collapse .main-sidebar .sidebar-menu > li:hover > a > span::before,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > .menu-title::before,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span::before {
  content: '' !important;
  position: absolute !important;
  left: -5px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  -webkit-transform: translateY(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 5px solid transparent !important;
  border-bottom: 5px solid transparent !important;
  border-right: 5px solid #0f172a !important;
  transition: border-right-color 0.15s ease !important;
}

body.sidebar-collapse .main-sidebar .sidebar-menu > li > a > .menu-title:hover::before,
body.sidebar-collapse .main-sidebar .sidebar-menu > li > a > span:hover::before,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .menu-title:hover::before,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span:hover::before {
  border-right-color: #2563eb !important;
}

/* Logo-box saat collapse: hanya tampilkan logo image kecil di tengah */
.sidebar-collapse .main-header .logo-box,
.sidebar-mini.sidebar-collapse .main-header .logo-box {
  width: 70px !important;
  min-width: 70px !important;
  padding: 0 !important;
  justify-content: center !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: none !important;
}
/* Sembunyikan teks "ASA Learn" saat collapse */
.sidebar-collapse .main-header .logo-box a span,
.sidebar-mini.sidebar-collapse .main-header .logo-box a span {
  display: none !important;
}
/* Logo image tetap tampil rapi di tengah */
.sidebar-collapse .main-header .logo-box a,
.sidebar-mini.sidebar-collapse .main-header .logo-box a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
}
.sidebar-collapse .main-header .logo-box a img,
.sidebar-mini.sidebar-collapse .main-header .logo-box a img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  margin: 0 auto !important;
}

/* Responsif desktop: Penyesuaian margin konten utama */
@media (min-width: 768px) {
  .main-sidebar,
  .main-header .logo-box,
  .content-wrapper,
  .main-header .navbar {
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1), left 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  .sidebar-collapse .content-wrapper,
  .sidebar-mini.sidebar-collapse .content-wrapper {
    margin-left: 70px !important;
  }
}

/* Dark Mode: Sleek Deep Navy Elevated Top Header */
body.dark-skin .main-header,
.dark .main-header {
  background: #0d172e !important;
  background-color: #0d172e !important;
  border-bottom: none !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4) !important;
}

body.dark-skin .main-header .logo-box,
.dark .main-header .logo-box {
  background: #0d172e !important;
  background-color: #0d172e !important;
  border-bottom: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

body.dark-skin .main-header .navbar,
.dark .main-header .navbar {
  background: #0d172e !important;
  background-color: #0d172e !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-skin .main-header .navbar .push-btn,
.dark .main-header .navbar .push-btn,
body.dark-skin .btn-burger-toggle,
.dark .btn-burger-toggle {
  background: #2563eb !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.35) !important;
}
body.dark-skin .main-header .navbar .push-btn:hover,
.dark .main-header .navbar .push-btn:hover,
body.dark-skin .btn-burger-toggle:hover,
.dark .btn-burger-toggle:hover {
  background: #1d4ed8 !important;
  background-color: #1d4ed8 !important;
  box-shadow: 0 5px 16px rgba(37, 99, 235, 0.5) !important;
}

body.dark-skin .header-logo-svg,
.dark-skin .header-logo-svg,
.dark-skin .main-header .logo-mini svg {
  stroke: #60a5fa !important;
  color: #60a5fa !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.dark-skin .header-logo-text {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   TOOLBAR CONTROLS: BUTTON GROUP & SEARCH (LIGHT & DARK MODE)
   ========================================================================== */

/* 1. View Mode Button Group */
.view-toggle-group .btn {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  transition: all 0.15s ease !important;
}

/* Light Mode: Inactive button has solid border and white background */
body.light-skin .view-toggle-group .btn-outline-secondary,
body:not(.dark-skin) .view-toggle-group .btn-outline-secondary {
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}
body.light-skin .view-toggle-group .btn-outline-secondary:hover,
body:not(.dark-skin) .view-toggle-group .btn-outline-secondary:hover {
  background-color: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #1565C0 !important;
}

/* Dark Mode: Inactive button has original subtle border */
body.dark-skin .view-toggle-group .btn-outline-secondary {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #94a3b8 !important;
}
body.dark-skin .view-toggle-group .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #60a5fa !important;
}

/* Active Button in both modes */
.view-toggle-group .btn-primary {
  background-color: #1565C0 !important;
  border: 1.5px solid #1565C0 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.3) !important;
}

/* 2. Search Box Container (Bootstrap input-group & input-group-sm) */
body.light-skin .input-group .input-group-text,
body:not(.dark-skin) .input-group .input-group-text {
  background-color: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-right: 1.5px solid #cbd5e1 !important;
  border-radius: 8px 0 0 8px !important;
  color: #475569 !important;
  padding: 0 12px !important;
  position: relative !important;
  z-index: 2 !important;
}

body.light-skin .input-group .form-control,
body:not(.dark-skin) .input-group .form-control {
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-left: 1.5px solid #cbd5e1 !important;
  border-radius: 0 8px 8px 0 !important;
  color: #0f172a !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  margin-left: -1.5px !important;
}

body.light-skin .input-group .form-control::placeholder,
body:not(.dark-skin) .input-group .form-control::placeholder {
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

body.light-skin .input-group:focus-within .input-group-text,
body.light-skin .input-group:focus-within .form-control,
body:not(.dark-skin) .input-group:focus-within .input-group-text,
body:not(.dark-skin) .input-group:focus-within .form-control {
  border-color: #1565C0 !important;
  z-index: 3 !important;
}

/* Dark Mode input-group styling */
body.dark-skin .input-group .input-group-text {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px 0 0 8px !important;
  color: #94a3b8 !important;
  padding: 0 12px !important;
  position: relative !important;
  z-index: 2 !important;
}

body.dark-skin .input-group .form-control {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 0 8px 8px 0 !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  margin-left: -1px !important;
}

body.dark-skin .input-group .form-control::placeholder {
  color: #64748b !important;
}

body.dark-skin .input-group:focus-within .input-group-text,
body.dark-skin .input-group:focus-within .form-control {
  border-color: rgba(96, 165, 250, 0.5) !important;
  z-index: 3 !important;
}

/* Slide-Over Grading Drawer (Inspired by Modern LMS Prototype) */
.slide-over-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1060;
  display: flex;
  justify-content: flex-end;
  animation: fadeInBackdrop 0.2s ease-out;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-over-panel {
  width: 100%;
  max-width: 860px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border-left: 1.5px solid #cbd5e1;
}

body.dark-skin .slide-over-panel {
  background: #141b2d !important;
  border-left: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.slide-over-header {
  padding: 16px 24px;
  border-bottom: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

body.dark-skin .slide-over-header {
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08) !important;
}

.slide-over-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.slide-over-footer {
  padding: 14px 24px;
  border-top: 1.5px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.dark-skin .slide-over-footer {
  background: rgba(255, 255, 255, 0.03) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.08) !important;
}

/* Quick Action Workflow Step Card */
.workflow-step-card {
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  padding: 18px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

body.dark-skin .workflow-step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
}

.workflow-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

body.dark-skin .workflow-step-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   HEADER + SIDEBAR UNIFIED — satu blok bersih, tidak ada konflik
   Logo di logo-box, sidebar menyambung tanpa garis pemisah
   ========================================================================== */

/* main-header: tidak ada border sama sekali */
.main-header,
body .main-header,
html body .main-header,
body.light-skin .main-header,
body:not(.dark-skin) .main-header {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
}
body.dark-skin .main-header {
  border: none !important;
  box-shadow: none !important;
  background: #0d172e !important;
}

/* logo-box: background sama dengan sidebar, hanya border-right */
.main-header .logo-box,
.main-header div.logo-box,
body .main-header .logo-box,
body .main-header div.logo-box,
html body .main-header .logo-box {
  background: #ffffff !important;
  border: none !important;
  border-right: 1.5px solid #e2e8f0 !important;
  border-bottom: none !important;
  box-shadow: none !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
body.dark-skin .main-header .logo-box,
body.dark-skin .main-header div.logo-box {
  background: #0d172e !important;
  border: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* navbar: hanya border-bottom */
.main-header .navbar,
.main-header nav.navbar,
.main-header .navbar.navbar-static-top,
body .main-header .navbar {
  border: none !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}
body.dark-skin .main-header .navbar,
body.dark-skin .main-header nav.navbar {
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #0d172e !important;
}

/* Mobile Header 1-Row Layout */
@media (max-width: 767px) {
  .main-header {
    height: 60px !important;
  }
  .main-header > .logo-box {
    display: none !important;
  }
  .main-header .navbar {
    height: 60px !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 14px !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .main-header .navbar .app-menu {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .main-header .navbar .push-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 9px !important;
    margin: 0 !important;
    box-shadow: 0 2px 6px rgba(21, 101, 192, 0.25) !important;
  }
  .main-header .navbar .push-btn svg,
  .main-header .navbar .push-btn i,
  .main-header .navbar .push-btn [data-feather="menu"] {
    width: 18px !important;
    height: 18px !important;
  }
  .main-header .navbar-custom-menu {
    display: flex !important;
    align-items: center !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .main-header .navbar-custom-menu .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin: 0 !important;
    gap: 8px !important;
  }
  .main-header .navbar-custom-menu .navbar-nav > li {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
  }
  .main-header .navbar-custom-menu .navbar-nav li > a.dropdown-toggle {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Mobile Popup Dropdown Sidebar Modern (Muncul ke bawah seperti popup) */
  .main-sidebar {
    position: fixed !important;
    top: 68px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    width: 260px !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    min-height: auto !important;
    max-height: calc(100vh - 86px) !important;
    margin: 0 !important;
    padding: 8px 4px !important;
    z-index: 1055 !important;
    border-radius: 14px !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-8px) scale(0.97) !important;
    -webkit-transform: translateY(-8px) scale(0.97) !important;
    transform-origin: top left !important;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease !important;
    -webkit-transition: opacity 0.2s ease, -webkit-transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease !important;
  }

  body.dark-skin .main-sidebar,
  .dark .main-sidebar {
    background: #0d172e !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55) !important;
  }

  body.sidebar-open .main-sidebar {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
    -webkit-transform: translateY(0) scale(1) !important;
  }

  /* Backdrop Overlay — klik bebas di luar popup untuk menutup */
  .sidebar-mobile-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    z-index: 1045 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
  }

  body.sidebar-open .sidebar-mobile-backdrop {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Styling item menu di dalam popup dropdown mobile */
  .main-sidebar .sidebar-menu {
    padding: 2px 4px 6px 4px !important;
    margin: 0 !important;
  }
  .main-sidebar .sidebar-menu > li {
    margin-bottom: 2px !important;
  }
  .main-sidebar .sidebar-menu > li > a {
    padding: 8px 12px !important;
    border-radius: 9px !important;
    font-size: 0.88rem !important;
  }
  .main-sidebar .sidebar-menu > li.header {
    padding: 10px 12px 4px 12px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
  }
  .main-sidebar .sidebar-menu > li.active > a {
    background: rgba(37, 99, 235, 0.22) !important;
    color: #60a5fa !important;
    font-weight: 700 !important;
    border-left: 4px solid #2563eb !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }
  .main-sidebar .sidebar-menu > li.active > a i,
  .main-sidebar .sidebar-menu > li.active > a svg {
    color: #60a5fa !important;
    stroke: #60a5fa !important;
  }

  /* Content Header Action Buttons di Mobile (Teks tidak wrap ke bawah & lebar dinamis) */
  .content-header .d-flex.align-items-center {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .btn-tahun-ajaran {
    white-space: nowrap !important;
    width: auto !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
    padding: 7px 12px !important;
    font-size: 0.82rem !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  .content-header .btn {
    white-space: nowrap !important;
    width: auto !important;
    flex-shrink: 0 !important;
    padding: 7px 14px !important;
    font-size: 0.82rem !important;
  }

  body.sidebar-open {
    overflow: hidden !important;
  }
}

/* sidebar: background sama dengan logo-box di atas, hanya border-right */
.main-sidebar,
body .main-sidebar,
body:not(.dark-skin) .main-sidebar,
body.light-skin .main-sidebar {
  background: #ffffff !important;
  border: none !important;
  border-right: 1.5px solid #e2e8f0 !important;
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.03) !important;
}
body.dark-skin .main-sidebar {
  background: #0d172e !important;
  border: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

/* sidebar-menu: tidak ada border-top */
.main-sidebar .sidebar > ul,
.main-sidebar section.sidebar > ul,
.main-sidebar .sidebar-menu,
.main-sidebar ul.sidebar-menu {
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 8px !important;
}

/* === FINAL TYPOGRAPHY & ICON CONSISTENCY ===
   Semua icon feather di sidebar HARUS 18x18 seragam,
   font label konsisten, tidak peduli icon apa yang dipakai */

.main-sidebar .sidebar-menu > li > a {
  display: flex !important;
  align-items: center !important;
  padding: 10px 16px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

/* Target semua kemungkinan: i tag, svg hasil feather.replace(), dan svg langsung */
.main-sidebar .sidebar-menu > li > a > i,
.main-sidebar .sidebar-menu > li > a > svg,
.main-sidebar .sidebar-menu > li > a i[data-feather],
.main-sidebar .sidebar-menu > li > a svg[class*="feather"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
  margin: 0 12px 0 0 !important;
  float: none !important;
  vertical-align: middle !important;
}

.main-sidebar .sidebar-menu > li > a > span {
  display: inline !important;
  vertical-align: middle !important;
  line-height: 1.2 !important;
  font-size: 0.92rem !important;
  font-weight: inherit !important;
}

/* ==========================================================================
   REKAP PAGE STYLING (guru-proto-card, buttons, tabs)
   ========================================================================== */

/* 1. Stat Cards */
.guru-proto-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.2s ease;
}
body.dark-skin .guru-proto-card {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Orange Card Variant (Legacy, can be removed but kept for safety) */
.guru-card-orange {
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  transition: all 0.2s ease;
}
body.dark-skin .guru-card-orange {
  background: #1e293b !important;
  border: 1px solid rgba(234, 88, 12, 0.5) !important;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.05) !important;
}

/* 3D Glow Stat Cards */
.guru-stat-card {
  background: #ffffff !important;
  border: 1px solid var(--card-glow-color, #e2e8f0) !important;
  box-shadow: 0 8px 24px var(--card-glow-shadow, rgba(0,0,0,0.05)), inset 0 2px 4px rgba(255,255,255,0.4) !important;
  transition: all 0.3s ease;
}
.guru-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--card-glow-shadow, rgba(0,0,0,0.08)), inset 0 2px 4px rgba(255,255,255,0.6) !important;
}
body.dark-skin .guru-stat-card {
  background: #1e293b !important;
  border: 1px solid var(--card-glow-color, rgba(255, 255, 255, 0.15)) !important;
  box-shadow: 0 8px 24px var(--card-glow-shadow-dark, rgba(0,0,0,0.2)), inset 0 1px 1px rgba(255,255,255,0.05) !important;
}
body.dark-skin .guru-stat-card:hover {
  box-shadow: 0 12px 28px var(--card-glow-shadow-dark, rgba(0,0,0,0.3)), inset 0 1px 1px rgba(255,255,255,0.1) !important;
}

/* Card titles/numbers */
body.dark-skin .guru-proto-card-title {
  color: #f8fafc !important;
}
body.dark-skin .guru-proto-card-title[style*="color: #1565C0"],
body.dark-skin .guru-proto-card-title[style*="color:#1565C0"] {
  color: #60a5fa !important;
}

/* 2. Tabs (Pill Container & Buttons) */
.guru-mode-pill-container {
  background: rgba(15, 23, 42, 0.03) !important;
  border: 1px solid #e2e8f0 !important;
}
body.dark-skin .guru-mode-pill-container {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.guru-mode-btn {
  color: #64748b !important;
  background: transparent !important;
}
.guru-mode-btn.active {
  background: #1565C0 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3) !important;
}

body.dark-skin .guru-mode-btn {
  color: #94a3b8 !important;
}
body.dark-skin .guru-mode-btn.active {
  background: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

/* 3. Action Buttons */
body.dark-skin .btn-smooth-light {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
body.dark-skin .btn-smooth-light:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}
body.dark-skin .btn.btn-sm[style*="background: #1565C0"],
body.dark-skin .btn.btn-sm[style*="background:#1565C0"] {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

/* Text Overrides for Dark Mode */
body.dark-skin .text-muted {
  color: #94a3b8 !important;
}

/* ==========================================================================
   BUTTON SCROLL TO TOP (UNIVERSAL ROUND COMPONENT)
   ========================================================================== */
.btn-scroll-to-top {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #1565C0 !important;
  border: 1px solid rgba(21, 101, 192, 0.16) !important;
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 1060 !important;
  outline: none !important;
  padding: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(16px) scale(0.85) !important;
  -webkit-transform: translateY(16px) scale(0.85) !important;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, visibility 0.25s ease !important;
}

.btn-scroll-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
  -webkit-transform: translateY(0) scale(1) !important;
}

.btn-scroll-to-top:hover {
  background: #1565C0 !important;
  color: #ffffff !important;
  border-color: #1565C0 !important;
  box-shadow: 0 10px 25px rgba(21, 101, 192, 0.38), 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-3px) scale(1.06) !important;
  -webkit-transform: translateY(-3px) scale(1.06) !important;
}

.btn-scroll-to-top:active {
  transform: translateY(0) scale(0.96) !important;
  -webkit-transform: translateY(0) scale(0.96) !important;
}

.btn-scroll-to-top i,
.btn-scroll-to-top svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
  color: currentColor !important;
  transition: transform 0.2s ease !important;
}

.btn-scroll-to-top:hover i,
.btn-scroll-to-top:hover svg {
  transform: translateY(-2px) !important;
}

/* Dark Mode Support untuk Scroll to Top */
body.dark-skin .btn-scroll-to-top,
.dark .btn-scroll-to-top {
  background: #1e293b !important;
  background-color: #1e293b !important;
  color: #60a5fa !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55), 0 0 14px rgba(37, 99, 235, 0.22) !important;
}

body.dark-skin .btn-scroll-to-top:hover,
.dark .btn-scroll-to-top:hover {
  background: #2563eb !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #60a5fa !important;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5), 0 0 20px rgba(37, 99, 235, 0.35) !important;
}

@media (max-width: 767px) {
  .btn-scroll-to-top {
    bottom: 20px !important;
    right: 18px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
}

/* Filter Peran Responsive Grid (Mobile 2x2, Desktop inline flex) */
.filter-peran-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
}

.filter-peran-btn {
  width: 100% !important;
  justify-content: center !important;
  padding: 7px 8px !important;
  font-size: 0.76rem !important;
  white-space: nowrap !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
}

@media (min-width: 768px) {
  .filter-peran-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    width: auto !important;
    gap: 8px !important;
  }
  .filter-peran-btn {
    width: auto !important;
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
  }
}

/* Global Transparent Button Link Fix */
.btn-link,
button.btn-link,
a.btn-link,
body.dark-skin .btn-link,
body.dark-skin button.btn-link,
body.dark-skin a.btn-link,
.dark .btn-link,
.dark button.btn-link,
.dark a.btn-link {
  background-color: transparent !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
