/* ==========================================================================
   IMBAR (Intensif Mahir Bahasa Arab) - STDIIS Jember
   SISITA M4 Layout with IMBAR Brand Identity
   Colors:
     - Primary Navy: #201E43
     - Secondary Ocean: #134B70
     - Accent Teal: #508C9B
     - Warm Cream: #FAF8F1
     - Gold Accent: #D4A340
     - Functional Sisita: #1E7E34 (Success), #DC3545 (Danger), #17A2B8 (Info)
   ========================================================================== */

:root {
  --color-primary-navy: #201E43;
  --color-navy-dark: #151330;
  --color-ocean: #134B70;
  --color-ocean-light: #1c6291;
  --color-teal: #508C9B;
  --color-teal-light: #6aa3b1;
  --color-cream: #FAF8F1;
  --color-cream-dark: #F0EDE2;
  --color-gold: #D4A340;
  --color-gold-hover: #b88a2e;

  /* Sisita Authentic Functional Colors */
  --sisita-green: #2B7A4B;
  --sisita-green-dark: #1E5B37;
  --sisita-green-light: #E8F5E9;
  --sisita-danger: #DC3545;
  --sisita-info: #17A2B8;
  --sisita-warning: #FFC107;
  --sisita-secondary: #6C757D;
  --sisita-bg-gray: #F4F6F9;
  --sisita-border: #DDE2E5;
  --sisita-card-header: #FFFFFF;
  --sisita-text-dark: #212529;
  --sisita-text-muted: #6C757D;

  /* Status Colors */
  --status-hadir: #1E7E34;
  --status-alpa: #DC3545;
  --status-ijin: #D4A340;
  --status-sakit: #17A2B8;

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--sisita-bg-gray);
  color: var(--sisita-text-dark);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header Navbar (Sisita M4 Style in IMBAR Brand)
   ========================================================================== */
