/* ================================================================
   assets/css/app.css — Portal Nilai MTs Salafiyah Al Muttaqin
   Premium Design System v2.0
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Brand palette — emerald Islamic green */
  --c-primary:        #065f46;
  --c-primary-hover:  #047857;
  --c-primary-light:  #ecfdf5;
  --c-primary-mid:    #a7f3d0;
  --c-secondary:      #0d9488;
  --c-accent:         #d97706;
  --c-accent-light:   #fef3c7;

  /* Neutrals */
  --c-dark:           #0f172a;
  --c-slate:          #334155;
  --c-muted:          #64748b;
  --c-border:         #e2e8f0;
  --c-bg:             #f1f5f9;
  --c-surface:        #ffffff;

  /* Layout */
  --sidebar-w:        264px;
  --header-h:         64px;

  /* Shadows */
  --shadow-xs:  0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-sm:  0 1px 3px 0 rgba(0,0,0,.07), 0 1px 2px -1px rgba(0,0,0,.05);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,.10), 0 8px 10px -6px rgba(0,0,0,.08);

  /* Radii */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 24px;
  --r-full: 9999px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--c-bg);
  color: var(--c-slate);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  font-size: 0.9375rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--c-dark);
  letter-spacing: -0.025em;
  margin-bottom: 0;
}

a { color: var(--c-primary); transition: color .15s; }
a:hover { color: var(--c-primary-hover); }

/* ─── Utility ───────────────────────────────────────────────── */
.text-primary    { color: var(--c-primary) !important; }
.text-accent     { color: var(--c-accent) !important; }
.text-muted      { color: var(--c-muted) !important; }
.bg-primary-soft { background: var(--c-primary-light) !important; }
.bg-brand-gradient {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #0d9488 100%);
}
.bg-emerald-subtle {
  background-color: var(--c-primary-light) !important;
  color: var(--c-primary) !important;
  border: 1px solid var(--c-primary-mid);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  border-radius: var(--r-sm);
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  transition: all .18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-primary {
  background-color: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(6,95,70,.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-primary {
  color: var(--c-primary);
  border-color: var(--c-primary-mid);
}
.btn-outline-primary:hover {
  background-color: var(--c-primary-light);
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.btn-outline-secondary {
  color: var(--c-muted);
  border-color: var(--c-border);
}
.btn-outline-secondary:hover {
  background-color: var(--c-bg);
  border-color: #cbd5e1;
  color: var(--c-slate);
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  background: var(--c-surface);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--c-border);
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-dark);
}
.card-body { padding: 1.25rem; }

/* ─── Stat Cards ────────────────────────────────────────────── */
.stat-card {
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  transition: all .22s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  opacity: 0;
  transition: opacity .22s;
}
.stat-card:hover::before { opacity: 1; }
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.stat-card .stat-val {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--c-dark);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.stat-card .stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Tables ────────────────────────────────────────────────── */
.table-custom { margin-bottom: 0; }
.table-custom thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--c-border);
  border-top: none;
  white-space: nowrap;
}
.table-custom tbody td {
  padding: 0.8rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  color: var(--c-slate);
}
.table-custom tbody tr:last-child td { border-bottom: none; }
.table-hover tbody tr:hover { background-color: #f8fafc; }

/* ─── Badges ────────────────────────────────────────────────── */
.badge {
  font-weight: 600;
  padding: 0.35em 0.75em;
  border-radius: 6px;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
}
.badge-tuntas {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.badge-remidi {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.badge-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* ─── Form Controls ─────────────────────────────────────────── */
.form-control, .form-select {
  border-color: var(--c-border);
  border-radius: var(--r-sm);
  padding: 0.55rem 0.875rem;
  font-size: 0.875rem;
  color: var(--c-dark);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(6,95,70,.12);
  outline: none;
}
.input-group-text {
  background: #f8fafc;
  border-color: var(--c-border);
  color: var(--c-muted);
  font-size: 0.9rem;
}
.form-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--c-slate);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── ╔═══════════════════════════════════════╗
       ║        HALAMAN LOGIN                  ║
       ╚═══════════════════════════════════════╝ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* Panel kiri — visual branding */
.login-panel-left {
  flex: 0 0 42%;
  background: linear-gradient(160deg, #022c22 0%, #064e3b 35%, #065f46 65%, #0d9488 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.login-panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6,95,70,.6) 0%, transparent 50%);
}
.login-panel-left::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(13,148,136,.18);
  pointer-events: none;
}
.login-brand-logo {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  object-fit: cover;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}
.login-panel-left h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
}
.login-panel-left p {
  color: rgba(255,255,255,.65);
  font-size: 0.875rem;
  text-align: center;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}
.login-panel-left .divider-line {
  width: 48px; height: 3px;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  margin: 1.25rem auto;
  position: relative;
  z-index: 1;
}
.login-panel-left .feature-list {
  list-style: none;
  padding: 0; margin: 0;
  position: relative;
  z-index: 1;
  width: 100%;
}
.login-panel-left .feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,.8);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.login-panel-left .feature-list li:last-child { border-bottom: none; }
.login-panel-left .feature-list li i {
  color: #6ee7b7;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Panel kanan — form */
.login-panel-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  padding: 2rem;
  min-height: 100vh;
}
.login-form-box {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226,232,240,.8);
  padding: 2.5rem 2.5rem;
}
.login-form-box .form-header {
  margin-bottom: 2rem;
}
.login-form-box .form-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-dark);
  letter-spacing: -0.03em;
}
.login-form-box .form-header p {
  color: var(--c-muted);
  font-size: 0.875rem;
  margin-top: 0.3rem;
}

