.horizontal-form {
  display: flex;
  flex-wrap: wrap; /* Agar otomatis turun ke bawah jika layar sempit/mobile */
  gap: 15px; /* Jarak antar elemen input */
  align-items: flex-end; /* Supaya input dan tombol sejajar di bawah label */
}

.form-group {
  display: flex;
  flex-direction: column; /* Label tetap di atas input masing-masing */
  flex: 1; /* Input akan membagi ruang secara adil */
  min-width: 120px; /* Mencegah input terlalu gepeng */
}

.horizontal-form label {
  font-size: 13px;
  margin-bottom: 5px;
}

.horizontal-form input,
.horizontal-form select {
  width: 100%;
  margin: 0; /* Menghapus margin bawaan agar rapi dalam flexbox */
}

.btn-container {
  flex: 0; /* Tombol tidak ikut melebar, ukurannya sesuai konten */
  min-width: fit-content;
}

/* Pastikan ini ada di style.css */
.sidebar .nav-link {
  display: block; /* Membuat link turun ke bawah (vertikal) */
  color: white; /* Menghapus warna biru/ungu default */
  text-decoration: none; /* Menghapus garis bawah */
  padding: 12px 15px;
  margin: 8px 0;
  border-radius: 6px;
  background: transparent;
  transition: 0.3s;
}

.sidebar .nav-link:hover {
  background: #34495e; /* Warna saat kursor di atas tombol */
  color: #fff;
}

/* style.css */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  display: flex;
  background: #f4f7f6;
}

.sidebar {
  width: 230px;
  background: #2c3e50;
  color: #fff;
  min-height: 100vh;
  padding: 20px;
  position: fixed;
}

.main {
  margin-left: 270px;
  padding: 20px;
  width: calc(100% - 270px);
}

.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table,
th,
td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

th {
  background: #34495e;
  color: white;
}

input,
select,
button,
textarea {
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.btn-add {
  background: #27ae60;
  color: white;
  border: none;
  cursor: pointer;
  width: auto;
  display: inline-block;
}

.btn-edit {
  color: #2980b9;
  text-decoration: none;
  margin-right: 10px;
}

.btn-delete {
  color: #c0392b;
  text-decoration: none;
}

.badge {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: white;
}

.pending {
  background: #e74c3c;
}
.proses {
  background: #f1c40f;
}
.selesai {
  background: #2ecc71;
}

.nav-link {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px;
  margin: 5px 0;
  border-radius: 4px;
}

.nav-link:hover {
  background: #34495e;
}

label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

/* Form Helper Classes */
.horizontal-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.form-group {
  flex: 1;
  min-width: 150px;
}

.btn-container {
  padding-bottom: 5px;
}

/* Print Settings */
@media print {
  .sidebar,
  .btn-add,
  .form-box,
  .btn-edit,
  .btn-delete,
  .search-box {
    display: none !important;
  }
  .main {
    margin: 0;
    width: 100%;
  }
}

/* Login Page Specific Styles */
.login-body {
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.login-box {
    text-align: left; /* Memastikan semua elemen di dalamnya rata tengah */
    /* ... style lainnya ... */
}

.login-logo {
    width: 350px; /* Sesuaikan ukuran logo */
    height: auto;
    margin-bottom: 10px;
}

.login-box h2 {
    text-align: left; /* Paksa teks ke kiri */
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary-blue);
    width: 100%;
}

.login-box {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 350px;
}

.login-box h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.error-msg {
  color: #c0392b;
  background: #f8d7da;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  margin-bottom: 15px;
}

.login-box button {
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.login-box button:hover {
  background: #0056b3;
}


.logo-container-login {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Mepet kiri */
    margin-bottom: 20px;
}

.login-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    transition: transform 0.7s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.5s ease;
}

/* Kelas yang dipicu oleh JavaScript saat login berhasil */
.slide-out {
    transform: translateX(-100%); /* Geser ke kiri keluar layar */
    opacity: 0;
}

/* Pastikan bagian ini ada di style.css Anda */
.main {
  padding: 20px;
  flex: 1;
  margin-left: 270px; /* Menyesuaikan lebar sidebar */
}

.card h2 {
  color: #2c3e50;
  border-bottom: 2px solid #f4f7f6;
  padding-bottom: 10px;
  margin-top: 20px;
}

/* Mengatur agar input form pendaftaran tidak terlalu lebar */
.form-user input,
.form-user select {
  width: auto;
  min-width: 200px;
  display: inline-block;
  margin-right: 10px;
}

/* Tambahkan ini ke style.css jika belum ada */
.search-box input {
  padding: 10px;
  width: 300px;
  display: inline-block;
  margin-right: 10px;
}

.search-box button {
  display: inline-block;
  width: auto;
  cursor: pointer;
}

/* Badge Status */
.badge {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  display: inline-block;
}

.selesai {
  background: #2ecc71; /* Warna hijau */
}

.pending {
  background: #e67e22; /* Warna orange untuk proses */
}

/* Sidebar Styles */
.sidebar {
  width: 230px;
  background: #2c3e50;
  color: #fff;
  min-height: 100vh;
  padding: 20px;
  position: fixed;
  left: 0;
  top: 0;
}

.sidebar h2 {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 20px;
  color: #ecf0f1;
}

.welcome-section {
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 20px;
}

.nav-link {
  display: block;
  color: #bdc3c7;
  text-decoration: none;
  padding: 12px 15px;
  margin: 8px 0;
  border-radius: 6px;
  transition: all 0.3s;
}

.nav-link:hover {
  background: #34495e;
  color: #fff;
  padding-left: 20px;
}

.sidebar hr {
  border: 0;
  border-top: 1px solid #3e4f5f;
  margin: 20px 0;
}

.logout-link {
  color: #e74c3c !important;
  font-weight: bold;
}

.logout-link:hover {
  background: #c0392b !important;
  color: #fff !important;
}

.tab-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: #f1f2f6;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  color: #7f8c8d;
  transition: 0.3s;
}