.sisita-navbar {
  background: linear-gradient(135deg, var(--color-primary-navy) 0%, var(--color-ocean) 100%);
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(32, 30, 67, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--color-gold);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-menu {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.btn-menu:hover {
  background: rgba(255, 255, 255, 0.15);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.brand-emblem {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 0 8px rgba(212, 163, 64, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  font-size: 19px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.2px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-title .badge-m4,
.badge-g1,
.brand-title .badge-g1 {
  font-size: 11px;
  background: linear-gradient(135deg, #FFE68C 0%, #D4A340 100%);
  color: #1A1838;
  padding: 1px 7px;
  border-radius: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.8px;
  box-shadow: 0 1px 4px rgba(212, 163, 64, 0.4);
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-icon {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s;
}

.btn-nav-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   Page Container & Breadcrumbs
   ========================================================================== */
.main-wrapper {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 16px 40px;
}

.page-header-banner {
  margin-bottom: 12px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary-navy);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.page-title i, .page-title svg {
  color: var(--color-ocean);
  font-size: 22px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--sisita-text-muted);
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--color-ocean);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-nav .separator {
  color: #999;
}

.breadcrumb-nav .current {
  color: var(--sisita-text-muted);
  font-weight: 500;
}

/* Lecturer Switcher Banner */
.lecturer-banner {
  background: #ffffff;
  border: 1px solid var(--sisita-border);
  border-left: 4px solid var(--color-ocean);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.lecturer-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lecturer-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-cream-dark);
  color: var(--color-ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}

.lecturer-title-text {
  font-weight: 700;
  color: var(--color-primary-navy);
  font-size: 13.5px;
}

.lecturer-role-text {
  font-size: 11.5px;
  color: var(--sisita-text-muted);
}

.btn-switch-lecturer {
  background: var(--color-cream);
  border: 1px solid var(--color-gold);
  color: var(--color-primary-navy);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-switch-lecturer:hover {
  background: var(--color-gold);
  color: #ffffff;
}

/* ==========================================================================
   Tabs: Dosen Pertama & Dosen Kedua (Sisita Style)
   ========================================================================== */
.sisita-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.tab-btn {
  padding: 8px 18px;
  border: 1px solid var(--color-ocean);
  background: #ffffff;
  color: var(--color-ocean);
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--color-ocean);
  color: #ffffff;
  border-color: var(--color-ocean);
  box-shadow: 0 2px 4px rgba(19, 75, 112, 0.25);
}

.tab-btn:hover:not(.active) {
  background: rgba(19, 75, 112, 0.08);
}

/* ==========================================================================
   Card Component (Sisita Style)
   ========================================================================== */
.sisita-card {
  background: #ffffff;
  border: 1px solid var(--sisita-border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
  overflow: hidden;
}

.card-title-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--sisita-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.card-title-header h2, .card-title-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary-navy);
  margin: 0;
}

.card-actions-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 14px 16px;
}

/* Table Controls: Pagination & Exports & Search */
.table-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.entries-select-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--sisita-text-dark);
}

.entries-select-group select {
  padding: 4px 8px;
  border: 1px solid var(--sisita-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 13px;
}

.export-btn-group {
  display: flex;
  gap: 2px;
}

.btn-export {
  background: var(--sisita-secondary);
  color: #ffffff;
  border: 1px solid #5a6268;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-export:first-child {
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}

.btn-export:last-child {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

.btn-export:hover {
  background: #545b62;
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.search-input-group input {
  padding: 5px 10px;
  border: 1px solid var(--sisita-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  width: 150px;
  outline: none;
  transition: border 0.2s;
}

.search-input-group input:focus {
  border-color: var(--color-ocean);
  box-shadow: 0 0 0 2px rgba(19, 75, 112, 0.15);
}

/* ==========================================================================
   Table Styles (Sisita Authentic Table)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sisita-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.sisita-table th {
  background-color: #FAFCFA;
  color: var(--color-primary-navy);
  font-weight: 700;
  padding: 10px 12px;
  border: 1px solid var(--sisita-border);
  white-space: nowrap;
}

.sisita-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.sisita-table th.sortable:hover {
  background-color: #EBF2ED;
}

.sisita-table th.sortable .sort-arrow {
  color: #aaa;
  font-size: 11px;
  margin-left: 4px;
}

.sisita-table td {
  padding: 10px 12px;
  border: 1px solid var(--sisita-border);
  vertical-align: middle;
}

.sisita-table tbody tr:nth-child(even) {
  background-color: #FAFAFB;
}

.sisita-table tbody tr:hover {
  background-color: #F0F6FA;
}

/* Custom Table Content Styling */
.course-link {
  color: var(--color-ocean);
  font-weight: 700;
  text-decoration: none;
  display: block;
}

.course-link:hover {
  text-decoration: underline;
}

.course-subname {
  color: var(--color-primary-navy);
  font-weight: 600;
  margin-top: 2px;
}

.badge-gender {
  display: inline-block;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
  margin-left: 4px;
}

.badge-gender.ikhwan {
  background: #E3F2FD;
  color: #1976D2;
  border: 1px solid #BBDEFB;
}

.badge-gender.akhwat {
  background: #FCE4EC;
  color: #C2185B;
  border: 1px solid #F8BBD0;
}

.timestamp-text {
  color: var(--sisita-green);
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.arabic-text {
  font-family: var(--font-arabic);
  font-size: 16px;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  color: var(--color-primary-navy);
}

.arabic-topic-cell {
  max-width: 260px;
}

.latin-subtopic {
  font-size: 12px;
  color: var(--sisita-text-muted);
  margin-top: 2px;
  direction: ltr;
  text-align: left;
}

/* ==========================================================================
   Action Buttons (Sisita Exact Design)
   ========================================================================== */
.action-btn-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.btn-sisita {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sisita-sm {
  padding: 3px 8px;
  font-size: 11.5px;
}

.btn-sisita-ubah {
  background: transparent;
  color: var(--sisita-green);
  border: 1px solid transparent;
}

.btn-sisita-ubah:hover {
  background: var(--sisita-green-light);
  border-color: var(--sisita-green);
}

.btn-sisita-bikin {
  background: var(--color-primary-navy);
  color: #ffffff;
}

.btn-sisita-bikin:hover {
  background: var(--color-navy-dark);
}

.btn-sisita-sinkron {
  background: #3B82F6;
  color: #ffffff;
}

.btn-sisita-sinkron:hover {
  background: #2563EB;
}

.btn-sisita-hapus {
  background: var(--sisita-danger);
  color: #ffffff;
}

.btn-sisita-hapus:hover {
  background: #c82333;
}

.btn-sisita-green {
  background: var(--sisita-green);
  color: #ffffff;
}

.btn-sisita-green:hover {
  background: var(--sisita-green-dark);
}

.btn-sisita-rekap {
  background: var(--sisita-green-dark);
  color: #ffffff;
}

.btn-sisita-rekap:hover {
  background: #154528;
}

.btn-sisita-orange {
  background: var(--color-gold);
  color: var(--color-primary-navy);
  font-weight: 700;
}

.btn-sisita-orange:hover {
  background: var(--color-gold-hover);
  color: #ffffff;
}

/* ==========================================================================
   Jurnal Detail: Metadata Form (Readonly Fields)
   ========================================================================== */
.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 6px;
}

.form-group-readonly {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group-readonly label {
  font-size: 12px;
  font-weight: 600;
  color: var(--sisita-text-dark);
}

.form-group-readonly .readonly-box {
  background-color: #E9ECEF;
  border: 1px solid #CED4DA;
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 13px;
  color: #495057;
  min-height: 36px;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Presensi Mahasiswa View (Sisita Exact Mobile UI)
   ========================================================================== */
.presensi-filters-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ocean);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-ocean);
  text-decoration: none;
  transition: all 0.15s;
}

.filter-chip.active {
  background-color: #3B82F6;
  color: #ffffff;
}

.filter-chip:hover:not(.active) {
  background-color: rgba(59, 130, 246, 0.1);
}

.filter-separator {
  color: #999;
}

/* Counters Box */
.presensi-summary-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--sisita-border);
  border-radius: var(--radius-sm);
  background: #F8F9FA;
  margin-bottom: 16px;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 600px) {
  .presensi-summary-box {
    grid-template-columns: repeat(5, 1fr);
  }
}

.summary-col {
  padding: 12px 8px;
  border-right: 1px solid var(--sisita-border);
}

.summary-col:last-child {
  border-right: none;
}

.summary-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sisita-text-muted);
  margin-bottom: 4px;
}

.summary-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-navy);
}

