/* ========== Dashboard Styling ========== */

.dashboard-section {
  background: #ffffff;
  padding: 2rem;
  margin-bottom: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.dashboard-section:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.dashboard-section h5 {
  font-weight: 600;
  color: #444;
}

.dashboard-chart {
  max-height: 500px;
  max-width: 100%;
}

/* Cards inside insight */
.card-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.card {
  border: none;
  transition: all 0.2s ease-in-out;
}

.card:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Buttons */
.btn-primary {
  font-weight: 500;
  border-radius: 8px;
}

.btn-success {
  font-weight: 500;
  border-radius: 8px;
}

.table thead th {
  vertical-align: middle;
  text-align: center;
}

.table td {
  font-size: 0.9rem;
}

.table th {
  font-weight: 600;
}

/* For consistent spacing on sections */
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #555;
}

/* Pie Chart Styling */
.pie-chart {
  max-width: 500px;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.pie-chart:hover {
  transform: scale(1.03);
}

.sidebar {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.sidebar .text-center {
    margin-top: 0;
    padding-top: 0;
}

.navbar-brand {
  margin-right: 1rem;
}

.sidebar-nav .nav-link {
  padding: 12px 10px;
  font-size: 16px;
  transition: all 0.2s;
}
.sidebar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Fade in transisi saat load */
.fade-in {
  animation: fadeInAnimation ease 0.8s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  opacity: 0;
}
@keyframes fadeInAnimation {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Loader sederhana */
.loader-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}
.loader-overlay.show {
  display: flex;
}
.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}