/* ================= RESET DASAR ================= */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f1f2f7;
  /* Warna latar belakang utama */
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

a {
  color: #777;
  text-decoration: none;
}

.padding-top {
  padding-top: 20px;
}

/* ================= LAYOUT UTAMA ================= */
.page {
  position: relative;
  display: block;
  top: 50px;
  left: 0;
  padding: 35px 15px 20px 270px;
  background-color: #f9f9f9;
  /* Ubah latar konten dari putih ke abu muda */
  min-height: calc(100vh - 80px);
  /* Lebih fleksibel agar tidak terlalu panjang kosong */
}

/* ================= PANEL DASHBOARD ================= */
.col-md-3 {
  margin-bottom: 20px;
}

.panel-box {
  width: 100%;
  max-height: 160px;
  min-height: 120px;
  text-align: center;
  border: none;
  background-color: #fff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.panel-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.panel-icon {
  width: 40%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 0 0 8px;
}

.panel-icon i {
  line-height: 65px;
  font-size: 40px;
  color: #fff;
}

.panel-value {
  width: 60%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0 8px 8px 0;
}

.panel-value h2 {
  margin: 0;
  font-size: 28px;
}

.panel-value p {
  margin: 0;
  font-size: 14px;
  color: #999;
}

/* ================= WARNA LATAR ================= */
.bg-secondary1 {
  background-color: #8e44ad !important;
}

.bg-blue2 {
  background-color: #3498db !important;
}

.bg-red {
  background-color: #e74c3c !important;
}

/* DIUBAH: Ungu diganti menjadi biru violet cerah */
.bg-purple {
  background-color: #6c5ce7 !important;
  /* ungu biru cerah dari Flat UI / Material Design */
}

/* DIUBAH: Merah tua diganti menjadi oranye kemerahan */
.bg-danger {
  background-color: #e67e22 !important;
  /* oranye gelap, masih menunjukkan ‘peringatan’ */
}

.bg-green {
  background-color: #27ae60 !important;
}

.bg-yellow {
  background-color: #f1c40f !important;
}

/* ================= HEADER ================= */
#header {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  background-color: #fff;
  width: 100%;
  height: 65px;
  line-height: 65px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

header>.logo {
  color: #fff;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  width: 250px;
  background-color: #db3434;
}

.header-date {
  color: #9b9b9b;
  margin-left: 20px;
}

/* ================= SIDEBAR ================= */
.sidebar {
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  padding: 65px 0 0;
  height: 100%;
  width: 250px;
  background: #272727;
  border-right: 1px solid #ddd;
  text-align: center;
  overflow-y: auto;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar ul li {
  display: block;
}

.sidebar ul li a,
ul.submenu li a {
  color: #aeb2b7;
  display: block;
  text-decoration: none;
  text-align: left;
  padding: 10px 20px;
  transition: 0.3s;
}

.sidebar ul li a:hover,
ul.submenu li a:hover {
  color: white;
  background-color: #35404d;
}

/* ================= CHART & TABEL ================= */
.panel-default>.panel-heading {
  background-color: #f5f5f5;
  border-bottom: 2px solid #3498DB;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 15px;
}

.table-responsive {
  overflow-x: auto;
}

/* ================= UTILITAS ================= */
.img-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

h4 .label {
  font-size: 14px;
}

.text-muted {
  color: #7f8c8d !important;
}

.img-size-2 {
  width: 150px;
  height: 150px;
  object-fit: cover;
  /* Agar gambar memenuhi kotak tanpa distorsi */
  border-radius: 50%;
  /* Tetap bulat */
  border: 3px solid #ccc;
  /* Tambahan opsional agar lebih estetik */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* Tambahan efek bayangan */
  display: block;
  margin: 0 auto;
}

/* ======= Tampilan Login Rapi ======= */
.login-wrapper {
  min-height: 100%;
  width: 100%;
  border: 1px solid red;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-page {
  width: 100%;
  max-width: 400px;
  padding: 30px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid #ccc;
  box-sizing: border-box;
}

.login-page .form-group {
  margin-bottom: 20px;
}

.login-page .form-control {
  height: 44px;
  font-size: 14px;
  border-radius: 4px;
}

.login-page .btn {
  width: 100%;
  padding: 12px;
  font-weight: bold;
  border-radius: 4px !important;
}

.flex-panel-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.flex-panel-container .panel {
  flex: 1 1 19%;
  max-width: 19%;
  text-decoration: none;
  color: white;
  border-radius: 8px;
  overflow: hidden;
}

.panel-body {
  padding: 20px;
}