.summary-col.hadir .summary-value { color: var(--status-hadir); }
.summary-col.alpa .summary-value { color: var(--status-alpa); }
.summary-col.ijin .summary-value { color: var(--status-ijin); }
.summary-col.sakit .summary-value { color: var(--status-sakit); }

.btn-simpan-status {
  background-color: var(--sisita-green-dark);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(30, 91, 55, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-simpan-status:hover {
  background-color: #16482B;
  transform: translateY(-1px);
}

/* Student Presensi Rows */
.presensi-table-container {
  border: 1px solid var(--sisita-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
}

.student-presensi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--sisita-border);
  transition: background 0.15s;
  gap: 12px;
}

.student-presensi-row:nth-child(even) {
  background-color: #FAFAFA;
}

.student-presensi-row:last-child {
  border-bottom: none;
}

.student-presensi-row:hover {
  background-color: #F1F6F9;
}

.student-info-cell {
  flex: 1;
}

.student-nim-tag {
  font-family: monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-ocean);
  display: inline-block;
  margin-right: 6px;
}

.student-name-text {
  font-weight: 600;
  color: var(--sisita-text-dark);
  font-size: 13.5px;
}

.status-dropdown-trigger {
  min-width: 110px;
  padding: 6px 12px;
  border: 1px solid #3B82F6;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--color-primary-navy);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.status-dropdown-trigger.status-hadir {
  border-color: var(--status-hadir);
  color: var(--status-hadir);
}

