/* Clinical Resource Hub - Modern Design System */

/* Import Montserrat Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables - Design System */
:root {
  /* Primary Colors - Medical Theme */
  --primary-blue: #2563eb;
  --primary-blue-dark: #1d4ed8;
  --primary-blue-light: #3b82f6;
  
  /* Secondary Colors */
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #14b8a6;
  
  /* Accent Colors */
  --green: #059669;
  --orange: #ea580c;
  --purple: #7c3aed;
  --red: #dc2626;
  
  /* Neutral Colors */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Typography */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--gray-50);
  margin: 0;
  padding: 0;
}

/* Container System */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--spacing-md) * -0.5);
}

.col,
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
  position: relative;
  padding: 0 calc(var(--spacing-md) * 0.5);
  width: 100%;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
  .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Flexbox Utilities */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-none { display: none !important; }

.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-fill { flex: 1 1 auto !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }

/* Spacing Utilities */
.m-0 { margin: 0 !important; }
.m-1 { margin: var(--spacing-xs) !important; }
.m-2 { margin: var(--spacing-sm) !important; }
.m-3 { margin: var(--spacing-md) !important; }
.m-4 { margin: var(--spacing-lg) !important; }
.m-5 { margin: var(--spacing-xl) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-xs) !important; }
.mt-2 { margin-top: var(--spacing-sm) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.mt-4 { margin-top: var(--spacing-lg) !important; }
.mt-5 { margin-top: var(--spacing-xl) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-xs) !important; }
.mb-2 { margin-bottom: var(--spacing-sm) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
.mb-5 { margin-bottom: var(--spacing-xl) !important; }

.ms-1 { margin-left: var(--spacing-xs) !important; }
.ms-2 { margin-left: var(--spacing-sm) !important; }
.ms-3 { margin-left: var(--spacing-md) !important; }

.me-1 { margin-right: var(--spacing-xs) !important; }
.me-2 { margin-right: var(--spacing-sm) !important; }
.me-3 { margin-right: var(--spacing-md) !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: var(--spacing-xs) !important; }
.p-2 { padding: var(--spacing-sm) !important; }
.p-3 { padding: var(--spacing-md) !important; }
.p-4 { padding: var(--spacing-lg) !important; }
.p-5 { padding: var(--spacing-xl) !important; }

.py-3 { padding-top: var(--spacing-md) !important; padding-bottom: var(--spacing-md) !important; }
.py-5 { padding-top: var(--spacing-xl) !important; padding-bottom: var(--spacing-xl) !important; }

/* Gap Utilities */
.gap-1 { gap: var(--spacing-xs) !important; }
.gap-2 { gap: var(--spacing-sm) !important; }
.gap-3 { gap: var(--spacing-md) !important; }
.gap-4 { gap: var(--spacing-lg) !important; }

/* Width Utilities */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* Text Utilities */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }

.text-muted { color: var(--gray-500) !important; }
.text-light { color: rgba(255, 255, 255, 0.9) !important; }

.fw-light { font-weight: var(--font-weight-light) !important; }
.fw-normal { font-weight: var(--font-weight-normal) !important; }
.fw-medium { font-weight: var(--font-weight-medium) !important; }
.fw-semibold { font-weight: var(--font-weight-semibold) !important; }
.fw-bold { font-weight: var(--font-weight-bold) !important; }

/* Position Utilities */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }

.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0, .left-0 { left: 0 !important; }
.end-0, .right-0 { right: 0 !important; }

/* Border Utilities */
.border { border: 1px solid var(--gray-200) !important; }
.border-0 { border: none !important; }
.rounded { border-radius: var(--radius-md) !important; }
.rounded-4 { border-radius: var(--radius-xl) !important; }

/* List Utilities */
.list-unstyled {
  list-style: none !important;
  padding-left: 0 !important;
}

/* Spinner */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: -0.125em;
  border: 0.25em solid currentcolor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.125em;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  color: var(--gray-800);
}

