:root {
  --brand: #d92323;
  --brand-dark: #a5171a;
  --bg: #f4f5f8;
  --sidebar-w: 250px;
}

body {
  background: var(--bg);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.app-navbar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
}

.app-wrapper {
  display: flex;
  min-height: calc(100vh - 56px);
}

.app-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
}

.app-sidebar .nav-link {
  color: #4b5563;
  padding: .55rem 1.1rem;
  font-size: .9rem;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.app-sidebar .nav-link:hover {
  background: #fdf2f2;
  color: var(--brand);
}

.app-sidebar .nav-link.active {
  background: #fdf2f2;
  color: var(--brand);
  border-left-color: var(--brand);
  font-weight: 600;
}

.sidebar-group-title {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9ca3af;
  padding: .9rem 1.1rem .3rem;
  font-weight: 700;
}

.app-content {
  flex-grow: 1;
  min-width: 0;
}

.kpi-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: transform .15s ease;
}
.kpi-card:hover { transform: translateY(-2px); }
.kpi-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

.card { border: none; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.table thead th { font-size: .78rem; text-transform: uppercase; color: #6b7280; border-bottom-width: 1px; }
.badge-status-hijau { background: #16a34a; }
.badge-status-kuning { background: #eab308; color:#111; }
.badge-status-merah { background: #dc2626; }

.channel-thumb { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.video-thumb { width: 100px; height: 56px; object-fit: cover; border-radius: 8px; }

.auth-wrapper {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #a5171a, #1f2937);
}
.auth-card { max-width: 420px; width: 100%; border-radius: 18px; }

@media (max-width: 991px) {
  .app-sidebar { position: fixed; z-index: 1030; height: calc(100vh - 56px); transform: translateX(-100%); transition: transform .2s ease; }
  .app-sidebar.show { transform: translateX(0); }
}