.status-dropdown-trigger.status-alpa {
  border-color: var(--status-alpa);
  color: var(--status-alpa);
}

.status-dropdown-trigger.status-ijin {
  border-color: var(--status-ijin);
  color: var(--status-ijin);
}

.status-dropdown-trigger.status-sakit {
  border-color: var(--status-sakit);
  color: var(--status-sakit);
}

/* ==========================================================================
   Mobile Bottom Sheet Picker (Authentic Image #5 Replica)
   ========================================================================== */
.bottom-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.bottom-sheet-backdrop.show {
  display: flex;
  opacity: 1;
}

.bottom-sheet-modal {
  width: 100%;
  max-width: 480px;
  background: #3E3E3E;
  color: #ffffff;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  padding: 16px 20px 28px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-sheet-backdrop.show .bottom-sheet-modal {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: #666;
  border-radius: 2px;
  margin: 0 auto 16px;
}

.bottom-sheet-title {
  font-size: 13px;
  color: #AAA;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #555;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sheet-options-list {
  display: flex;
  flex-direction: column;
}

.sheet-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  border-bottom: 1px solid #4A4A4A;
  transition: background 0.15s;
}

.sheet-option-item:last-child {
  border-bottom: none;
}

.sheet-option-item:hover {
  background: #4C4C4C;
}

.sheet-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #888;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-option-item.selected .sheet-radio-circle {
  border-color: #3B82F6;
  background: #3B82F6;
}

.sheet-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  display: none;
}

.sheet-option-item.selected .sheet-radio-dot {
  display: block;
}

/* ==========================================================================
   Modals: Tambah Pertemuan, Switch Dosen, Info
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  background: var(--color-primary-navy);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  padding: 16px 18px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--sisita-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  background: #F8F9FA;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sisita-text-dark);
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--sisita-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--color-ocean);
  outline: none;
  box-shadow: 0 0 0 2px rgba(19, 75, 112, 0.15);
}

.form-control.arabic {
  font-family: var(--font-arabic);
  font-size: 16px;
  direction: rtl;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--color-primary-navy);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--sisita-green);
  animation: toastIn 0.25s ease-out;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Rekap Matrix View
   ========================================================================== */
.rekap-matrix-table th, .rekap-matrix-table td {
  padding: 6px 8px;
  text-align: center;
  font-size: 11.5px;
}

.rekap-matrix-table th.col-name, .rekap-matrix-table td.col-name {
  text-align: left;
  white-space: nowrap;
}

.st-badge {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: bold;
  font-size: 10px;
}

