@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
body { background: #0f0f13; color: #e0e0e0; display: flex; min-height: 100vh; }
a { text-decoration: none; color: inherit; }

/* Sidebar */
.sidebar { width: 250px; background: #16161d; border-right: 1px solid #2a2a35; padding: 20px 0; position: fixed; height: 100vh; overflow-y: auto; }
.brand { text-align: center; padding: 0 20px 20px; border-bottom: 1px solid #2a2a35; margin-bottom: 20px; }
.brand img { width: 80px; margin-bottom: 10px; }
.brand h3 { color: #d4af37; font-size: 18px; }
.brand small { color: #9e9e9e; font-size: 11px; }
.sidebar nav a { display: block; padding: 12px 20px; color: #9e9e9e; transition: 0.3s; border-left: 3px solid transparent; }
.sidebar nav a:hover { background: #1f1f27; color: #d4af37; border-left-color: #d4af37; }
.text-danger { color: #dc3545 !important; }

/* Main Content */
.main-content { margin-left: 250px; padding: 40px; flex: 1; }
.page-title { color: #d4af37; margin-bottom: 20px; }

/* Cards & Tables */
.card { background: #16161d; border: 1px solid #2a2a35; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #2a2a35; }
th { color: #d4af37; font-weight: 600; }
tr:hover td { background: #1f1f27; }

/* Forms & Buttons */
input, select { background: #1f1f27; border: 1px solid #3a3a45; color: #fff; padding: 10px; border-radius: 8px; outline: none; width: 100%; margin-bottom: 10px; }
input:focus, select:focus { border-color: #d4af37; }
.form-row { display: flex; gap: 10px; align-items: center; }
.form-row input { margin-bottom: 0; }

button { cursor: pointer; padding: 10px 20px; border: none; border-radius: 8px; font-weight: 600; transition: 0.2s; }
.btn-primary { background: #d4af37; color: #000; }
.btn-primary:hover { background: #e5c158; transform: translateY(-2px); }
.btn-success { background: #198754; color: #fff; }
.btn-success:hover { background: #146c43; }
.btn-small { display: inline-block; padding: 5px 10px; font-size: 12px; background: #0dcaf0; color: #000; border-radius: 5px; margin-right: 5px; }

/* Badges & Alerts */
.badge { padding: 5px 10px; border-radius: 5px; font-size: 12px; font-weight: 600; }
.badge-pending { background: #ffc107; color: #000; }
.badge-paid { background: #198754; color: #fff; }
.alert-danger { background: #341a1a; color: #ea868f; padding: 10px; border-radius: 8px; margin-bottom: 15px; }
.alert-success { background: #1a3423; color: #75b798; padding: 10px; border-radius: 8px; margin-bottom: 15px; }

/* Login Page */
.login-body { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, #1f1f27 0%, #0f0f13 100%); }
.login-card { background: #16161d; border: 1px solid #d4af37; padding: 40px; border-radius: 12px; width: 350px; text-align: center; box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1); }
.logo-login { width: 120px; margin-bottom: 20px; }
.login-card h2 { color: #d4af37; margin-bottom: 5px; }
.login-card p { color: #9e9e9e; margin-bottom: 30px; font-size: 14px; }

/* Statistik Dashboard */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px; }
.stat-card { background: #16161d; padding: 20px; border-radius: 12px; border-left: 4px solid #d4af37; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.stat-card h6 { color: #9e9e9e; font-size: 14px; margin-bottom: 10px; }
.stat-card h2 { color: #fff; font-size: 28px; }

/* ================= SWEETALERT2 CUSTOM THEME ================= */
.swal2-popup {
  background-color: #16161d !important;
  color: #e0e0e0 !important;
  border: 1px solid #d4af37 !important;
  border-radius: 12px !important;
  font-family: 'Poppins', sans-serif !important;
}
.swal2-title {
  color: #d4af37 !important;
  font-size: 20px !important;
}
.swal2-html-container {
  color: #e0e0e0 !important;
}
.swal2-confirm {
  background-color: #d4af37 !important;
  color: #000 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}
.swal2-confirm:hover {
  background-color: #e5c158 !important;
}
.swal2-cancel {
  background-color: #6c757d !important;
  color: #fff !important;
  border-radius: 8px !important;
}
.swal2-cancel:hover {
  background-color: #5a6268 !important;
}
.swal2-input {
  background-color: #1f1f27 !important;
  color: #fff !important;
  border: 1px solid #3a3a45 !important;
  border-radius: 8px !important;
}
