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

/* Theme Definitions */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --primary-gradient-hover: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  --accent-color: #0d9488;
  --accent-hover: #0f766e;
  --accent-light: #ccfbf1;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(226, 232, 240, 0.8);
  
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

[data-theme="dark"] {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #6b7280;
  --border-color: #374151;
  
  --primary-light: rgba(79, 70, 229, 0.2);
  --accent-light: rgba(13, 148, 136, 0.2);
  
  --glass-bg: rgba(17, 24, 39, 0.85);
  --glass-border: rgba(55, 65, 81, 0.8);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  
  --success-light: rgba(16, 185, 129, 0.2);
  --danger-light: rgba(239, 68, 68, 0.2);
  --warning-light: rgba(245, 158, 11, 0.2);
}

/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navbar */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo a {
  font-size: 24px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.theme-toggle-btn:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
}

/* Search Bar & Auto-Suggest */
.search-container {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
}

.search-form {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 99px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-form:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 20px;
}

.search-icon {
  color: var(--text-muted);
  margin-right: 12px;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  background: var(--primary-gradient);
  border: none;
  color: #ffffff;
  padding: 12px 32px;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px -3px rgba(79, 70, 229, 0.4);
}

.search-btn:active {
  transform: translateY(0);
}

/* Autocomplete Suggestion Dropdown */
.autocomplete-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 10;
  overflow: hidden;
  text-align: left;
  display: none;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.suggestion-item {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-fast);
}

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

.suggestion-item:hover {
  background-color: var(--bg-primary);
}

.suggestion-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.suggestion-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Stats Section */
.stats-banner {
  margin-top: -20px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.stat-card {
  text-align: center;
  padding: 10px;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Grid & Layout General */
.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.section {
  padding: 60px 0;
}

.grid-popular-cities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.city-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.city-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
}

.city-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.city-count {
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.city-card:hover .city-count {
  background: var(--primary-gradient);
  color: #ffffff;
}

/* Browse States Grid */
.states-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .states-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .states-grid {
    grid-template-columns: 1fr;
  }
}

.state-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.state-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
}

.state-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.state-count {
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.state-card:hover .state-count {
  background: var(--primary-gradient);
  color: #ffffff;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--primary-color);
}

.breadcrumbs span.separator {
  color: var(--text-muted);
}

.breadcrumbs span.current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Search and Filters Layout */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 40px 0;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.filter-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.filter-select:focus {
  border-color: var(--primary-color);
}

.filter-submit-btn {
  width: 100%;
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.filter-clear-link {
  display: block;
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-clear-link:hover {
  color: var(--danger);
}

/* Results Content Area */
.results-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hospital-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hospital-result-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.hospital-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.hospital-result-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.hospital-result-name a {
  color: var(--text-primary);
}

.hospital-result-name a:hover {
  color: var(--primary-color);
}

.category-tag {
  background-color: var(--accent-light);
  color: var(--accent-color);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.hospital-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.hospital-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hospital-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.hospital-card-footer {
  margin-top: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-details-link {
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.page-item {
  display: inline-flex;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.page-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: var(--primary-light);
}

.page-item.active .page-link {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.page-item.disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.page-link-nav {
  width: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hospital Detail Profile Page */
.hospital-profile-container {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  padding: 40px 0;
}

.hospital-main-info {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.profile-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.profile-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 12px;
  margin-bottom: 16px;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.info-value.address {
  line-height: 1.5;
}

/* Sidebar Contacts Card */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.contact-card-title {
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
}

.action-btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}
.action-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -3px rgba(79, 70, 229, 0.4);
  color: #ffffff;
}

.action-btn-secondary {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.action-btn-secondary:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.action-btn-accent {
  background-color: var(--accent-light);
  color: var(--accent-color);
}
.action-btn-accent:hover {
  background-color: var(--accent-color);
  color: #ffffff;
}

/* Alert Boxes */
.alert {
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
}

.alert-success {
  background-color: var(--success-light);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.2);
}

.alert-danger {
  background-color: var(--danger-light);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

/* Admin Specific Design Elements */
.admin-login-body {
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.admin-login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}

.admin-login-header {
  text-align: center;
  margin-bottom: 32px;
}

.admin-login-header h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-login-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

/* Dashboard Styles */
.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-stat-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.admin-stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
}
.btn-primary:hover {
  color: #ffffff;
}

.btn-outline {
  border-color: var(--border-color);
  background-color: transparent;
  color: var(--text-secondary);
}
.btn-outline:hover {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.btn-danger {
  background-color: var(--danger-light);
  color: var(--danger);
}
.btn-danger:hover {
  background-color: var(--danger);
  color: #ffffff;
}

/* Tables */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background-color: var(--bg-primary);
  padding: 16px 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 16px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

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

.admin-table tr:hover td {
  background-color: rgba(248, 250, 252, 0.5);
}

[data-theme="dark"] .admin-table tr:hover td {
  background-color: rgba(31, 41, 55, 0.5);
}

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

.badge {
  display: inline-flex;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 99px;
  text-transform: uppercase;
}

.badge-location {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

/* Forms Layouts */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

/* Detail view within Admin Dashboard */
.detail-meta-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  font-size: 15px;
  margin-bottom: 12px;
}

.detail-meta-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.detail-meta-value {
  color: var(--text-primary);
}

/* No Results State */
.no-results {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
}

.no-results svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.no-results h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .hospital-profile-container {
    grid-template-columns: 1fr;
  }
  .contact-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .profile-details-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .admin-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .admin-table th, .admin-table td {
    padding: 12px 16px;
  }
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Admin Full-Width and Compact Layout Override */
.admin-body .container {
  max-width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-top: 20px !important;
}

.admin-body .admin-stats-grid {
  gap: 12px;
  margin-bottom: 20px;
}

.admin-body .admin-stat-card {
  padding: 12px 16px;
  gap: 2px;
  border-radius: var(--border-radius-sm);
}

.admin-body .admin-stat-number {
  font-size: 20px;
}

.admin-body .admin-stat-title {
  font-size: 11px;
}

.admin-body .admin-card {
  padding: 16px !important;
}

.admin-body .admin-table th {
  padding: 8px 12px;
  font-size: 11px;
}

.admin-body .admin-table td {
  padding: 8px 12px;
  font-size: 13px;
}

.admin-body .pagination {
  margin-top: 16px;
}

.admin-body .page-link {
  width: 32px;
  height: 32px;
  font-size: 12px;
  border-radius: 4px;
}

/* Autocomplete Suggestion Dropdowns for Input Fields */
.autocomplete-container {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.autocomplete-dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-fast);
  color: var(--text-primary);
  text-align: left;
}

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

.autocomplete-dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}