.st-badge.H { background: var(--sisita-green-light); color: var(--status-hadir); }
.st-badge.A { background: #FFEBEE; color: var(--status-alpa); }
.st-badge.I { background: #FFF8E1; color: var(--status-ijin); }
.st-badge.S { background: #E0F7FA; color: var(--status-sakit); }
.st-badge.none { color: #BBB; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-wrapper {
    padding: 10px 10px 30px;
  }
  .table-controls-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-input-group {
    width: 100%;
  }
  .search-input-group input {
    flex: 1;
    width: auto;
  }
  .page-title {
    font-size: 18px;
  }
}

/* ==========================================================================
   Sidebar Drawer (Sisita M4 Replica Image #1)
   ========================================================================== */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 2500;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.show {
  display: block;
  opacity: 1;
}

.sisita-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 285px;
  max-width: 85vw;
  background-color: #235E34; /* Sisita M4 Forest Green */
  color: #ffffff;
  z-index: 2600;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.sidebar-backdrop.show .sisita-sidebar {
  transform: translateX(0);
}

/* Sidebar User Profile Header (Sisita Image #1 Exact Replica) */
.sidebar-user-header {
  background: #1B4D2A;
  padding: 20px 16px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #508C9B;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sidebar-user-avatar svg {
  width: 28px;
  height: 28px;
}

.sidebar-user-meta {
  flex: 1;
  min-width: 0;
}

.sidebar-username {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-fullname {
  font-size: 12.5px;
  color: #C8E6C9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: underline dotted;
  margin-top: 2px;
}

.sidebar-role-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 8px;
  margin-top: 4px;
}
.sidebar-role-badge.badge-lecturer {
  background: var(--color-gold);
  color: var(--color-primary-navy);
}
.sidebar-role-badge.badge-dev {
  background: #E67E22;
  color: #ffffff;
}
.sidebar-role-badge.badge-guest {
  background: #64748B;
  color: #ffffff;
}

/* Sidebar Menu Navigation */
.sidebar-menu-list {
  list-style: none;
  padding: 10px 0 30px;
  margin: 0;
  flex: 1;
}

.sidebar-menu-item {
  margin-bottom: 1px;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.sidebar-menu-link:hover {
  background: rgba(0, 0, 0, 0.15);
}

.sidebar-menu-link.active {
  background: #184425;
  font-weight: 700;
  border-left: 4px solid var(--color-gold);
}

.sidebar-link-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-link-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.9;
}

.sidebar-chevron {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.sidebar-divider {
  padding: 14px 18px 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #A5D6A7;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  user-select: none;
}

/* ==========================================================================
   Login Screen (Sisita Authentication Layout)
   ========================================================================== */
.login-overlay-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.login-card {
  background: #ffffff;
  border: 1px solid var(--sisita-border);
  border-top: 4px solid var(--color-ocean);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(32, 30, 67, 0.12);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}

.login-header {
  text-align: center;
  padding: 24px 20px 14px;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--sisita-border);
}

.login-logo-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(32, 30, 67, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 4px;
}

.login-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary-navy);
}

.login-subtitle {
  font-size: 12.5px;
  color: var(--sisita-text-muted);
  margin-top: 4px;
}

.login-body {
  padding: 20px 24px 24px;
}

.login-quick-pills {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--sisita-border);
}

.quick-pill-btn {
  display: inline-block;
  padding: 3px 9px;
  margin: 3px 2px;
  border-radius: 12px;
  background: #EBF3F8;
  color: var(--color-ocean);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #C8E0EE;
  cursor: pointer;
  transition: all 0.15s;
}

.quick-pill-btn:hover {
  background: var(--color-ocean);
  color: #ffffff;
}

.quick-pill-btn.dev-pill {
  background: #FDF2E9;
  color: #D35400;
  border-color: #FAD7A0;
}

.quick-pill-btn.dev-pill:hover {
  background: #D35400;
  color: #ffffff;
}

.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 12.5px;
}

.remember-me-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.link-forgot-pass {
  color: var(--color-ocean);
  text-decoration: none;
  font-weight: 600;
}

.link-forgot-pass:hover {
  text-decoration: underline;
}

.btn-login-submit {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
}

.login-meta-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--sisita-border);
  text-align: center;
  font-size: 11.5px;
  color: var(--sisita-text-muted);
}

.meta-footer-bold {
  font-weight: 600;
  color: var(--color-primary-navy);
  margin-top: 2px;
}

/* ==========================================================================
   Setup Wizard Styles (First-Run Admin Creation)
   ========================================================================== */
.setup-wizard-card {
  max-width: 500px;
}

.setup-wizard-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 6px;
}

.setup-wizard-info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #1E40AF;
  margin-bottom: 16px;
  line-height: 1.5;
}

.setup-form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setup-submit-btn {
  width: 100%;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 16px;
}

/* ==========================================================================
   Developer Panel Styles
   ========================================================================== */
.dev-header-strip {
  background: linear-gradient(135deg, #1A252F 0%, #2C3E50 100%);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-left: 5px solid #E67E22;
}

.dev-nav-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--sisita-border);
  margin-bottom: 16px;
}

.dev-tab-btn {
  padding: 9px 18px;
  background: transparent;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sisita-text-muted);
  cursor: pointer;
  position: relative;
  bottom: -2px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.dev-tab-btn.active {
  color: var(--color-ocean);
  border-bottom: 3px solid var(--color-ocean);
}

