/**
 * Style Khusus Aplikasi Ceklist Project Koding
 * Desain Bersih, Elegan, dan Responsif (Mobile & Desktop)
 */

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #475569;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --bg-light: #f8fafc;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

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

.main-container {
  flex: 1;
}

/* Header Banner */
.hero-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  color: #ffffff;
  padding: 2.2rem 1rem;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
  margin-bottom: 2rem;
}

.hero-header h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.85rem;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
}

/* Stat Cards */
.stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid #e2e8f0;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

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

.stat-card .stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-card .stat-label {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Filter Card */
.filter-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--card-shadow);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Custom Table */
.custom-table-container {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

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

.table thead th {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 0.75rem;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}

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

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

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

/* Checklist Badges */
.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.check-pill.done {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.check-pill.failed {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.check-pill.pending {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.status-badge:hover {
  transform: scale(1.04);
}

.status-badge.lolos {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-badge.revisi {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.status-badge.menunggu {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Modal PDF & Word Preview */
.modal-pdf-container {
  width: 100%;
  height: 520px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

.modal-header-gradient {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.doc-download-box {
  background: #eff6ff;
  border: 1px dashed #3b82f6;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

/* Navbar Admin */
.admin-navbar {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.admin-navbar .navbar-brand {
  color: #ffffff;
  font-weight: 700;
}

.admin-navbar .nav-link {
  color: #cbd5e1;
}

.admin-navbar .nav-link:hover {
  color: #ffffff;
}

/* Kop Surat Resmi Lembaga */
.kop-surat-wrapper {
  background: #ffffff;
  padding: 1.5rem 2rem 1rem 2rem;
  border-bottom: 3px double #000000;
  margin-bottom: 1.5rem;
}

.kop-logo-left {
  max-height: 85px;
  max-width: 90px;
  object-fit: contain;
}

.kop-logo-right {
  max-height: 85px;
  max-width: 90px;
  object-fit: contain;
}

.kop-text-container {
  text-align: center;
  line-height: 1.25;
}

.kop-instansi {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.kop-sekolah {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.kop-alamat {
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 2px;
}

.kop-kontak {
  font-size: 0.8rem;
  color: #475569;
}

/* Nav Link Aktif di Admin */
.admin-navbar .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-weight: 600;
}

/* Print Styling */
@media print {
  .no-print, .btn, .filter-card, .hero-badge, .pagination, nav, footer, .modal-footer {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    font-size: 10pt !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .kop-surat-wrapper {
    padding: 0 0 10px 0 !important;
    border-bottom: 2px solid #000000 !important;
  }
  .custom-table-container {
    box-shadow: none !important;
    border: none !important;
  }
  .table {
    border: 1px solid #000000 !important;
  }
  .table th, .table td {
    border: 1px solid #000000 !important;
    padding: 4px 6px !important;
    font-size: 9pt !important;
  }
  .table thead th {
    background: #f1f5f9 !important;
    color: #000000 !important;
  }
}
