* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}
body {
  background: #f4f6f9;
  color: #333;
}

/* Navbar */
.navbar {
  background: #1e3a8a;
  color: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Card */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

/* Form */
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Button */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #1e3a8a;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  background: #152c6b;
}
.btn-danger {
  background: #dc2626;
}
.btn-success {
  background: #16a34a;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
th {
  background: #f1f5f9;
}

/* Badge */
.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #fff;
}
.bg-pending {
  background: #f59e0b;
}
.bg-lolos {
  background: #16a34a;
}
.bg-gagal {
  background: #dc2626;
}

/* Stat cards */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.stat-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.stat-card h3 {
  font-size: 32px;
  color: #1e3a8a;
}

/* ===================================
   RESPONSIVE — MOBILE & TABLET
=================================== */

/* Tablet */
@media (max-width: 900px) {
  .container {
    padding: 0 15px;
    margin: 15px auto;
  }
  .card {
    padding: 18px;
  }
  .navbar {
    padding: 12px 18px;
  }
  .navbar h2 {
    font-size: 17px;
  }
  .navbar a {
    margin-left: 10px;
    padding: 5px 8px;
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  body {
    font-size: 13px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 15px;
  }
  .navbar > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }
  .navbar a {
    margin-left: 0;
  }

  .container {
    padding: 0 10px;
  }
  .card {
    padding: 15px;
    border-radius: 8px;
  }

  /* Header card yang pakai flex */
  .card > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* ===== TABEL RESPONSIVE ===== */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: 900px;
  }
  th,
  td {
    padding: 10px 12px;
    font-size: 12px;
  }
  th {
    font-size: 11px;
  }

  /* ===== TOMBOL AKSI JADI KECIL & SEJAJAR ===== */
  td.aksi {
    min-width: 140px;
  }
  td.aksi .btn {
    display: block;
    width: 100%;
    padding: 6px 8px;
    font-size: 11px;
    margin: 0 0 4px 0;
  }

  .btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .btn-sm {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Badge lebih kecil */
  .badge {
    padding: 3px 8px;
    font-size: 10px;
  }
}

/* Sangat kecil (HP jadul) */
/* ... kode CSS lainnya di atas ... */

/* Responsif Mobile untuk Landing Page */
@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
    background-attachment: scroll;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 15px;
  }

  /* Kode lama kamu yang lain biarkan saja di sini */
  .stats-section {
    padding-top: 50px;
  }
  .stat-item h2 {
    font-size: 28px;
  }
}

/* ... kode CSS lainnya di bawah ... */

/* ===================================
   TAMBAHAN: GAYA LANDING PAGE (ALA KAMPUS/UNG)
=================================== */

/* Import Font Poppins khusus untuk halaman depan */
body {
  font-family: "Poppins", "Segoe UI", sans-serif;
}

/* Tombol Navbar */
.btn-nav {
  background: #f59e0b !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-weight: 600;
}
.btn-nav:hover {
  background: #d97706 !important;
}

/* =========================================
   PAKSA HERO JADI FULL SCREEN & MUNCULKAN FOTO
========================================= */
.hero {
  width: 100%;
  min-height: 100vh !important; /* Paksa 1 layar penuh */
  margin: 0 !important;
  padding: 0 !important;

  /* INI KUNCI UTAMANYA: Panggil fotonya */
  /* GANTI BARIS INI: Pakai link internet dulu */
  background-image:
    linear-gradient(rgba(30, 58, 138, 0.7), rgba(30, 58, 138, 0.7)),
    url("../assets/bg-hero.png") !important;

  /* Pengaturan gambar */
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;

  /* Posisi teks di tengah */
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  color: #fff;
}

.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px auto;
  line-height: 1.8;
  color: #e0e7ff;
}

/* =========================================
   LAYOUT ADMIN BARU (SIDEBAR)
========================================= */
body.admin-body {
  background: #f1f5f9;
  margin: 0;
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #0f172a; /* Biru gelap elegan */
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  padding: 25px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
  margin: 0;
  font-size: 20px;
  color: #fff;
  letter-spacing: 1px;
}

