/* Dashboard Specific Styles */

/* Metric Card Icons */
.card .rounded {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
}

/* Progress Bars */
.progress {
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  transition: width 0.6s ease;
}

/* Tables */
.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
  cursor: pointer;
}

.table td {
  vertical-align: middle;
}

/* Quick Action Buttons */
.btn {
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.btn i {
  font-size: 0.9rem;
}

/* Tab Navigation */
.nav-tabs .nav-link {
  color: #6c757d;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
  font-weight: 500;
}

.nav-tabs .nav-link:hover {
  border-color: transparent;
  color: #495057;
}

.nav-tabs .nav-link.active {
  color: #0d6efd;
  background-color: transparent;
  border-color: #0d6efd;
}

/* Card Headers */
.card-header {
  font-weight: 600;
  padding: 1rem 1.25rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .d-flex.justify-content-between {
    flex-direction: column;
    align-items: start !important;
    gap: 1rem;
  }

  .d-flex.gap-2 {
    width: 100%;
  }

  .d-flex.gap-2 .btn {
    flex: 1;
  }

  .table-responsive {
    font-size: 0.875rem;
  }

  .card .rounded {
    width: 48px;
    height: 48px;
  }
}

/* Dashboard Container */
.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

/* Small Text Helpers */
.small {
  font-size: 0.875rem;
}

/* Icon Sizes */
.fs-4 {
  font-size: 1.5rem !important;
}

/* Link Styling */
a.text-decoration-none {
  color: #0b5ed7;
}

a.text-decoration-none:hover {
  text-decoration: underline !important;
}

/* Shadow Utilities */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Border Utilities */
.border-0 {
  border: 0 !important;
}

/* Monthly Trend Items */
.card-body > div:last-child {
  margin-bottom: 0 !important;
}

/* Clickable Dashboard Stat Cards */
.dashboard-stat-card {
  cursor: pointer;
  border-radius: 0.5rem;
  overflow: hidden;
}

.dashboard-stat-card .card-body {
  transition: background-color 0.2s ease;
  border-radius: 0.5rem;
}

.dashboard-stat-card:hover .card-body {
  background: var(--color-neutral--300);
}

/* Remove text decoration from stat card links */
.stat-card-link {
  text-decoration: none;
  color: inherit;
}

.stat-card-link:hover {
  text-decoration: none;
  color: inherit;
}
