/* Admin Dashboard Styles */

/* Active menu item styling */
.menu .active {
  background-color: rgba(var(--p), 0.1) !important;
  color: var(--p) !important;
  font-weight: 500;
  border-radius: 0.5rem;
}

/* Improve card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Stats card styling */
.stat-card {
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-left-color: var(--p);
}

.stat-card.students {
  border-left-color: #4f46e5;
}

.stat-card.teachers {
  border-left-color: #0891b2;
}

.stat-card.topics {
  border-left-color: #ca8a04;
}

.stat-card.pending {
  border-left-color: #dc2626;
}

/* Table improvements */
.admin-table {
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table thead th {
  background-color: rgba(var(--p), 0.05);
  color: var(--p);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.admin-table tbody tr {
  border-bottom: 1px solid rgba(var(--b2), 0.2);
  transition: background-color 0.2s;
}

.admin-table tbody tr:hover {
  background-color: rgba(var(--p), 0.05);
}

/* Custom badge colors for status */
.badge-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-approved {
  background-color: #dcfce7;
  color: #166534;
}

.badge-rejected {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* Modal improvements */
.modal-box {
  max-height: 85vh;
}

/* Fix for sidebar scrolling on small screens */
@media (max-width: 1024px) {
  .drawer-side {
    overflow-y: auto;
  }
}

/* Improved form styling */
.admin-form .form-control {
  margin-bottom: 1.5rem;
}

.admin-form .label {
  margin-bottom: 0.25rem;
}

.admin-form .label-text {
  font-weight: 500;
  color: var(--b3);
}