h1 { font-size: 2.5rem; font-weight: var(--font-weight-extrabold); }
h2 { font-size: 2rem; font-weight: var(--font-weight-bold); }
h3 { font-size: 1.5rem; font-weight: var(--font-weight-semibold); }
h4 { font-size: 1.25rem; font-weight: var(--font-weight-semibold); }
h5 { font-size: 1.125rem; font-weight: var(--font-weight-medium); }
h6 { font-size: 1rem; font-weight: var(--font-weight-medium); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--gray-600);
}

/* Header Component */
.site-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--teal) 100%);
  color: white;
  padding: var(--spacing-3xl) 0;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 0,100 1000,80 1000,0"/></svg>') no-repeat center bottom;
  background-size: cover;
}

.site-header .container {
  position: relative;
  z-index: 1;
}

.site-header h1 {
  font-size: 3rem;
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--spacing-md);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-header p {
  font-size: 1.25rem;
  font-weight: var(--font-weight-normal);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* Navigation */
.navbar-custom {
  background: white;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--spacing-md) 0;
}

.navbar-brand {
  font-weight: var(--font-weight-bold);
  font-size: 1.25rem;
  color: var(--primary-blue) !important;
}

.navbar-custom .navbar-nav .nav-link {
  font-weight: var(--font-weight-medium);
  color: var(--gray-600);
  transition: color 0.3s ease;
}

.navbar-custom .navbar-nav .nav-link:hover {
  color: var(--primary-blue);
}

/* Admin Navigation */
.admin-nav {
  background: var(--primary-blue);
  color: white;
  padding: var(--spacing-md) 0;
  box-shadow: var(--shadow-md);
}

.admin-nav .navbar-brand {
  color: white !important;
  font-weight: var(--font-weight-bold);
}

/* Cards */
.card-custom {
  background: white;
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  overflow: hidden;
}

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

.card-custom .card-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--spacing-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
}

.card-custom .card-body {
  padding: var(--spacing-xl);
}

/* Department Cards */
.department-card {
  background: white;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
}

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

.department-card .card-body {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.department-card .card-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
  margin-bottom: var(--spacing-md);
}

.department-card .card-text {
  color: var(--gray-600);
  flex-grow: 1;
  margin-bottom: var(--spacing-lg);
}

/* Statistics Cards */
.stats-card {
  background: white;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

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

.stats-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-blue);
}

.stats-card.stats-card--teal::before { background: var(--teal); }
.stats-card.stats-card--green::before { background: var(--green); }
.stats-card.stats-card--orange::before { background: var(--orange); }

.stats-card .card-body {
  padding: var(--spacing-xl);
  text-align: center;
}

.stats-card h2 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--spacing-xs);
  color: var(--gray-800);
}

.stats-card p {
  font-weight: var(--font-weight-medium);
  color: var(--gray-600);
  margin: 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Buttons */
.btn-custom {
  font-family: var(--font-family);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-lg);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  text-decoration: none;
  justify-content: center;
}

.btn-primary-custom {
  background: var(--primary-blue);
  color: white;
}

.btn-primary-custom:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
  text-decoration: none;
}

.btn-secondary-custom {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-secondary-custom:hover {
  background: var(--gray-200);
  color: var(--gray-800);
  text-decoration: none;
}

.btn-success-custom {
  background: var(--green);
  color: white;
}

.btn-success-custom:hover {
  background: #047857;
  color: white;
  text-decoration: none;
}

.btn-warning-custom {
  background: var(--orange);
  color: white;
}

.btn-warning-custom:hover {
  background: #c2410c;
  color: white;
  text-decoration: none;
}

/* Filter Buttons */
.filter-section {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.category-filter {
  border: 2px solid var(--gray-200);
  background: white;
  color: var(--gray-600);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-lg);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.category-filter:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.category-filter.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
  transform: scale(1.02);
}

/* Form Elements */
.form-control-custom {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-family);
  transition: all 0.3s ease;
  width: 100%;
}

.form-control-custom:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.form-label-custom {
  font-weight: var(--font-weight-medium);
  color: var(--gray-700);
  margin-bottom: var(--spacing-xs);
  display: block;
}

