/* =====================================================================
   UIS StaffSite — gaya tambahan di atas template ModernAdmin (panel)
   ===================================================================== */

/* Logo UIS berbentuk persegi, beri sudut membulat agar serasi */
.header-logo img, .sidebar-logo img, .auth-logo img { border-radius: 6px; object-fit: cover; }

/* Avatar berisi inisial (kalau dosen belum upload foto) */
.avatar-initial {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-color); color: #fff; font-weight: 600; font-size: 0.95rem;
}
.sidebar-footer-avatar.avatar-initial { width: 36px; height: 36px; flex-shrink: 0; }
.avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; font-size: 1.6rem; }

/* Judul bagian di dalam kartu form */
.form-section-title {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-color); margin: 1.5rem 0 0.75rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}
.form-section-title:first-child { margin-top: 0; }

/* Chip dosen kolaborator */
.tag-picker-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: var(--accent-color); background: color-mix(in srgb, var(--accent-color) 12%, transparent);
  color: var(--accent-color); font-weight: 500; font-size: 0.8rem; padding: 0.35rem 0.4rem 0.35rem 0.65rem;
}
.tag-chip-remove { border: 0; background: transparent; color: inherit; padding: 0 0.15rem; line-height: 1; cursor: pointer; }
.tag-chip-remove:hover { color: var(--danger-color); }

/* Daftar item (persetujuan tag, pendaftar, karya) */
.list-item {
  display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between;
  padding: 1rem 0; border-bottom: 1px solid var(--border-color);
}
.list-item:last-child { border-bottom: 0; }
.list-item-title { font-weight: 600; color: var(--heading-color); margin-bottom: 0.2rem; }
.list-item-meta { font-size: 0.85rem; color: var(--muted-color); }
.list-item-actions { display: flex; gap: 0.4rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

.empty-state { text-align: center; padding: 2rem 1rem; color: var(--muted-color); }
.empty-state i { font-size: 2rem; display: block; margin-bottom: 0.5rem; opacity: 0.6; }

/* Kode SQL & hasil */
.sql-box { font-family: var(--mono-font); font-size: 0.85rem; }
.sql-result code { display: block; white-space: pre-wrap; word-break: break-word; color: var(--muted-color); }

/* Kotak peringatan zona berbahaya */
.card-danger { border-color: var(--danger-color) !important; }
.card-danger .card-header { background: var(--danger-color-light); }

/* Tombol aksi kecil dalam tabel tetap rapi di layar sempit */
.table-actions { display: flex; gap: 0.3rem; justify-content: flex-end; flex-wrap: wrap; }

/* Mata kuliah / pendidikan di Edit Profil */
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--border-color); }
.mini-row:last-child { border-bottom: 0; }

/* Warna badge modul karya */
.badge-modul { background: var(--accent-color); background: color-mix(in srgb, var(--accent-color) 12%, transparent); color: var(--accent-color); font-weight: 500; }

/* simple-datatables menyesuaikan tema */
.datatable-input, .datatable-selector {
  background: var(--input-bg); color: var(--default-color);
  border: 1px solid var(--input-border); border-radius: var(--radius-lg); padding: 0.375rem 0.6rem;
}
.datatable-info { color: var(--muted-color); font-size: 0.85rem; }
.datatable-pagination a, .datatable-pagination button { color: var(--default-color); }
.datatable-pagination .datatable-active a, .datatable-pagination .datatable-active button { background: var(--accent-color); color: #fff; }
.datatable-wrapper .datatable-top, .datatable-wrapper .datatable-bottom { padding: 0.75rem 1rem; }
.datatable-wrapper.no-footer .datatable-container { border-bottom: 0; }
.datatable-table > thead > tr > th { border-bottom: 1px solid var(--border-color); }

/* Logo UIS berwarna: jangan diubah jadi putih seperti logo bawaan template */
.sidebar-logo img, .header-logo img, .auth-logo img,
[data-theme=dark] .sidebar-logo img, [data-theme=dark] .header-logo img, [data-theme=dark] .auth-logo img { filter: none !important; }
.sidebar-logo img { height: 30px; background: #fff; padding: 2px; }
.header-logo img { height: 30px; }

/* Avatar inisial di tombol profil header */
.user-dropdown .avatar-initial { width: 100%; height: 100%; display: flex !important; align-items: center; justify-content: center; }

/* Judul halaman + tombol aksi sejajar di kanan */
.page-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; }
.page-header-right { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Halaman login: panel biru setinggi layar & judul putih */
.auth-layout-split { align-items: stretch; }
.auth-brand-side { min-height: 100vh; }
.auth-brand-title { color: #fff; }
.laporan-table th { white-space: nowrap; font-size: .8rem; } .laporan-table td { font-size: .85rem; }

/* Badge jumlah di tab aktif tetap terbaca */
.nav-pills .nav-link.active .badge { background: rgba(255,255,255,.9) !important; color: var(--accent-color) !important; }
.validasi-item { background: var(--surface-color); }
.cek-otomatis > div { margin-bottom: 2px; }

/* ===== Warna seri grafik dashboard (urutan tetap per modul; tervalidasi buta warna) ===== */
:root {
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a;
  --series-4: #eda100; --series-5: #e87ba4; --series-6: #008300;
  --chart-surface: #ffffff;
}
[data-theme="dark"] {
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70;
  --series-4: #c98500; --series-5: #d55181; --series-6: #0ca30c;
  --chart-surface: #1e293b;
}
.chart-box { position: relative; height: 300px; }
.chart-box.tall { height: 360px; }
.kpi-sub { font-size: .8rem; color: var(--muted-color, #64748b); margin-top: 2px; }
.dash-filter .form-select, .dash-filter .form-control { min-width: 120px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.bar-mini { height: 6px; border-radius: 3px; background: var(--border-color, #e2e8f0); overflow: hidden; }
.bar-mini > span { display: block; height: 100%; background: var(--series-1); border-radius: 3px; }
