/* Glassmorphism Card */
.glass-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
}

/* Forms */
.form-control, .form-select {
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  border-radius: 8px;
}
.form-control:focus, .form-select:focus {
  background-color: rgba(15, 23, 42, 1);
  border-color: var(--color-primary);
  color: var(--text-light);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn-primary-gradient {
  background: linear-gradient(90deg, var(--color-primary), var(--color-success));
  border: none;
  color: white;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
  color: white;
}

/* Badges */
.badge {
  padding: 0.4em 0.8em;
  border-radius: 20px;
  font-weight: 500;
}
.badge-admin { background-color: rgba(220, 53, 69, 0.2); color: #ff8793; border: 1px solid #dc3545; }
.badge-kadis { background-color: rgba(255, 193, 7, 0.2); color: #ffda6a; border: 1px solid #ffc107; }
.badge-kabid { background-color: rgba(13, 110, 253, 0.2); color: #8bb9fe; border: 1px solid #0d6efd; }
.badge-staff { background-color: rgba(25, 135, 84, 0.2); color: #75b798; border: 1px solid #198754; }
.badge-kelurahan { background-color: rgba(13, 202, 240, 0.2); color: #6edff6; border: 1px solid #0dcaf0; }

.status-diterima { background-color: rgba(13, 202, 240, 0.2); color: #6edff6; }
.status-proses { background-color: rgba(255, 193, 7, 0.2); color: #ffda6a; }
.status-disetujui { background-color: rgba(13, 110, 253, 0.2); color: #8bb9fe; }
.status-selesai { background-color: rgba(25, 135, 84, 0.2); color: #75b798; }
.status-ditolak { background-color: rgba(220, 53, 69, 0.2); color: #ff8793; }

/* Tables */
.table-dark-custom {
  color: var(--text-light);
  vertical-align: middle;
}
.table-dark-custom th {
  background-color: rgba(30, 41, 59, 0.9);
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}
.table-dark-custom td {
  background-color: transparent;
  border-bottom: 1px solid var(--border-color);
}
.table-dark-custom tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Floating Action Button (FAB) */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-info));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
  cursor: pointer;
  transition: transform var(--transition-speed);
  z-index: 1000;
  border: none;
}
.fab:hover {
  transform: scale(1.1) rotate(90deg);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.spinner-custom {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Toast Customization */
.toast-container-custom {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}
.toast-custom {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid var(--border-color);
}
