/* ========= GLOBAL ========= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9fb;
  color: #2c2c2c;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* ========= SIDEBAR ========= */
.sidebar {
  background: linear-gradient(180deg, #800000 0%, #a00000 100%);
  min-height: 100vh;
  width: 250px;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  transition: all 0.3s ease;
  z-index: 1050;
}
.sidebar h4 {
  font-weight: 700;
  text-align: center;
  margin: 25px 0;
  letter-spacing: 0.5px;
}
.sidebar a {
  color: #fdfdfd;
  display: block;
  padding: 12px 22px;
  font-size: 15px;
  border-left: 4px solid transparent;
  transition: all 0.3s;
}
.sidebar a:hover,
.sidebar a.active {
  background: rgba(255,255,255,0.15);
  border-left: 4px solid #ffd700;
}
.sidebar hr {
  border-color: rgba(255,255,255,0.2);
  margin: 15px 0;
}

/* Tombol toggle untuk mobile */
.sidebar-toggle {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* ========= CONTENT ========= */
.main-content {
  margin-left: 250px;
  padding: 25px;
  transition: margin 0.3s ease;
}
.navbar {
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 12px 18px;
}
.text-maroon {
  color: #800000;
}

/* ========= CARD ========= */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}
.card h5, .card h6 {
  color: #800000;
  font-weight: 600;
}

/* ========= ICON BOX ========= */
.icon-box {
  width: 55px;
  height: 55px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}
.bg-maroon { background: linear-gradient(45deg,#800000,#b30000); }
.bg-gray   { background: linear-gradient(45deg,#6c757d,#5a6268); }
.bg-gold   { background: linear-gradient(45deg,#d4af37,#ffd700); }

/* ========= BUTTON ========= */
.btn-maroon {
  background-color: #800000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 500;
  transition: all 0.3s;
}
.btn-maroon:hover {
  background-color: #a00000;
  color: #fff;
}

/* ========= TABLE ========= */
.table-container {
  overflow-x: auto;
}
.table thead {
  background-color: #800000;
  color: #fff;
}
.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f8f1f1;
}
.table-hover tbody tr:hover {
  background-color: #f0dada;
  transition: background-color 0.3s ease;
}
.badge.bg-maroon {
  background-color: #800000 !important;
  color: #fff;
}

/* ========= FORM ========= */
.form-control:focus {
  border-color: #800000;
  box-shadow: 0 0 0 0.2rem rgba(128,0,0,0.25);
}
label {
  font-weight: 500;
}

/* ========= FOOTER ========= */
.footer {
  text-align: center;
  color: #777;
  font-size: 14px;
  margin-top: 30px;
  padding: 10px 0;
}

/* ========= SCROLLBAR (Chrome, Edge) ========= */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #800000;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a00000;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 991px) {
  .sidebar {
    width: 220px;
    transform: translateX(-100%);
    position: fixed;
    height: 100vh;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .sidebar-toggle {
    display: block;
  }
  .main-content {
    margin-left: 0;
    padding: 15px;
  }
  .navbar {
    margin-bottom: 15px;
  }
}