/* Tables */
.table-custom {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-custom table {
  margin: 0;
  width: 100%;
  border-collapse: collapse;
}

.table-custom thead {
  background: var(--gray-50);
}

.table-custom th {
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: left;
}

.table-custom td {
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.table-custom tbody tr:hover {
  background: var(--gray-50);
}

/* Badges */
.badge-custom {
  font-family: var(--font-family);
  font-weight: var(--font-weight-medium);
  font-size: 0.75rem;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  display: inline-block;
}

.badge-primary { background: var(--primary-blue); color: white; }
.badge-teal { background: var(--teal); color: white; }
.badge-success { background: var(--green); color: white; }
.badge-warning { background: var(--orange); color: white; }
.badge-secondary { background: var(--gray-400); color: white; }

/* Alerts */
.alert-custom {
  border: none;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-lg);
}

.alert-info-custom {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue-dark);
}

.alert-success-custom {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
}

.alert-warning-custom {
  background: rgba(234, 88, 12, 0.1);
  color: #c2410c;
}

/* Search Input */
.search-input {
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1.125rem;
  transition: all 0.3s ease;
  background: white;
}

.search-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* Footer */
.site-footer {
  background: var(--gray-800);
  color: var(--gray-300);
  padding: var(--spacing-3xl) 0 var(--spacing-xl) 0;
  margin-top: var(--spacing-3xl);
}

.site-footer h5 {
  color: white;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-md);
}

.site-footer a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--primary-blue-light);
}

.site-footer .footer-bottom {
  border-top: 1px solid var(--gray-700);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: var(--gray-500);
}

/* Table responsive wrapper */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--spacing-md);
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-200);
}

.table thead th {
  background-color: var(--gray-50);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
  border-bottom: 2px solid var(--gray-200);
}

.table tbody tr:hover {
  background-color: var(--gray-50);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.025);
}

.table-dark {
  background-color: var(--gray-800);
  color: white;
}

.table-dark th,
.table-dark td {
  border-color: var(--gray-600);
}

/* Form utilities */
.form-text {
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: var(--gray-500);
}

/* Additional Bootstrap-style components needed */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: white;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: var(--spacing-lg);
  margin-bottom: 0;
  background-color: var(--gray-50);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.card-body {
  flex: 1 1 auto;
  padding: var(--spacing-lg);
}

/* Button group */
.btn-group {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.btn-group > .btn-custom:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-group > .btn-custom:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Input group */
.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.input-group > .form-control-custom {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.input-group > .form-control-custom:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Form control sizes */
.form-control-sm {
  min-height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* Utility Classes */
.text-primary-custom { color: var(--primary-blue); }
.text-teal-custom { color: var(--teal); }
.text-success-custom { color: var(--green); }
.text-warning-custom { color: var(--orange); }

.bg-primary-custom { background-color: var(--primary-blue); }
.bg-teal-custom { background-color: var(--teal); }
.bg-gray-50-custom { background-color: var(--gray-50); }
.bg-light { background-color: var(--gray-100); }

/* Small utility */
small {
  font-size: 0.875em;
}

/* Strong utility */
strong {
  font-weight: var(--font-weight-semibold);
}

/* Code utility */
code {
  font-size: 0.875em;
  color: var(--red);
  background-color: var(--gray-100);
  padding: 0.125rem 0.25rem;
  border-radius: var(--radius-sm);
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 2rem;
  }
  
  .site-header p {
    font-size: 1rem;
  }
  
  .stats-card h2 {
    font-size: 2rem;
  }
  
  .filter-section {
    padding: var(--spacing-lg);
  }
  
  .category-filter {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .row {
    margin: 0 calc(var(--spacing-sm) * -0.5);
  }

  .col,
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
  .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
  .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
  .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
  .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
  .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    padding: 0 calc(var(--spacing-sm) * 0.5);
  }
}

/* Custom responsive utilities */
@media (max-width: 767.98px) {
  .d-md-none { display: none !important; }
  .flex-column-mobile { flex-direction: column !important; }
}

@media (min-width: 768px) {
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

.slide-up {
  animation: slideUp 0.6s ease-out;
}

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