/* =====================================================
   SIPAS — SISTEM INFORMASI PENGELOLAAN SAMPAH
   Modern Environmental SaaS Design System & UI Components
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* ==================== DESIGN TOKENS ==================== */
:root {
  /* Brand Green Palette */
  --primary: #059669;
  --primary-hover: #047857;
  --primary-dark: #064e3b;
  --primary-light: #d1fae5;
  --primary-soft: #ecfdf5;
  --primary-glow: rgba(5, 150, 105, 0.25);

  /* Status Colors */
  --status-waiting: #f59e0b;
  --status-waiting-bg: #fef3c7;
  --status-waiting-text: #92400e;

  --status-processing: #3b82f6;
  --status-processing-bg: #dbeafe;
  --status-processing-text: #1e40af;

  --status-completed: #10b981;
  --status-completed-bg: #d1fae5;
  --status-completed-text: #065f46;

  /* Category Colors */
  --cat-organik: #10b981;
  --cat-organik-bg: #ecfdf5;
  --cat-anorganik: #0284c7;
  --cat-anorganik-bg: #e0f2fe;
  --cat-b3: #e11d48;
  --cat-b3-bg: #ffe4e6;
  --cat-campuran: #8b5cf6;
  --cat-campuran-bg: #ede9fe;

  /* Neutrals & Surfaces */
  --bg-app: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-hover: #f8fafc;

  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #10b981;

  --txt-main: #0f172a;
  --txt-muted: #475569;
  --txt-subtle: #94a3b8;
  --txt-white: #ffffff;

  /* Dimensions */
  --sidebar-width: 270px;
  --header-height: 70px;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.04);
  --shadow-primary: 0 6px 20px rgba(5, 150, 105, 0.35);

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-app);
  color: var(--txt-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

input, select, textarea {
  font-family: inherit;
  font-size: 14px;
}

/* ==================== APP LAYOUT SHELL ==================== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sb-brand {
  height: var(--header-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-light);
}

.sb-logo-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 4px 12px var(--primary-glow);
  flex-shrink: 0;
}

.sb-brand-info h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--txt-main);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.sb-brand-info p {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sb-nav-wrap {
  flex: 1;
  padding: 16px 14px;
  overflow-y: auto;
}

.sb-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--txt-subtle);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 12px 6px;
  margin-top: 4px;
}

.sb-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--txt-muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
  margin-bottom: 3px;
}

.sb-link i {
  font-size: 17px;
  width: 20px;
  text-align: center;
  color: var(--txt-subtle);
  transition: var(--transition);
}

.sb-link:hover {
  background-color: var(--surface-alt);
  color: var(--txt-main);
}

.sb-link:hover i {
  color: var(--primary);
}

.sb-link.active {
  background-color: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
}

.sb-link.active i {
  color: var(--primary);
}

.sb-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary-dark);
}

.sb-footer {
  padding: 16px;
  border-top: 1px solid var(--border-light);
  background: var(--surface-alt);
}

.sb-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sb-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.sb-user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.sb-user-role {
  font-size: 11px;
  color: var(--txt-subtle);
  font-weight: 500;
}

.sb-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--txt-muted);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.sb-logout-btn:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* MAIN WRAPPER */
.main-wrap {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* TOPBAR HEADER */
.topbar {
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
}

.tb-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tb-hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--txt-main);
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.tb-page-heading h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--txt-main);
  letter-spacing: -0.2px;
}

.tb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--txt-subtle);
}

.tb-breadcrumb a {
  color: var(--txt-muted);
}

.tb-breadcrumb i {
  font-size: 10px;
}

.tb-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tb-live-date {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-alt);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--txt-muted);
}

.tb-live-date i {
  color: var(--primary);
}

.tb-action-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--txt-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  position: relative;
  transition: var(--transition);
}

.tb-action-icon:hover {
  background: var(--border);
  color: var(--txt-main);
}

.tb-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  position: absolute;
  top: 8px;
  right: 8px;
  border: 2px solid var(--surface);
}

.tb-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius-full);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.tb-profile-btn:hover {
  border-color: var(--primary);
}

.tb-avatar-mini {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.tb-user-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--txt-main);
  padding-right: 4px;
}

/* PAGE CONTENT AREA */
.page-content {
  padding: 28px 32px 50px;
  flex: 1;
}

/* OVERLAY */
.sb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
}