.tab-btn.active {
  background: #3498db;
  color: white;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.table-arsip th {
  background-color: #2c3e50 !important; /* Latar belakang gelap */
  color: #ffffff !important; /* Teks putih terang */
  padding: 12px;
  font-weight: bold;
}

.badge-nup {
  background: #34495e;
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}
.info-user h4 {
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* style.css - Professional Elegant Blue Theme */

:root {
  --primary-blue: #1e3a8a; /* Deep Navy */
  --secondary-blue: #3b82f6; /* Royal Blue */
  --accent-blue: #dbeafe; /* Light Blue Tint */
  --sidebar-bg: #0f172a; /* Darker Slate/Navy */
  --bg-light: #f8fafc; /* Soft Grayish Blue White */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  margin: 0;
  display: flex;
  background: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
}

/* SIDEBAR */
.sidebar {
  width: 250px;
  background: var(--sidebar-bg);
  color: var(--white);
  min-height: 100vh;
  padding: 24px 16px;
  position: fixed;
  left: 0;
  top: 0;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 30px;
  color: var(--secondary-blue);
}

.welcome-section {
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  display: flex;
  align-items: center;
  color: #94a3b8;
  text-decoration: none;
  padding: 12px 16px;
  margin: 4px 0;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: var(--secondary-blue);
  color: var(--white);
  transform: translateX(4px);
}

.logout-link {
  color: #fca5a5 !important;
  margin-top: 20px;
}

.logout-link:hover {
  background: var(--danger) !important;
  color: white !important;
}

/* MAIN CONTENT */
.main {
  margin-left: 250px;
  padding: 40px;
  width: calc(100% - 250px);
  box-sizing: border-box;
}

.card {
  background: var(--white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.card h2 {
  color: var(--primary-blue);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 15px;
}

table,
th,
td {
  border: none;
}

th {
  background: #f1f5f9;
  color: var(--primary-blue);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 14px;
  border-bottom: 2px solid #e2e8f0;
}

td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: #475569;
}

tr:hover td {
  background-color: #f8fafc;
}

/* FORMS & INPUTS */
input,
select,
textarea {
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s;
  background: var(--white);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

/* BUTTONS */
.btn-add {
  background: var(--secondary-blue);
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
  transition: 0.3s;
  cursor: pointer;
}

.btn-add:hover {
  background: var(--primary-blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.btn-edit {
  color: var(--secondary-blue);
  font-weight: 500;
}

.btn-delete {
  color: var(--danger);
  font-weight: 500;
}

/* BADGES */
.badge {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.selesai {
  background: #d1fae5;
  color: #065f46;
}
.pending {
  background: #fef3c7;
  color: #92400e;
}
.proses {
  background: #dbeafe;
  color: #1e40af;
}

/* TABS */
.tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: 0.3s;
}

.tab-btn.active {
  color: var(--secondary-blue);
  border-bottom: 2px solid var(--secondary-blue);
  background: transparent;
}

/* LOGIN PAGE */
.login-body {
  background: radial-gradient(circle at top left, #1e3a8a, #0f172a);
}

.login-box {
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-box button {
  background: var(--secondary-blue);
  height: 45px;
  border-radius: 8px;
}

/* Print Settings */
@media print {
  .sidebar,
  .btn-add,
  .form-box,
  .btn-edit,
  .btn-delete,
  .search-box {
    display: none !important;
  }
  .main {
    margin: 0;
    width: 100%;
  }
  .card {
    box-shadow: none;
    border: 1px solid #eee;
  }
}


