/* ── Indikator Takel Pelayanan — Custom Dark Theme ── */

:root {
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 0px;
  --topbar-height: 52px;
  --bg-surface: #0d1117;
  --bg-card: #161b22;
  --border-color: rgba(100, 116, 139, 0.2);
  --accent: #0d6efd;
}

body {
  background-color: var(--bg-surface);
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ── Sidebar ──────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.25s ease;
  z-index: 1000;
  padding: 0;
}

.sidebar.collapsed {
  width: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
  white-space: nowrap;
  overflow: hidden;
}

.brand-icon { font-size: 1.8rem; }
.brand-text  { font-size: 0.8rem; line-height: 1.3; }

.sidebar-hr {
  border-color: var(--border-color);
  margin: 0;
}

.sidebar-nav {
  padding: 8px 0;
  overflow: hidden;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: #8b949e;
  text-decoration: none;
  font-size: 0.82rem;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}

.sidebar-link:hover {
  background: rgba(255,255,255,.05);
  color: #e6edf3;
}

.sidebar-link.active {
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.08);
  border-left-color: #58a6ff;
  font-weight: 600;
}

.sidebar-footer {
  padding: 12px 16px 20px;
  border-top: 1px solid var(--border-color);
}

/* ── Main content ─────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left 0.25s ease;
}

.main-content.expanded {
  margin-left: 0;
}

/* ── Top bar ──────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--topbar-height);
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
}

.topbar-title {
  font-size: 0.9rem;
  color: #e6edf3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Page content ─────────────────────────────────── */
.page-content {
  padding-top: 16px;
}

/* ── KPI cards ────────────────────────────────────── */
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color) !important;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  position: relative;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.kpi-icon { font-size: 2rem; }

/* ── Filter bar ───────────────────────────────────── */
.filter-bar {
  background: var(--bg-card);
}

/* ── Table row colors ─────────────────────────────── */
.row-ok   { background: rgba(25, 135, 84, 0.08) !important; }
.row-fail { background: rgba(220, 53, 69, 0.08) !important; }
.row-ok:hover   { background: rgba(25, 135, 84, 0.15) !important; }
.row-fail:hover { background: rgba(220, 53, 69, 0.15) !important; }

/* ── Cards ────────────────────────────────────────── */
.card {
  background-color: var(--bg-card);
}

/* ── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #484f58; }

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { width: 0; }
  .main-content { margin-left: 0; }
  .main-content.expanded { margin-left: 0; }
  .sidebar.collapsed { width: var(--sidebar-width); }
}
.card, .auth-page-content .card { background-color: #013E37 !important; border: none !important; }
