/* =========================================== */
/* SEENU'S RIGHT TREATMENT - MAIN STYLESHEET  */
/* =========================================== */

:root {
  --primary: #2563eb;
  --secondary: #10b981;
  --accent: #f59e0b;
  --dark: #1e293b;
  --light: #f8fafc;
  --danger: #dc2626;
  --white: #ffffff;
  --gray: #94a3b8;
  
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --radius: 8px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary);
}

h2 {
  font-size: 2rem;
  color: var(--dark);
  border-bottom: 3px solid var(--secondary);
  padding-bottom: 10px;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--dark);
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

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

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: #0da271;
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

/* ========== NAVBAR ========== */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--primary);
}

.tagline {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

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

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
}

/* ========== HERO SECTION ========== */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: #475569;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.urgent-alert {
  background: #fef3c7;
  border-left: 4px solid var(--accent);
  padding: 15px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.urgent-alert i {
  color: var(--accent);
  font-size: 1.2rem;
}

.hero-image {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== CARDS & GRIDS ========== */
.quick-links {
  padding: 60px 0;
  background: var(--light);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.link-card {
  background: var(--white);
  padding: 30px 25px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--dark);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
  display: block;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-top-color: var(--primary);
}

.link-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.link-card h3 {
  margin-bottom: 10px;
  color: var(--dark);
}

.link-card p {
  color: var(--gray);
  font-size: 1rem;
  margin: 0;
}

/* ========== HOSPITAL GRID FIX ========== */
.hospitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.hospital-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.hospital-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hospital-card h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    min-height: 60px;
}

.hospital-card p {
    margin: 8px 0;
    color: #4b5563;
    font-size: 0.95rem;
}

.hospital-card .verified {
    background: var(--secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
}

/* ========== FEATURED SECTION ========== */
.featured-hospitals {
    padding: 60px 0;
    background: var(--light);
}

.featured-hospitals h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* ========== BUTTON CENTERING ========== */
.center-button {
    text-align: center;
    margin-top: 40px;
}

/* ========== FORMS ========== */
.form-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* ========== TABLES ========== */
.data-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 30px 0;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

th {
  background: #f8fafc;
  font-weight: 600;
}

/* ========== FOOTER ========== */
.footer {
  background: #1e293b;
  color: #cbd5e1;
  padding: 50px 0 20px;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
  }
}
/* ========== HOSPITAL SEARCH SECTION ========== */
.search-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f7ff 100%);
  min-height: 80vh;
}

.search-section h1 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
  font-size: 2.8rem;
}

.search-box-container {
  max-width: 700px;
  margin: 0 auto 40px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 20px 30px;
  font-size: 1.2rem;
  border: 2px solid var(--primary);
  border-radius: 50px;
  outline: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.search-input:focus {
  border-color: #1d4ed8;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.search-btn:hover {
  background: #1d4ed8;
  transform: translateY(-50%) scale(1.05);
}

/* Popular Cities Section */
.popular-cities {
  text-align: center;
  margin-bottom: 50px;
}

.popular-cities h3 {
  color: #64748b;
  margin-bottom: 20px;
  font-weight: 500;
}

.cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.city-tag {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 12px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  color: #475569;
  transition: all 0.3s;
  font-size: 1rem;
}

.city-tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Search Results */
.search-results {
  max-width: 900px;
  margin: 40px auto 0;
  display: none;
}

.results-card {
  background: white;
  border-radius: 15px;
  padding: 35px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.5s ease;
}

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

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
}

.results-header h3 {
  margin: 0;
  color: var(--dark);
  font-size: 1.5rem;
}

.results-count {
  background: #f0f9ff;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Hospital Search Cards */
.hospital-search-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  border-left: 5px solid var(--primary);
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.hospital-search-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: white;
}

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

.hospital-name h4 {
  margin: 0;
  color: var(--primary);
  font-size: 1.3rem;
  line-height: 1.4;
}

.hospital-type {
  background: var(--secondary);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.hospital-type.government {
  background: var(--secondary);
}

.hospital-type.private {
  background: #8b5cf6;
}

.hospital-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.detail-item i {
  color: var(--primary);
  margin-top: 3px;
  font-size: 1.1rem;
}

.detail-item strong {
  color: #475569;
  font-weight: 600;
  margin-right: 5px;
}

.specializations {
  background: #f0f9ff;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
}

.specializations h5 {
  margin: 0 0 10px 0;
  color: var(--dark);
  font-size: 1rem;
}

.specialization-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.specialization-tag {
  background: #dbeafe;
  color: #1e40af;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.hospital-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

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

.action-btn.secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.verified-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-weight: 600;
  margin-left: auto;
}

.verified-badge i {
  font-size: 1.1rem;
}

/* No Results State */
.no-results {
  text-align: center;
  padding: 60px 30px;
}

.no-results-icon {
  font-size: 4rem;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.no-results h4 {
  color: #64748b;
  margin-bottom: 10px;
}

.no-results p {
  color: #94a3b8;
  max-width: 500px;
  margin: 0 auto 30px;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 60px 30px;
}

.loading-spinner {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  animation: spin 1s linear infinite;
}

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

/* Error State */
.error-state {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin: 20px 0;
}

.error-state i {
  color: var(--danger);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.error-state h4 {
  color: var(--danger);
  margin-bottom: 10px;
}

.error-state p {
  color: #b91c1c;
  margin-bottom: 20px;
}

/* Debug Button (Optional) */
.debug-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--danger);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.debug-btn:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

/* Map Button */
.map-btn {
  background: #10b981;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-btn:hover {
  background: #0da271;
}

/* Emergency Highlight */
.emergency-info {
  background: #fef3c7;
  padding: 10px 15px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  margin-top: 10px;
}

.emergency-info i {
  color: var(--accent);
}

/* Responsive Design for Search */
@media (max-width: 768px) {
  .search-section {
    padding: 40px 20px;
  }
  
  .search-section h1 {
    font-size: 2rem;
  }
  
  .search-box-container {
    margin-bottom: 30px;
  }
  
  .search-input {
    padding: 18px 20px;
    font-size: 1rem;
  }
  
  .search-btn {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin-top: 15px;
    justify-content: center;
  }
  
  .cities-grid {
    gap: 8px;
  }
  
  .city-tag {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  
  .hospital-header {
    flex-direction: column;
    gap: 15px;
  }
  
  .hospital-details {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .hospital-actions {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .results-card {
    padding: 20px;
  }
  
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}