/* =========================================================================
   E-Hasil — Tema Biru Facebook (#1877F2) & Putih Bersih
   Dilengkapi Sidebar Slide-In/Out Halus ala Gemini AI
   ========================================================================= */

:root {
  --fb-blue: #1877F2;
  --fb-blue-dark: #1462C4;
  --fb-blue-soft: #E7F3FF;
  --fb-blue-border: #D0E3FF;
  --fb-bg: #F0F2F5;
  --fb-white: #FFFFFF;
  --fb-text: #1C1E21;
  --fb-muted: #65676B;
  --fb-border: #E4E6EB;
  --drawer-width: 280px;
  --drawer-transition: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--fb-bg);
  color: var(--fb-text);
  margin: 0;
  overflow-x: hidden;
}

/* ---------- Gemini-Style Collapsible Drawer ---------- */
.gemini-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--drawer-width);
  height: 100vh;
  background-color: var(--fb-white);
  border-right: 1px solid var(--fb-border);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s var(--drawer-transition), box-shadow 0.32s ease;
  box-shadow: none;
}

.gemini-drawer.open {
  transform: translateX(0);
  box-shadow: 8px 0 30px rgba(24, 119, 242, 0.10);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 30, 33, 0.32);
  backdrop-filter: blur(2px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* Desktop Push Mode untuk Admin */
.admin-layout .admin-main {
  transition: margin-left 0.32s var(--drawer-transition);
  min-height: 100vh;
}

@media (min-width: 992px) {
  .admin-layout.drawer-pinned .gemini-drawer {
    transform: translateX(0);
    box-shadow: none;
  }
  .admin-layout.drawer-pinned .admin-main {
    margin-left: var(--drawer-width);
  }
  .admin-layout.drawer-pinned .drawer-backdrop {
    display: none !important;
  }
}

/* Pill Navigation Items ala Gemini */
.nav-pill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  margin: 3px 12px;
  border-radius: 9999px;
  color: var(--fb-text);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.nav-pill-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: var(--fb-muted);
  transition: color 0.18s ease;
}

.nav-pill-item:hover {
  background-color: #F2F4F7;
  color: var(--fb-blue);
}

.nav-pill-item:hover i {
  color: var(--fb-blue);
}

.nav-pill-item.active {
  background-color: var(--fb-blue-soft);
  color: var(--fb-blue);
  font-weight: 600;
}

.nav-pill-item.active i {
  color: var(--fb-blue);
}

/* Hamburger Button ala Gemini */
.btn-hamburger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--fb-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.btn-hamburger:hover {
  background-color: var(--fb-blue-soft);
  color: var(--fb-blue);
}

/* ---------- Cards & Buttons Biru Facebook ---------- */
.fb-topbar {
  background-color: var(--fb-white);
  border-bottom: 1px solid var(--fb-border);
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.fb-card {
  background: var(--fb-white);
  border: 1px solid var(--fb-border);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-fb {
  background-color: var(--fb-blue);
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: 10px;
  transition: background-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.btn-fb:hover {
  background-color: var(--fb-blue-dark);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
}

.btn-fb-soft {
  background-color: var(--fb-blue-soft);
  color: var(--fb-blue);
  border: 1px solid transparent;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.18s ease;
}

.btn-fb-soft:hover {
  background-color: #D8EAFE;
  color: var(--fb-blue-dark);
}

.text-fb {
  color: var(--fb-blue) !important;
}

.bg-fb {
  background-color: var(--fb-blue) !important;
}

.bg-fb-soft {
  background-color: var(--fb-blue-soft) !important;
}

/* Search Box NIS di Halaman Depan */
.nis-search-wrapper {
  background: var(--fb-white);
  border: 2px solid var(--fb-border);
  border-radius: 14px;
  padding: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nis-search-wrapper:focus-within {
  border-color: var(--fb-blue);
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.12);
}

.nis-search-input {
  border: none !important;
  box-shadow: none !important;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 12px 14px;
  background: transparent;
}

/* Status Badges */
.badge-tuntas {
  background-color: #E6F4EA;
  color: #137333;
  border: 1px solid #CEEAD6;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
}

.badge-remidi {
  background-color: #FCE8E6;
  color: #C5221F;
  border: 1px solid #FAD2CF;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
}

/* Filter Chip Tabs */
.filter-chip {
  border: 1px solid var(--fb-border);
  background: var(--fb-white);
  color: var(--fb-muted);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--fb-blue);
  color: var(--fb-blue);
}

.filter-chip.active {
  background: var(--fb-blue);
  border-color: var(--fb-blue);
  color: #FFFFFF;
}

/* Switch Toggle Aktif/Nonaktif */
.form-switch .form-check-input {
  width: 2.8em;
  height: 1.4em;
  cursor: pointer;
}

.form-switch .form-check-input:checked {
  background-color: var(--fb-blue);
  border-color: var(--fb-blue);
}

/* Table Styling */
.table-clean thead th {
  background-color: #F7F9FC;
  color: #4B5563;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--fb-border);
  padding: 12px 14px;
  white-space: nowrap;
}

.table-clean tbody td {
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid #F0F2F5;
  font-size: 0.9rem;
}

/* Print Style */
@media print {
  .no-print, .gemini-drawer, .drawer-backdrop, .fb-topbar {
    display: none !important;
  }
  body {
    background: #ffffff !important;
  }
  .fb-card {
    box-shadow: none !important;
    border: 1px solid #d1d5db !important;
  }
}


/* ---------- Iconic Brand Logo Lockup (E-Hasil) ---------- */
.ehasil-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ehasil-brand-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(24, 119, 242, 0.28));
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

a:hover .ehasil-brand-icon {
  transform: scale(1.04);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-wordmark {
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: baseline;
}

.brand-e-letter {
  background: linear-gradient(135deg, #2D8CFF 0%, #1877F2 60%, #0D55C9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.brand-dash {
  color: #93C5FD;
  font-weight: 700;
  margin: 0 1px;
}

.brand-rest {
  color: #1C1E21;
  font-weight: 800;
}

.brand-sublabel {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fb-muted);
  margin-top: 2px;
  max-width: 210px;
}
