/* Kunci scrollbar luar browser agar topbar & filter tidak ikut bergeser */
html, body {
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden !important;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8f9fa;
}

/* Layout Utama */
#wrapper {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

#sidebar-wrapper {
  height: 100vh;
  width: 250px;
  flex-shrink: 0;
  background-color: #1e293b;
  overflow-y: auto;
}

#sidebar-wrapper .sidebar-heading {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar-wrapper .list-group-item {
  background-color: transparent;
  color: #94a3b8;
  border: none;
  padding: 0.9rem 1.5rem;
  font-weight: 500;
  border-left: 4px solid transparent;
}

#sidebar-wrapper .list-group-item:hover,
#sidebar-wrapper .list-group-item.active {
  background-color: #0f172a;
  color: #ffffff;
  border-left-color: #0d6efd;
}

#page-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  overflow: hidden;
}

/* Area Workspace Utama */
#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  overflow: hidden;
}

#module-action-area {
  flex-shrink: 0;
}

/* PEMBUNGKUS TABEL: Disesuaikan agar memberi jarak aman dari taskbar */
.table-scroll-container {
  max-height: calc(100vh - 310px) !important; /* Dipendekkan agar baris paling bawah tidak terpotong */
  overflow-y: auto !important;
  border-radius: 0.375rem;
  margin-bottom: 1rem; /* Jarak aman dari batas bawah layar */
}

/* Header Hitam Mengunci di Atas Saat Tabel Di-scroll */
.table-scroll-container table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: #212529 !important;
  color: #ffffff !important;
}

/* Styling Scrollbar Khusus Area Tabel */
.table-scroll-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.table-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.table-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Stat Cards */
.stat-card {
  border: none;
  border-radius: 8px;
  color: #fff;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-card.card-blue { background-color: #0d6efd; }
.stat-card.card-green { background-color: #198754; }
.stat-card.card-yellow { background-color: #ffc107; color: #000; }
.stat-card.card-teal { background-color: #0dcaf0; color: #000; }

.stat-card .card-title {
  font-size: 0.9rem;
  opacity: 0.9;
}

.stat-card .card-value {
  font-size: 2.2rem;
  font-weight: bold;
}

/* Login Container */
.style-login-card {
  width: 100%;
  max-width: 400px;
}