/* Tab toggle */
.login-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--r-md);
  padding: 5px;
  margin-bottom: 1.75rem;
  gap: 4px;
}
.login-tabs .tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: var(--r-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-muted);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
}
.login-tabs .tab-btn:hover { color: var(--c-slate); }
.login-tabs .tab-btn.active {
  background: #ffffff;
  color: var(--c-primary);
  box-shadow: var(--shadow-sm);
}

/* Input Groups — login page */
.login-input-group {
  position: relative;
  margin-bottom: 1.1rem;
}
.login-input-group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--c-slate);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.login-input-wrap {
  position: relative;
}
.login-input-wrap .icon-left {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-muted);
  font-size: 1rem;
  pointer-events: none;
}
.login-input-wrap input {
  width: 100%;
  padding: 0.65rem 2.75rem 0.65rem 2.5rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  color: var(--c-dark);
  font-family: inherit;
  background: #f8fafc;
  transition: border-color .18s, box-shadow .18s, background .18s;
  outline: none;
}
.login-input-wrap input:focus {
  border-color: var(--c-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(6,95,70,.1);
}
.login-input-wrap input::placeholder { color: #94a3b8; }
.toggle-pass-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--c-muted);
  cursor: pointer;
  padding: 0.2rem;
  font-size: 1rem;
  transition: color .15s;
}
.toggle-pass-btn:hover { color: var(--c-slate); }

/* Submit button */
.login-submit-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  border: none;
  border-radius: var(--r-sm);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all .2s;
  box-shadow: 0 4px 15px rgba(6,95,70,.25);
}
.login-submit-btn:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6,95,70,.35);
}
.login-submit-btn:active { transform: translateY(0); }

/* Alert */
.login-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* Helper text bawah form */
.login-footer-info {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}
.login-footer-info a {
  font-size: 0.8rem;
  color: var(--c-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.login-footer-info a:hover { color: var(--c-primary); }
.login-hint {
  font-size: 0.7rem;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px dashed var(--c-border);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.75rem;
  margin-top: 1rem;
  text-align: center;
  line-height: 1.6;
}
.login-hint code {
  background: var(--c-primary-light);
  color: var(--c-primary);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.72rem;
}

/* Responsive — stack on mobile */
@media (max-width: 767.98px) {
  .login-panel-left { display: none; }
  .login-panel-right { padding: 1rem; min-height: 100vh; }
  .login-form-box { padding: 1.75rem 1.25rem; }
}

/* ─── ╔═══════════════════════════════════════╗
       ║        APP LAYOUT (Sidebar)           ║
       ╚═══════════════════════════════════════╝ */

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
  width: var(--sidebar-w);
  background: #ffffff;
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1020;
  transition: left .25s ease;
}
.sidebar-brand {
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-brand img {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--c-primary-mid);
  object-fit: cover;
}
.sidebar-brand-text .sb-title {
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--c-dark);
  line-height: 1.2;
}
.sidebar-brand-text .sb-sub {
  font-size: 0.68rem;
  color: var(--c-muted);
  font-weight: 500;
}

.sidebar-nav {
  padding: 0.875rem 0.75rem;
  overflow-y: auto;
  flex-grow: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}
.nav-section-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #94a3b8;
  padding: 0.75rem 0.75rem 0.3rem;
}
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.85rem;
  color: #475569;
  font-weight: 600;
  font-size: 0.855rem;
  border-radius: var(--r-sm);
  margin-bottom: 2px;
  transition: all .15s ease;
  text-decoration: none;
}
.sidebar-nav .nav-link i {
  font-size: 1.1rem;
  color: #94a3b8;
  transition: color .15s;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.sidebar-nav .nav-link:hover {
  background: #f1f5f9;
  color: var(--c-dark);
}
.sidebar-nav .nav-link:hover i { color: var(--c-slate); }
.sidebar-nav .nav-link.active {
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-weight: 700;
}
.sidebar-nav .nav-link.active i { color: var(--c-primary); }

.sidebar-footer {
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--c-border);
}

