/* Admin Dashboard Styles */
body {
  font-size: 0.875rem;
  background-color: #f8f9fc;
}

.feather {
  width: 16px;
  height: 16px;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 48px 0 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

@media (max-width: 767.98px) {
  .sidebar {
    top: 5rem;
  }
}

.sidebar-sticky {
  height: calc(100vh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar .nav-link {
  font-weight: 500;
  color: #adb5bd;
  margin-bottom: 0.2rem;
  padding: 0.5rem 1rem;
}

.sidebar .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #4e73df;
}

.sidebar .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-heading {
  font-size: 0.75rem;
}

/* Content area */
main {
  padding-top: 1.5rem;
}

/* Cards */
.card {
  margin-bottom: 1.5rem;
  border: none;
  border-radius: 0.35rem;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
}

.card .card-header .dropdown {
  line-height: 1;
}

.card .card-header .dropdown .dropdown-menu {
  line-height: 1.5;
}

.card .card-header[data-bs-toggle="collapse"] {
  text-decoration: none;
  position: relative;
  padding: 0.75rem 1.25rem;
}

.card .card-header[data-bs-toggle="collapse"]::after {
  position: absolute;
  right: 0;
  top: 0;
  padding-right: 1.725rem;
  line-height: 51px;
  font-weight: 900;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  color: #d1d3e2;
}

.card .card-header[data-bs-toggle="collapse"].collapsed {
  border-radius: 0.35rem;
}

.card .card-header[data-bs-toggle="collapse"].collapsed::after {
  content: "\f105";
}

/* Border left utilities */
.border-left-primary {
  border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
  border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
  border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
  border-left: 0.25rem solid #f6c23e !important;
}

.border-left-danger {
  border-left: 0.25rem solid #e74a3b !important;
}

/* Font weight utilities */
.font-weight-bold {
  font-weight: 700 !important;
}

/* Text colors */
.text-gray-800 {
  color: #5a5c69 !important;
}

.text-gray-300 {
  color: #dddfeb !important;
}

.text-xs {
  font-size: 0.7rem;
}

/* Section content visibility */
.section-content {
  display: none;
}

.section-content.active {
  display: block;
}

/* Chart containers */
.chart-area {
  position: relative;
  height: 20rem;
  width: 100%;
}

.chart-pie {
  position: relative;
  height: 17rem;
  width: 100%;
}

/* Table styles */
.table-responsive {
  padding: 0;
}

.table th {
  background-color: #f8f9fc;
  font-weight: 700;
  color: #4e73df;
}

/* Action buttons in tables */
.action-btns .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

/* Form styles */
.form-label {
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-body {
    padding: 0.75rem;
  }

  .table {
    font-size: 0.8rem;
  }
}

/* Status badges */
.badge-success {
  background-color: #1cc88a;
  color: white;
}

.badge-warning {
  background-color: #f6c23e;
  color: white;
}

.badge-danger {
  background-color: #e74a3b;
  color: white;
}

.badge-info {
  background-color: #36b9cc;
  color: white;
}

/* Pagination styling */
.pagination .page-item.active .page-link {
  background-color: #4e73df;
  border-color: #4e73df;
}

.pagination .page-link {
  color: #4e73df;
}

/* Admin panel styling */

/* Section visibility control */
.section-content {
  display: none;
}

.section-content.active {
  display: block;
}

/* Sidebar styling */
#sidebar {
  min-height: 100vh;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

/* Card styling */
.card {
  border: none;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
}

/* Table styling */
.table th {
  font-weight: 600;
  background-color: #f8f9fc;
}

/* Actions buttons */
.btn-action {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Chart containers */
.chart-area, .chart-pie {
  position: relative;
  height: 20rem;
}

/* Border left colors for dashboard cards */
.border-left-primary {
  border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
  border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
  border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
  border-left: 0.25rem solid #f6c23e !important;
}

/* Font size utilities */
.text-xs {
  font-size: 0.7rem;
}

/* Toast container */
#toast-container {
  z-index: 1060;
}

/* Custom scrollbar for sidebar */
#sidebar::-webkit-scrollbar {
  width: 0.5rem;
}

#sidebar::-webkit-scrollbar-track {
  background-color: #343a40;
}

#sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Add any additional styles below */
