@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #0099e5;
  --bg-sidebar: #1e293b;
  --bg-sidebar-hover: #334155;
  --bg-body: #f1f5f9;
  --card-bg: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --border-radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s ease-in-out;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
}

/* Layout */
.sidebar {
  background: var(--bg-sidebar);
  min-height: 100vh;
  padding: 1.25rem 0.75rem;
}

.admin-main {
  min-height: 100vh;
  padding: 1.5rem;
}

.sidebar .nav-link {
  color: #cbd5e1 !important;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
  background-color: var(--bg-sidebar-hover);
  color: white !important;
}

.sidebar .nav-link.active {
  border-left: 4px solid var(--primary-color);
}

/* Header */
.dashboard-header {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

/* Metric Cards */
.metric-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 153, 229, 0.1);
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tables */
.table-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-card .card-header {
  background: transparent;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem;
}

.table-card .table {
  margin-bottom: 0;
}

.table-card .table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.table-card .table td {
  padding: 1rem 1.5rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  font-weight: 500;
}

.table-card .table tbody tr:last-child td {
  border-bottom: none;
}

.table-card .table tbody tr {
  transition: var(--transition);
}

.table-card .table tbody tr:hover {
  background-color: #f8fafc;
}

.badge {
  padding: 0.4em 0.8em;
  border-radius: 6px;
  font-weight: 600;
}