.dev-tab-btn:hover:not(.active) {
  color: var(--color-primary-navy);
}

.checkbox-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 6px;
  padding: 10px;
  background: #F8F9FA;
  border: 1px solid var(--sisita-border);
  border-radius: var(--radius-sm);
  max-height: 180px;
  overflow-y: auto;
}

.checkbox-class-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
}

/* ==========================================================================
   Sisita M4 Authentic Dashboard Cards (Image #2 Replica)
   ========================================================================== */
.sisita-stat-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--sisita-border);
  margin-bottom: 12px;
  min-height: 84px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sisita-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon-box {
  width: 84px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.stat-icon-box svg {
  width: 38px;
  height: 38px;
}

.stat-icon-box.red { background-color: #D9534F; }
.stat-icon-box.teal { background-color: #2E8B75; }
.stat-icon-box.blue { background-color: #3498DB; }
.stat-icon-box.yellow { background-color: #F0AD4E; }

.stat-icon-circle-white {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #D9534F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
}

.stat-info-box {
  padding: 12px 16px;
  flex: 1;
  min-width: 0;
}

.stat-title-large {
  font-size: 15px;
  font-weight: 800;
  color: #212529;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.stat-value-large {
  font-size: 26px;
  font-weight: 800;
  color: #212529;
  line-height: 1.1;
  margin-bottom: 3px;
}

.stat-label-dotted {
  font-size: 13px;
  color: #495057;
  font-weight: 600;
  text-decoration: underline dotted;
}

.sisita-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

@media (min-width: 640px) {
  .sisita-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .sisita-dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   Crispy Interactive UI Effects & Micro-Interactions (Haptic Feeling)
   ========================================================================== */
button, 
.btn-sisita, 
.btn-export, 
.tab-btn, 
.dev-tab-btn, 
.filter-chip, 
.status-dropdown-trigger, 
.quick-pill-btn, 
.btn-nav-icon, 
.btn-menu, 
.sheet-option-item {
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.12s ease, background 0.15s ease !important;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

button:active, 
.btn-sisita:active, 
.btn-export:active, 
.tab-btn:active, 
.dev-tab-btn:active,
.filter-chip:active, 
.status-dropdown-trigger:active, 
.quick-pill-btn:active,
.btn-nav-icon:active, 
.btn-menu:active {
  transform: scale(0.92) translateY(1.5px) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

/* Subtle Shake Animation for Errors / Alerts / Deletes */
@keyframes subtle-shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px) rotate(-0.5deg); }
  40% { transform: translateX(4px) rotate(0.5deg); }
  60% { transform: translateX(-3px) rotate(-0.2deg); }
  80% { transform: translateX(3px) rotate(0.2deg); }
  100% { transform: translateX(0) rotate(0); }
}

.subtle-shake {
  animation: subtle-shake 0.32s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
}

/* Crisp Pop Animation on Tap */
@keyframes crisp-pop {
  0% { transform: scale(0.93); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.crisp-pop {
  animation: crisp-pop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

/* Visual Touch Pulse Ripple */
@keyframes click-pulse {
  0% { box-shadow: 0 0 0 0 rgba(19, 75, 112, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(19, 75, 112, 0); }
  100% { box-shadow: 0 0 0 0 rgba(19, 75, 112, 0); }
}

.click-pulse {
  animation: click-pulse 0.28s ease-out;
}

/* Crispy Feedback on Focus */
input:focus, select:focus, textarea:focus {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 0 3px rgba(19, 75, 112, 0.2) !important;
}

/* ==========================================================================
   Capacity Guard & Bulk Enrollment Styles
   ========================================================================== */
.capacity-guard-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.capacity-bar-container {
  width: 100%;
  min-width: 90px;
  max-width: 140px;
  height: 7px;
  background: #EAECEE;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #D5D8DC;
  position: relative;
}

.capacity-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.capacity-bar-fill.available {
  background-color: #27AE60;
}

.capacity-bar-fill.warning {
  background-color: #E67E22;
}

.capacity-bar-fill.full {
  background-color: #C0392B;
}

.capacity-bar-fill.overload {
  background: repeating-linear-gradient(
    45deg,
    #922B21,
    #922B21 6px,
    #E74C3C 6px,
    #E74C3C 12px
  );
}

.badge-capacity {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1.2;
  width: fit-content;
}

.badge-capacity-available {
  background: #E8F8F5;
  color: #117A65;
  border: 1px solid #A3E4D7;
}

.badge-capacity-warning {
  background: #FEF9E7;
  color: #B7950B;
  border: 1px solid #F9E79F;
}

.badge-capacity-full {
  background: #FDEDEC;
  color: #C0392B;
  border: 1px solid #F5B7B1;
}

.badge-capacity-overload {
  background: #78281F;
  color: #FFFFFF;
  border: 1px solid #641E16;
  animation: pulse-overload 1.4s infinite;
}

@keyframes pulse-overload {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.bulk-action-bar {
  background: #F0F4F8;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(19, 75, 112, 0.08);
}

.bulk-action-title {
  font-weight: 700;
  color: #134B70;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.bulk-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Enrollment Verification & Row Highlighting
   ========================================================================== */
.badge-enroll-complete {
  background: #E8F8F5;
  color: #117A65;
  border: 1px solid #A3E4D7;
}

.badge-enroll-partial {
  background: #FEF9E7;
  color: #B7950B;
  border: 1px solid #F9E79F;
  animation: pulse-partial 2.5s infinite ease-in-out;
}

.badge-enroll-unassigned {
  background: #FDEDEC;
  color: #C0392B;
  border: 1px solid #F5B7B1;
  font-weight: 800;
}

.badge-enroll-extra {
  background: #EBF5FB;
  color: #2980B9;
  border: 1px solid #AED6F1;
}

@keyframes pulse-partial {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.row-enroll-complete {
  border-left: 4px solid #27AE60 !important;
}

.row-enroll-partial {
  background-color: #FEF9E7 !important;
  border-left: 4px solid #F39C12 !important;
}

.row-enroll-unassigned {
  background-color: #FDEDEC !important;
  border-left: 4px solid #E74C3C !important;
}

/* ==========================================================================
   SIAMBA G1 - Utility & Semantic Component Classes
   (Pemisahan Struktur dan Gaya, Class Tunggal & Pewarisan Kaskade)
   ========================================================================== */

/* Typography Utilities */
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.font-normal { font-weight: 400; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: #ffffff; }
.text-navy { color: var(--color-primary-navy); }
.text-ocean { color: var(--color-ocean); }
.text-muted { color: var(--sisita-text-muted); }
.text-danger { color: var(--sisita-danger); }
.text-success { color: var(--sisita-green); }
.text-gold { color: var(--color-gold); }
.text-navy-bold { font-weight: 700; color: #0D47A1; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }

/* Display & Visibility */
.hidden { display: none !important; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

/* Flexbox Layouts */
.flex-row { display: flex; flex-direction: row; }
.flex-column { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-align-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

/* Modal Sizes & Structure */
.modal-dialog-xs { max-width: 360px; width: 95vw; }
.modal-dialog-sm { max-width: 420px; width: 95vw; }
.modal-dialog-md { max-width: 480px; width: 95vw; }
.modal-dialog-lg { max-width: 580px; width: 95vw; }
.modal-dialog-xl { max-width: 820px; width: 95vw; }
.modal-dialog-full { max-width: 1080px; width: 95vw; }
.modal-scrollable-body {
  font-size: 12.5px;
  line-height: 1.5;
  padding: 18px 20px;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-title-navy {
  color: var(--color-primary-navy);
  margin-bottom: 6px;
  font-weight: 700;
}
.modal-desc-muted {
  font-size: 12.5px;
  color: var(--sisita-text-muted);
  margin-bottom: 12px;
}

/* Button Semantic Variants */
.btn-sisita-cancel,
.btn-sisita-light {
  background: #E0E0E0;
  color: #333333;
}
.btn-sisita-cancel:hover,
.btn-sisita-light:hover {
  background: #D0D0D0;
  color: #111111;
}
.btn-sisita-return-home {
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 4px 10px;
  margin-right: 6px;
}
.btn-sisita-return-home:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* Background Semantic Utilities */
.bg-brand-gradient {
  background: linear-gradient(135deg, var(--color-ocean) 0%, var(--color-primary-navy) 100%);
}
.bg-blue-gradient {
  background: linear-gradient(135deg, #0D47A1 0%, #1976D2 100%);
}
.bg-warning-light {
  background: #FFFDE7;
}
.bg-success-light {
  background: #E8F5E9;
}
.bg-danger-light {
  background: #FDEDEC;
}
.bg-info-light {
  background: #EBF5FB;
}
.bg-muted-light {
  background: #F8F9FA;
}

/* Component Helpers */
.sync-indicator-box {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  margin-right: 6px;
  background: rgba(0, 0, 0, 0.22);
  color: #ffffff;
  cursor: pointer;
}
.sync-dot-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F1C40F;
  display: inline-block;
}
.sidebar-link-dev {
  background: rgba(230, 126, 34, 0.2);
  border-left: 3px solid #E67E22;
}
.sidebar-link-dev .sidebar-link-icon {
  color: #F39C12;
}
.sidebar-link-dev .sidebar-link-text {
  font-weight: 700;
  color: #FFE68C;
}
.sidebar-link-logout {
  color: #FFCDD2;
}
.sidebar-link-logout .sidebar-link-icon {
  color: #EF5350;
}
.close-btn-ghost {
  background: none;
  border: none;
  color: #AAAAAA;
  font-size: 16px;
  cursor: pointer;
}
.close-btn-ghost:hover {
  color: #FFFFFF;
}
.scrollable-box {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--sisita-border);
  border-radius: var(--radius-md);
}
.sticky-header {
  position: sticky;
  top: 0;
  background: #F1F5F9;
  z-index: 1;
}

/* ==========================================================================
   Modal Kalender Akademik - Pas Ukuran Dialog (Fit Viewport)
   ========================================================================== */
.kaldik-modal-dialog {
  max-width: 880px;
  width: 95vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.kaldik-modal-body {
  max-height: calc(92vh - 60px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
}

.kaldik-poster-viewport {
  background: #0f172a;
  border: 1px solid var(--sisita-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: calc(82vh - 160px);
  min-height: 280px;
  overflow: hidden;
}

.kaldik-poster-fit-img {
  max-width: 100%;
  max-height: calc(82vh - 184px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  display: block;
  margin: 0 auto;
}

.btn-sisita-tab-inactive {
  background: #E2E8F0;
  color: #334155;
  border: 1px solid #CBD5E1;
}

.btn-sisita-tab-inactive:hover {
  background: #CBD5E1;
  color: #0F172A;
}

.tab-btn-active {
  background: #2E8B57;
  color: #ffffff;
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.text-navy { color: var(--color-primary-navy); }

/* ==========================================================================
   Developer Tools & Simulation Mode Extensions (Zero Inline Style)
   ========================================================================== */

.btn-sisita-blue {
  background: #2980B9;
  color: #ffffff;
  font-weight: 700;
}

.btn-sisita-blue:hover {
  background: #2471A3;
  color: #ffffff;
}

.simulation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #78350F, #B45309);
  color: #FEF3C7;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.25);
  border: 1px solid #D97706;
}

.simulation-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.simulation-banner-icon {
  font-size: 20px;
}

.simulation-banner-text {
  line-height: 1.4;
}

.btn-simulation-exit {
  background: #FEF3C7;
  color: #92400E;
  border: none;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-simulation-exit:hover {
  background: #ffffff;
  color: #78350F;
  transform: translateY(-1px);
}

.badge-course-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 12px;
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

