/* CSS Variables */
:root {
  --primary-color: #82272e;
  --secondary-color: #13406a;
  --accent-color: #f1d7dc;
  --text-color: #333;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #343a40;
  --success-color: #28a745;
  --warning-color: #ffa800;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --box-shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 260px;
  --header-height: 80px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text-color);
  background-color: var(--light-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Layout */
.container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  width: var(--sidebar-width);
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  overflow-y: auto;
}

.logo-container {
  padding: 25px 20px;
  text-align: center;
  border-bottom: 1px solid var(--medium-gray);
}

.logo {
  max-width: 160px;
  height: auto;
}

.nav-menu {
  padding: 20px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 14px 25px;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
  margin: 2px 0;
}

.nav-item:hover {
  background-color: rgba(130, 39, 46, 0.05);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.nav-item.active {
  background-color: rgba(130, 39, 46, 0.1);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

.nav-item i {
  margin-right: 15px;
  font-size: 18px;
  width: 24px;
  text-align: center;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--medium-gray);
}

.mobile-menu {
  display: none;
}

.header-info h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 4px;
}

.header-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #6b7280;
}

.time-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-stats {
  display: flex;
  gap: 30px;
}

.quick-stat {
  text-align: center;
}

.quick-stat .stat-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
  font-weight: 500;
}

.quick-stat .stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notification-icon {
  position: relative;
  color: var(--text-color);
  font-size: 20px;
  transition: var(--transition);
}

.notification-icon:hover {
  color: var(--primary-color);
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--medium-gray);
  transition: var(--transition);
}

