body {
  background-color: #f8f9fa;
  font-family: 'Segoe UI', sans-serif;
}

/* Sidebar */
/* Sidebar */
.sidebar {
  background: linear-gradient(160deg, #607d54, #526b48); /* gradasi halus untuk kedalaman */
  min-height: 100vh;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  transition: all 0.3s ease;
  z-index: 1040;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
  left: -240px;
}

.sidebar.show {
  left: 0;
}

.sidebar h4 {
  padding: 24px 20px 20px;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.sidebar .nav {
  padding: 0 12px;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  padding: 12px 20px;
  margin-bottom: 6px;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.sidebar .nav-link i {
  font-size: 1.1rem;
  min-width: 24px;
  text-align: center;
}

/* Hover effect */
.sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.18);
  color: white;
  transform: translateX(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Active state – lebih menonjol */
.sidebar .nav-link.active {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  color: white;
  font-weight: 600;
  box-shadow: inset 4px 0 0 #4caf50; /* accent hijau di sisi kiri */
}

.sidebar .nav-link.active:hover {
  transform: translateX(0);
  box-shadow: inset 4px 0 0 #4caf50, 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Topbar */
.topbar {
  background-color: #fff;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.topbar .btn-outline-success {
  border-color: #607d54;
  color: #607d54;
}

.topbar .btn-outline-success:hover {
  background-color: #607d54;
  color: #fff;
}

.topbar input.form-control {
  border-radius: 8px;
}

.main-content {
  margin-left: 240px;
  padding: 20px;
  transition: margin-left 0.3s ease;
}

@media (max-width: 992px) {
  .sidebar {
    left: -240px;
  }

  .sidebar.show {
    left: 0;
  }

  .main-content {
    margin-left: 0;
  }

  /* Overlay for mobile */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1035;
    display: none;
  }

  .overlay.show {
    display: block;
  }
}

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card h5 {
  color: #607d54;
  font-weight: 600;
}

/* === Course Categories Table === */

/* Tombol Tambah */
.btn-add-category {
  background: linear-gradient(135deg, #607d54, #4caf50);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(96, 125, 84, 0.3);
}

.btn-add-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(96, 125, 84, 0.4);
  background: linear-gradient(135deg, #526b48, #459a4a);
}

/* Custom Table */
.table-category {
  margin-bottom: 0;
}

.table-category thead th {
  color: #607d54;
  font-weight: 600;
  padding: 12px 15px;
  border-bottom: 2px solid #e9ecef;
}

.table-category tbody td {
  padding: 14px 15px;
  vertical-align: middle;
  color: #495057;
}

.table-category tbody tr {
  transition: background-color 0.2s ease;
}

.table-category tbody tr:hover {
  background-color: rgba(96, 125, 84, 0.04);
}

/* Rating */
.rating {
  color: #607d54;
  font-weight: 600;
}

/* Action Buttons */
.btn-action {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin: 0 2px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-edit {
  background-color: rgba(96, 125, 84, 0.15);
  color: #607d54;
}

.btn-edit:hover {
  background-color: rgba(96, 125, 84, 0.3);
  transform: scale(1.05);
}

.btn-delete {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.btn-delete:hover {
  background-color: rgba(220, 53, 69, 0.25);
  transform: scale(1.05);
}

/* Card padding adjustment */
.card.p-4 {
  padding: 1.5rem !important;
}