:root {
  --primary-color: #0f172a;
  --primary-hover: #1e293b;
  --accent-color: #0d9488;
  --accent-light: #ccfbf1;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --bg-soft: #f8fafc;
  --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --border-color: #e2e8f0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-soft);
  color: #334155;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar-custom {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 0.9rem 1rem;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  font-size: 0.72rem;
  background: rgba(13, 148, 136, 0.35);
  color: #5eead4;
  border: 1px solid rgba(94, 234, 212, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* Header Banner */
.hero-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 3rem 1rem 3.5rem 1rem;
  border-radius: 0 0 2rem 2rem;
  margin-bottom: -2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

/* Cards */
.card-modern {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card {
  padding: 1.25rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-icon.total { background: #e0e7ff; color: #4338ca; }
.stat-icon.lolos { background: #dcfce7; color: #15803d; }
.stat-icon.belum { background: #fee2e2; color: #b91c1c; }
.stat-icon.kelas { background: #fef3c7; color: #b45309; }

/* Filter & Search Bar */
.filter-container {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
}

/* Table Styling */
.table-responsive {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: #ffffff;
  border: 1px solid var(--border-color);
}

.table-custom {
  margin-bottom: 0;
  vertical-align: middle;
}

.table-custom thead th {
  background-color: #0f172a;
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 0.75rem;
  border: none;
  text-align: center;
}

.table-custom thead th.text-start {
  text-align: left;
}

.table-custom tbody tr {
  transition: background-color 0.15s ease;
}

.table-custom tbody tr:hover {
  background-color: #f1f5f9;
}

.table-custom td {
  padding: 0.85rem 0.75rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #f1f5f9;
}

/* Check Status Badges */
.check-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: bold;
}

.check-indicator.valid {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.check-indicator.invalid,
.check-indicator.pending {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

/* Status Pill */
.badge-status {
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.badge-status:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.badge-status.lolos {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.badge-status.belum-lolos {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Button & Links */
.btn-primary-custom {
  background-color: #0d9488;
  border-color: #0d9488;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.55rem 1.25rem;
}

.btn-primary-custom:hover {
  background-color: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

/* PDF Modal Viewer */
.modal-pdf-container {
  border-radius: 1rem;
  overflow: hidden;
}

.pdf-frame {
  width: 100%;
  height: 600px;
  border: none;
  background: #f8fafc;
}

/* Footer */
footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  color: #64748b;
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-banner {
    padding: 2rem 1rem 2.5rem 1rem;
    border-radius: 0 0 1.25rem 1.25rem;
  }
  .pdf-frame {
    height: 420px;
  }
  .table-custom thead th {
    font-size: 0.75rem;
    padding: 0.75rem 0.4rem;
  }
  .table-custom td {
    font-size: 0.82rem;
    padding: 0.6rem 0.4rem;
  }
}