.user-avatar:hover {
  border-color: var(--primary-color);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

/* Dashboard Content */
.dashboard-content {
  padding: 30px;
  flex: 1;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.refresh-btn, .view-detail-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.refresh-btn:hover, .view-detail-btn:hover {
  background-color: #6d1e24;
  transform: translateY(-1px);
  box-shadow: var(--box-shadow);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-lg);
}

.stat-card.primary::before { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.stat-card.warning::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-card.success::before { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-card.info::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.stat-card.health::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.stat-title {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.icon-badge.blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.icon-badge.orange { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.icon-badge.green { background: linear-gradient(135deg, #10b981, #34d399); }

.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 16px;
  line-height: 1;
}

.stat-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.detail-label {
  color: #6b7280;
  font-weight: 500;
}

.detail-value {
  font-weight: 600;
}

.detail-value.approved { color: var(--success-color); }
.detail-value.pending { color: var(--warning-color); }

.stat-progress {
  margin-bottom: 16px;
}

.progress-bar {
  background-color: #e5e7eb;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--warning-color), #fbbf24);
  border-radius: 10px;
  transition: width 0.8s ease;
}

.progress-text {
  font-size: 12px;
  color: #6b7280;
}

.chart-container.small {
  height: 120px;
  position: relative;
  margin-bottom: 16px;
}

.chart-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.chart-percentage {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
}

.stat-footer {
  margin-bottom: 16px;
}

.new-registrations {
  font-size: 13px;
  color: var(--success-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.new-registrations::before {
  content: '↗';
  font-size: 16px;
}

.stat-breakdown {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.breakdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.breakdown-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.breakdown-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}

.trend-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
}

.trend-indicator.positive {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.trend-indicator.negative {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.health-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.health-indicator.online {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  animation: pulse 2s infinite;
}

.health-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.health-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.metric-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
}

.stat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.stat-link:hover {
  color: #6d1e24;
  gap: 12px;
}

.stat-link::after {
  content: '→';
  font-size: 14px;
  transition: var(--transition);
}

/* Charts Section */
.analytics-section {
  margin-bottom: 40px;
}

.charts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.chart-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chart-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
}

.chart-controls {
  display: flex;
  gap: 8px;
}

.chart-control {
  background: none;
  border: 1px solid var(--medium-gray);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
}

.chart-control.active,
.chart-control:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.chart-period {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.chart-content {
  height: 300px;
  position: relative;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-color.mbbs { background-color: #2563eb; }
.legend-color.bds { background-color: #dc2626; }

/* Users Section */
.users-section {
  margin-bottom: 40px;
}

.users-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.users-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.users-card.urgent {
  border-top: 4px solid var(--warning-color);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--medium-gray);
  background-color: #fafbfc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-all-link {
  font-size: 13px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.view-all-link:hover {
  color: #6d1e24;
}

.users-list {
  max-height: 400px;
  overflow-y: auto;
}

.user-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f3f4f6;
  transition: var(--transition);
  cursor: pointer;
}

.user-item:hover {
  background-color: #fafbfc;
}

.user-item:last-child {
  border-bottom: none;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 16px;
  flex-shrink: 0;
  border: 2px solid var(--medium-gray);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 4px;
  font-size: 15px;
}

.user-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}

.user-degree, .user-year {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.user-degree {
  background-color: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.user-year {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.user-email {
  font-size: 13px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-status, .user-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.approved {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.status-badge.pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.status-badge.rejected {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.join-date {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.approve-btn, .reject-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: var(--transition);
}

.approve-btn {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.approve-btn:hover {
  background-color: #059669;
  color: white;
}

.reject-btn {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.reject-btn:hover {
  background-color: #dc2626;
  color: white;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 16px;
  font-weight: 500;
}

/* Actions Section */
.actions-section {
  margin-bottom: 40px;
}

.actions-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.action-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--box-shadow);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-lg);
  border-color: var(--primary-color);
}

.action-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.action-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
}

.action-content p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 24px 30px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left span {
  font-size: 14px;
  opacity: 0.9;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
  text-decoration: none;
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Animations */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animations */
.stat-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:nth-child(5) { animation-delay: 0.5s; }
.stat-card:nth-child(6) { animation-delay: 0.6s; }

.chart-card, .users-card, .action-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
  animation-delay: 0.3s;
}

.nav-item {
  animation: slideInLeft 0.4s ease-out;
  animation-fill-mode: both;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.15s; }
.nav-item:nth-child(3) { animation-delay: 0.2s; }
.nav-item:nth-child(4) { animation-delay: 0.25s; }
.nav-item:nth-child(5) { animation-delay: 0.3s; }
.nav-item:nth-child(6) { animation-delay: 0.35s; }
.nav-item:nth-child(7) { animation-delay: 0.4s; }
.nav-item:nth-child(8) { animation-delay: 0.45s; }
.nav-item:nth-child(9) { animation-delay: 0.5s; }
.nav-item:nth-child(10) { animation-delay: 0.55s; }

/* Responsive Design */
@media (max-width: 1400px) {
  .header-stats {
    display: none;
  }
  
  .users-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1200px) {
  .charts-container {
    grid-template-columns: 1fr;
  }
  
  .users-container {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
    --header-height: 70px;
  }
  
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .mobile-menu {
    display: block;
  }
  
  #sidebar-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
  }
  
  .header {
    padding: 0 20px;
    height: var(--header-height);
  }
  
  .header-info h1 {
    font-size: 24px;
  }
  
  .header-meta {
    flex-direction: column;
    gap: 4px;
  }
  
  .dashboard-content {
    padding: 20px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .refresh-btn, .view-detail-btn {
    flex: 1;
    justify-content: center;
  }
  
  .actions-grid {
    grid-template-columns: 1fr;
  }
  
  .action-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .user-item {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .user-info {
    min-width: 200px;
  }
  
  .user-actions, .user-status {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .dashboard-content {
    padding: 16px;
  }
  
  .stat-card {
    padding: 20px;
  }
  
  .stat-value {
    font-size: 28px;
  }
  
  .chart-card, .users-card {
    padding: 20px;
  }
  
  .user-item {
    padding: 16px;
  }
  
  .user-avatar {
    width: 40px;
    height: 40px;
  }
  
  .action-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for keyboard navigation */
.nav-item:focus,
.refresh-btn:focus,
.view-detail-btn:focus,
.chart-control:focus,
.action-card:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .stat-card,
  .chart-card,
  .users-card,
  .action-card {
    border: 2px solid var(--text-color);
  }
  
  .status-badge {
    border: 1px solid currentColor;
  }
}