/* ==================== PAGE HEADINGS & BANNERS ==================== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header-info h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--txt-main);
  letter-spacing: -0.4px;
}

.page-header-info p {
  font-size: 13.5px;
  color: var(--txt-muted);
  margin-top: 2px;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* HERO / GREETING BANNER */
.hero-banner {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  border-radius: var(--radius-xl);
  padding: 30px 36px;
  color: white;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(6, 78, 59, 0.25);
}

.hero-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(16, 185, 129, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: #a7f3d0;
}

.hero-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 13.5px;
  color: #d1fae5;
  line-height: 1.6;
  margin-bottom: 18px;
}

.hero-pills {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-pill-num {
  font-size: 18px;
  font-weight: 800;
}

.hero-pill-lbl {
  font-size: 11.5px;
  color: #a7f3d0;
  font-weight: 600;
}

.hero-icon-graphic {
  position: relative;
  z-index: 2;
  font-size: 80px;
  color: rgba(255, 255, 255, 0.25);
  margin-right: 20px;
}

/* ==================== STATISTIC CARDS ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-icon.si-emerald { background: var(--primary-soft); color: var(--primary); }
.stat-icon.si-amber { background: var(--status-waiting-bg); color: var(--status-waiting); }
.stat-icon.si-blue { background: var(--status-processing-bg); color: var(--status-processing); }
.stat-icon.si-rose { background: var(--cat-b3-bg); color: var(--cat-b3); }
.stat-icon.si-purple { background: var(--cat-campuran-bg); color: var(--cat-campuran); }

.stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--txt-muted);
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--txt-main);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-top: 4px;
}

.stat-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--txt-subtle);
  font-weight: 500;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
}

.stat-trend.up { color: var(--primary); }
.stat-trend.pending { color: var(--status-waiting); }

/* ==================== MODERN CARDS & CONTAINERS ==================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

.card-header-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--txt-main);
}

.card-subtitle {
  font-size: 12px;
  color: var(--txt-subtle);
}

.card-body {
  padding: 24px;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  background-color: var(--primary);
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 2px 6px var(--primary-glow);
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

.btn.secondary {
  background-color: var(--surface-alt);
  color: var(--txt-main);
  border-color: var(--border);
  box-shadow: none;
}

.btn.secondary:hover {
  background-color: #e2e8f0;
  color: var(--txt-main);
  transform: translateY(-1px);
}

.btn.danger {
  background-color: #ef4444;
  color: white;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.btn.danger:hover {
  background-color: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn.small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-xs);
}

.btn.icon-only {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-xs);
}

/* ==================== BADGES & TAGS ==================== */
/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-status i {
  font-size: 12px;
}

.badge-status.bs-waiting {
  background-color: var(--status-waiting-bg);
  color: var(--status-waiting-text);
  border: 1px solid #fde68a;
}

.badge-status.bs-processing {
  background-color: var(--status-processing-bg);
  color: var(--status-processing-text);
  border: 1px solid #bfdbfe;
}

.badge-status.bs-completed {
  background-color: var(--status-completed-bg);
  color: var(--status-completed-text);
  border: 1px solid #a7f3d0;
}

/* Category Badges */
.badge-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  font-weight: 700;
}

.badge-cat.bc-organik {
  background: var(--cat-organik-bg);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-cat.bc-anorganik {
  background: var(--cat-anorganik-bg);
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-cat.bc-b3 {
  background: var(--cat-b3-bg);
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.badge-cat.bc-campuran {
  background: var(--cat-campuran-bg);
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

/* ==================== MODERN TABLES ==================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table.modern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table.modern-table th {
  padding: 13px 18px;
  background: var(--surface-alt);
  color: var(--txt-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.modern-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--txt-main);
  font-size: 13px;
  vertical-align: middle;
}

table.modern-table tr:last-child td {
  border-bottom: none;
}

table.modern-table tbody tr {
  transition: var(--transition);
}

table.modern-table tbody tr:hover {
  background-color: var(--surface-hover);
}

/* TABLE SEARCH & FILTER BAR */
.table-toolbar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: #ffffff;
}

.search-input-box {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 400px;
}

.search-input-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--txt-subtle);
  font-size: 14px;
}

.search-input-box input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--txt-main);
  outline: none;
  transition: var(--transition);
}

.search-input-box input:focus {
  background: #ffffff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--txt-main);
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--border-focus);
}