/* Main content area */
.app-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--c-bg);
}
.app-header {
  height: var(--header-h);
  background: #ffffff;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1010;
  box-shadow: var(--shadow-xs);
}
.app-content {
  padding: 1.5rem;
  flex-grow: 1;
}

/* User dropdown pill */
.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  background: #f8fafc;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background .15s;
}
.user-dropdown-btn:hover { background: #f1f5f9; }
.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
}

/* ─── Page Title Bar ────────────────────────────────────────── */
.page-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.page-title-bar h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-title-bar .breadcrumb {
  margin: 0;
  font-size: 0.78rem;
}
.breadcrumb-item + .breadcrumb-item::before { color: #cbd5e1; }

/* ─── Pagination ────────────────────────────────────────────── */
.pagination .page-link {
  border-radius: var(--r-sm) !important;
  border-color: var(--c-border);
  color: var(--c-slate);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 0.7rem;
  margin: 0 2px;
  transition: all .15s;
}
.pagination .page-link:hover {
  background: var(--c-primary-light);
  border-color: var(--c-primary-mid);
  color: var(--c-primary);
}
.pagination .page-item.active .page-link {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

/* ─── Nilai / Score Colors ──────────────────────────────────── */
.score-a { color: #059669; font-weight: 800; }
.score-b { color: #2563eb; font-weight: 700; }
.score-c { color: #d97706; font-weight: 700; }
.score-d { color: #dc2626; font-weight: 700; }

/* ─── Progress Bar ──────────────────────────────────────────── */
.progress { border-radius: var(--r-full); height: 6px; background: #e2e8f0; }
.progress-bar { background: linear-gradient(90deg, var(--c-primary), var(--c-secondary)); }

/* ─── Alerts ────────────────────────────────────────────────── */
.alert {
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
}

/* ─── Responsive Sidebar ────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  z-index: 1015;
  backdrop-filter: blur(2px);
}
@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    left: calc(-1 * var(--sidebar-w));
    height: 100%;
  }
  .app-sidebar.show {
    left: 0;
    box-shadow: var(--shadow-xl);
  }
  .sidebar-overlay.show { display: block; }
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeInUp .35s ease both; }
.animate-delay-1 { animation-delay: .08s; }
.animate-delay-2 { animation-delay: .16s; }
.animate-delay-3 { animation-delay: .24s; }

/* ─── Misc Helpers ──────────────────────────────────────────── */
.rounded-xl { border-radius: var(--r-xl) !important; }
.rounded-2xl { border-radius: var(--r-2xl) !important; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.shadow-brand { box-shadow: 0 4px 16px rgba(6,95,70,.2); }

/* ─── Theme & Dark Mode Styles ──────────────────────────────── */
body.tema-dark {
  --c-bg: #0b0f19;
  --c-surface: #131b2e;
  --c-slate: #cbd5e1;
  --c-dark: #f8fafc;
  --c-muted: #94a3b8;
  --c-border: #1e293b;
  background-color: var(--c-bg) !important;
  color: var(--c-slate) !important;
}

body.tema-dark .card,
body.tema-dark .app-header,
body.tema-dark .modal-content {
  background-color: var(--c-surface) !important;
  border-color: var(--c-border) !important;
  color: var(--c-slate);
}

body.tema-dark .card-header,
body.tema-dark .modal-header,
body.tema-dark .modal-footer {
  background-color: rgba(30, 41, 59, 0.5) !important;
  border-color: var(--c-border) !important;
}

body.tema-dark .table {
  color: var(--c-slate) !important;
  border-color: var(--c-border) !important;
}

body.tema-dark .table-hover > tbody > tr:hover > * {
  background-color: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
}

body.tema-dark .form-control,
body.tema-dark .form-select {
  background-color: #0f172a !important;
  border-color: var(--c-border) !important;
  color: #f8fafc !important;
}

body.tema-dark .form-control:focus,
body.tema-dark .form-select:focus {
  border-color: var(--c-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(6, 95, 70, 0.25) !important;
}

body.tema-dark .nav-tabs .nav-link {
  color: var(--c-muted);
}

body.tema-dark .nav-tabs .nav-link.active {
  background-color: var(--c-surface) !important;
  border-color: var(--c-border) var(--c-border) transparent !important;
  color: #38bdf8 !important;
}

body.tema-dark .text-dark {
  color: #f8fafc !important;
}

