/* ==================== CUSTOM CSS ==================== */
/* e-Arsip PKKM Madrasah                               */
/* Prinsip: Minimalis, Bersih, Sederhana                */
/* ===================================================  */

/* ---------- Font ---------- */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  background-color: #f4f6f9;
}

/* ---------- Card ---------- */
.card {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: none;
}

.card-header {
  border-radius: 10px 10px 0 0 !important;
}

/* ---------- Info Box / Small Box ---------- */
.small-box {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-box {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ---------- Sidebar ---------- */
.main-sidebar {
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.sidebar {
  padding-left: 10px !important;
  padding-right: 10px !important;
  overflow-x: hidden !important;
}

#sidebar-menu {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

#sidebar-menu .nav-treeview {
  padding: 0 0 0 15px !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.nav-sidebar > .nav-item,
.nav-sidebar .nav-treeview > .nav-item {
  width: 100% !important;
}

.nav-sidebar .nav-item > .nav-link {
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 6px !important;
  margin: 2px 0 !important;
}

.nav-sidebar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.12) !important;
}

/* ---------- Tombol ---------- */
.btn {
  border-radius: 6px;
  font-weight: 500;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

/* ---------- Form ---------- */
.form-control {
  border-radius: 6px;
  border: 1px solid #ced4da;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.15);
}

.form-group label {
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 13px;
}

/* ---------- Tabel ---------- */
.table {
  font-size: 13px;
}

.table thead th {
  border-top: none;
  font-weight: 600;
  background-color: #f8f9fa;
}

/* ---------- Warna Status ---------- */
.status-lengkap {
  color: #28a745;
  font-weight: 600;
}

.status-belum {
  color: #ffc107;
  font-weight: 600;
}

.status-error {
  color: #dc3545;
  font-weight: 600;
}

.status-kosong {
  color: #6c757d;
  font-weight: 600;
}

/* ---------- Badge Status ---------- */
.badge-aktif {
  background-color: #28a745;
  color: white;
}

.badge-nonaktif {
  background-color: #6c757d;
  color: white;
}

/* ---------- Breadcrumb ---------- */
.content-header h1 {
  font-size: 22px;
  font-weight: 600;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

/* ---------- Loading Overlay ---------- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
  color: #007bff;
}

/* ---------- Content Wrapper ---------- */
.content-wrapper {
  min-height: calc(100vh - 57px);
}

/* ---------- Footer ---------- */
.main-footer {
  font-size: 13px;
  color: #6c757d;
}

/* ---------- Login Page ---------- */
.login-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.login-box {
  width: 400px;
}

.login-card-body {
  border-radius: 10px;
  padding: 30px;
}

.login-logo b {
  color: #007bff;
}

/* ---------- Responsif ---------- */
@media (max-width: 768px) {
  .content-header h1 {
    font-size: 18px;
  }

  .login-box {
    width: 90%;
    margin: 0 auto;
  }

  .small-box .inner h3 {
    font-size: 24px;
  }
}