/* ==================== FORMS & INPUTS ==================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group.col-span-2 {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--txt-main);
}

.form-label span.req {
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--txt-main);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-control[readonly], .form-control:disabled {
  background: var(--surface-alt);
  color: var(--txt-muted);
  cursor: not-allowed;
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.form-helper {
  font-size: 11.5px;
  color: var(--txt-subtle);
  margin-top: 2px;
}

/* MODERN FILE UPLOAD BOX */
.upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: var(--surface-alt);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.upload-dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.upload-dropzone i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.upload-dropzone p {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-main);
}

.upload-dropzone span {
  font-size: 11.5px;
  color: var(--txt-subtle);
}

.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-preview {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ==================== ALERTS & NOTICES ==================== */
.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 13px;
}

.alert-box i {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-box.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-box.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-box.info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--surface-alt);
  color: var(--txt-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--txt-main);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  color: var(--txt-muted);
  max-width: 400px;
  margin: 0 auto 16px;
}

/* ==================== MODAL DIALOG ==================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--txt-main);
}

.modal-close {
  font-size: 20px;
  color: var(--txt-subtle);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--txt-main);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ==================== EDUKASI & BERITA CARDS ==================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.article-img-wrap {
  height: 180px;
  background: linear-gradient(135deg, #064e3b, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-img-wrap img {
  transform: scale(1.05);
}

.article-img-icon {
  font-size: 50px;
  color: rgba(255, 255, 255, 0.4);
}

.article-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--txt-subtle);
}

.article-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--txt-main);
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-desc {
  font-size: 13px;
  color: var(--txt-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

/* EDUKASI TABS */
.edu-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  overflow-x: auto;
}

.edu-tab {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.edu-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.edu-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* ==================== LOGIN PAGE STYLES ==================== */
.login-page-wrap {
  min-height: 100vh;
  display: flex;
  background: #f8fafc;
}

.login-left-banner {
  flex: 1.1;
  background: linear-gradient(135deg, #064e3b 0%, #065f46 40%, #047857 100%);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  position: relative;
  overflow: hidden;
}

.login-left-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.login-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.login-brand-header .sb-logo-box {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

.login-brand-header h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.login-hero-text {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.login-hero-text h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.login-hero-text p {
  font-size: 14.5px;
  color: #d1fae5;
  line-height: 1.7;
  margin-bottom: 30px;
}

.login-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-feature-item i {
  font-size: 20px;
  color: #6ee7b7;
  margin-top: 2px;
}

.login-feature-item h4 {
  font-size: 14px;
  font-weight: 700;
}

.login-feature-item p {
  font-size: 12px;
  color: #a7f3d0;
  margin: 0;
}

.login-footer-info {
  position: relative;
  z-index: 2;
  font-size: 12px;
  color: #6ee7b7;
}

.login-right-panel {
  flex: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #ffffff;
}

.login-box-card {
  width: 100%;
  max-width: 440px;
}

.login-box-header {
  margin-bottom: 28px;
}

.login-box-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--txt-main);
  letter-spacing: -0.4px;
}

.login-box-header p {
  font-size: 13.5px;
  color: var(--txt-muted);
  margin-top: 4px;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap i.lead-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--txt-subtle);
  font-size: 16px;
}

.input-icon-wrap .form-control {
  padding-left: 42px;
  padding-right: 42px;
}

.pw-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--txt-subtle);
  font-size: 16px;
  cursor: pointer;
}

.pw-toggle-btn:hover {
  color: var(--txt-main);
}

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

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--txt-muted);
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .sidebar, .topbar, .no-print, .page-header-actions, .table-toolbar {
    display: none !important;
  }
  .main-wrap {
    margin-left: 0 !important;
  }
  .page-content {
    padding: 0 !important;
  }
  .card {
    border: none !important;
    box-shadow: none !important;
  }
}

/* ==================== RESPONSIVE MEDIA QUERIES ==================== */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sb-overlay.show {
    display: block;
  }
  .main-wrap {
    margin-left: 0;
  }
  .tb-hamburger {
    display: flex;
  }
  .login-left-banner {
    display: none;
  }
  .login-right-panel {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 0 16px;
  }
  .page-content {
    padding: 16px 16px 40px;
  }
  .hero-banner {
    padding: 24px 20px;
  }
  .hero-icon-graphic {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .tb-live-date {
    display: none;
  }
}