.sidebar-menu-list {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.sidebar-menu-list li a {
  display: flex;
  align-items: center;
  padding: 14px 25px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.sidebar-menu-list li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding-left: 30px;
}

.sidebar-menu-list li a.active {
  background: #2563eb; /* Biru Royal */
  color: #fff;
  border-left: 4px solid #f59e0b; /* Aksen kuning */
}

.sidebar-menu-list li a .icon {
  margin-right: 15px;
  font-size: 18px;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
  display: block;
  text-align: center;
  background: #dc2626;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-logout:hover {
  background: #b91c1c;
}

/* Area Konten Utama */
.main-content {
  flex: 1;
  margin-left: 260px; /* Memberi ruang untuk sidebar */
  padding: 30px;
  width: calc(100% - 260px);
}

/* Responsive untuk HP */
@media (max-width: 900px) {
  .sidebar {
    width: 70px;
  }
  .sidebar-header h2,
  .sidebar-menu-list li a span:not(.icon),
  .sidebar-footer {
    display: none;
  }
  .sidebar-menu-list li a {
    justify-content: center;
    padding: 15px;
  }
  .sidebar-menu-list li a .icon {
    margin-right: 0;
    font-size: 20px;
  }
  .main-content {
    margin-left: 70px;
    width: calc(100% - 70px);
  }
}

/* =========================================
   FIX: ADMIN LAYOUT & TABEL
========================================= */
.admin-body {
  background-color: #f1f5f9;
  display: flex;
  min-height: 100vh;
}

/* Paksa sidebar agar menempel */
.sidebar {
  position: fixed !important;
  top: 0;
  bottom: 0;
  left: 0;
  width: 260px;
  background: #0f172a;
  z-index: 9999;
}

/* Paksa konten utama bergeser ke kanan */
.main-content {
  margin-left: 260px !important;
  width: calc(100% - 260px) !important;
  padding: 30px !important;
  min-height: 100vh;
}

/* Table Style di dalam main-content */
.main-content table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.main-content th {
  background: #f8fafc;
  padding: 15px;
  text-align: left;
  font-size: 13px;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}
.main-content td {
  padding: 15px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

/* Card Box untuk Form */
.main-content .card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

/* Responsive Mobile */
@media (max-width: 900px) {
  .sidebar {
    width: 70px !important;
  }
  .sidebar-header h2,
  .sidebar-menu-list li a span:not(.icon),
  .sidebar-footer {
    display: none !important;
  }
  .sidebar-menu-list li a {
    justify-content: center;
    padding: 15px !important;
  }
  .main-content {
    margin-left: 70px !important;
    width: calc(100% - 70px) !important;
  }
}



/* =========================================
   CSS KHUSUS ADMIN DASHBOARD (MODERN)
========================================= */
body.admin-body {
    background-color: #f1f5f9;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    color: #1e293b;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: #0f172a;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 1000;
    box-shadow: 4px 0 15px rgba(0,0,0,0.05);
}
.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.sidebar-header h2 {
    font-size: 22px;
    color: #fff;
    letter-spacing: 1px;
    margin: 0;
}
.sidebar-menu-list {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}
.sidebar-menu-list li a {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}
.sidebar-menu-list li a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    padding-left: 30px;
}
.sidebar-menu-list li a.active {
    background: #2563eb;
    color: #fff;
    border-left: 4px solid #f59e0b;
}
.sidebar-menu-list li a .icon {
    margin-right: 15px;
    font-size: 18px;
}
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.btn-logout {
    display: block;
    text-align: center;
    background: #dc2626;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-logout:hover { background: #b91c1c; }

/* MAIN CONTENT */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    width: calc(100% - 260px);
    background: #f1f5f9;
}

/* STATISTIK CARD */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s;
    border-left: 5px solid #ccc;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.stat-info h3 { font-size: 32px; margin: 0 0 5px 0; color: #0f172a; }
.stat-info p { margin: 0; color: #64748b; font-size: 14px; font-weight: 500; }
.stat-icon { font-size: 40px; opacity: 0.2; }

/* SHORTCUT GRID */
.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.shortcut-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}
.shortcut-card:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}
.shortcut-icon {
    font-size: 24px;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 8px;
}
.shortcut-card:hover .shortcut-icon {
    background: rgba(255,255,255,0.2);
}

/* RESPONSIVE MOBILE */
@media (max-width: 900px) {
    .sidebar { width: 70px; }
    .sidebar-header h2, .sidebar-menu-list li a span:not(.icon), .sidebar-footer { display: none; }
    .sidebar-menu-list li a { justify-content: center; padding: 15px; }
    .sidebar-menu-list li a .icon { margin-right: 0; font-size: 20px; }
    .main-content { margin-left: 70px; width: calc(100% - 70px); padding: 20px; }
}