* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #f4f7fb;
}

/* Navbar */
nav {
  background: #0d6efd;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h2 {
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

nav ul li a.active,
nav ul li a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  height: 85vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url("https://images.unsplash.com/photo-1586773860418-d37222d8fce3");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 60px;
  color: #fff;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: #0d6efd;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  margin-right: 10px;
  font-weight: 500;
}

.btn.outline {
  background: transparent;
  border: 2px solid #fff;
}

.btn:hover {
  opacity: 0.9;
}

/* Features */
.features {
  padding: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.feature-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card.emergency {
  background: #ffeaea;
}

/* Footer */
footer {
  background: #0d6efd;
  color: #fff;
  text-align: center;
  padding: 15px;
}
/* Doctors Page */
.doctors-section {
  padding: 60px;
  text-align: center;
}

.doctors-section h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.subtitle {
  color: #555;
  margin-bottom: 40px;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.doctor-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.doctor-avatar {
  font-size: 48px;
  margin-bottom: 15px;
}

.doctor-card h3 {
  margin-bottom: 6px;
  color: #0d6efd;
}

.degree {
  font-weight: 500;
  margin-bottom: 6px;
}

.exp {
  color: #333;
  margin-bottom: 6px;
}

.hospital {
  font-size: 14px;
  color: #777;
}
/* Book Appointment Form */
.form-section {
  padding: 60px;
  max-width: 700px;
  margin: auto;
}

.form-section h1 {
  text-align: center;
  margin-bottom: 30px;
}

.appointment-form {
  background: #fff;
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0d6efd;
}
/* History Page */
.history-section {
  padding: 60px;
}

.history-section h1 {
  text-align: center;
  margin-bottom: 30px;
}

.patient-info {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  display: flex;
  gap: 30px;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.history-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.history-table th,
.history-table td {
  padding: 14px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.history-table th {
  background: #0d6efd;
  color: #fff;
}

.history-table a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
}

/* Status colors */
.status.completed {
  color: green;
  font-weight: bold;
}

.status.upcoming {
  color: orange;
  font-weight: bold;
}

.status.cancelled {
  color: red;
  font-weight: bold;
}
/* LOGIN ADVANCED UI */
.login-body {
  height: 100vh;
  background: linear-gradient(135deg, #0d6efd, #20c997);
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.glass {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
}

.login-card {
  padding: 40px 35px;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}

/* Animation */
.animate {
  animation: zoomFade 0.8s ease;
}

@keyframes zoomFade {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Eye icon */
.toggle-eye {
  position: absolute;
  right: 15px;
  top: 18px;
  cursor: pointer;
  font-size: 18px;
  user-select: none;
}

/* Login button */
.login-btn {
  padding: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13,110,253,0.4);
}
/* ===== THEME VARIABLES ===== */
:root {
  --bg: #f4f7fb;
  --text: #222;
  --card: #ffffff;
  --nav: #ffffff;
  --primary: #0d6efd;
}

.dark {
  --bg: #0f172a;
  --text: #f1f5f9;
  --card: #1e293b;
  --nav: #020617;
}

/* ===== GLOBAL ===== */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s ease;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--nav);
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.navbar a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.navbar a.active,
.navbar a:hover {
  color: var(--primary);
}

.theme-btn {
  border: none;
  background: var(--card);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
/* ===== HERO (PHOTO KEEP) ===== */
.hero {
  height: 75vh;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("https://images.unsplash.com/photo-1586773860418-d37222d8fce3");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}


/* ===== FEATURES ===== */
.features {
  padding: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.feature-card {
  background: var(--card);
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  cursor: pointer;
}

/* HOVER EFFECT */
.feature-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-card h3 {
  margin-bottom: 8px;
  color: var(--primary);
}

.feature-card.emergency {
  border-left: 6px solid red;
}

/* ===== ANIMATION ===== */
.animate {
  animation: fadeUp 1s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== DOCTOR SEARCH BAR ===== */
.doctor-search {
  max-width: 420px;
  margin: 0 auto 40px;
}

.doctor-search input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.doctor-search input:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 8px 20px rgba(13,110,253,0.25);
}
/* ===== MODERN DOCTOR CARD ===== */
.doctor-card {
  position: relative;
  background: var(--card);
  padding: 28px 22px 32px;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  text-align: center;
  transition: all 0.4s ease;
  overflow: hidden;
}

.doctor-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 22px 45px rgba(13,110,253,0.25);
}

/* ===== FIX BADGE VISIBILITY ===== */
.doctor-header {
  position: relative;
  display: flex;
  justify-content: center;
}

.badge {
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 4px 10px;
  font-size: 12px;
  color: #fff;
  border-radius: 20px;
  z-index: 5;
}

/* Badge colors */
.badge.cardio { background: #0d6efd; }
.badge.gyno { background: #e83e8c; }
.badge.ortho { background: #20c997; }
.badge.pedia { background: #6610f2; }
.badge.neuro { background: #fd7e14; }
.badge.surgery { background: #198754; }
.badge.derm { background: #0dcaf0; }
.badge.pulmo { background: #dc3545; }
.badge.psych { background: #6f42c1; }


/* ===== DOCTOR AVATAR (IMAGE) ===== */
.doctor-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary);
  box-shadow: 0 8px 25px rgba(13,110,253,0.35);
  transition: all 0.4s ease;
}

.doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover animation */
.doctor-card:hover .doctor-avatar {
  transform: scale(1.08);
  box-shadow: 0 12px 35px rgba(13,110,253,0.5);
}
.doctor-avatar.initial {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd, #20c997);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 600;
  margin: 0 auto 12px;
  box-shadow: 0 10px 30px rgba(13,110,253,0.45);
}


/* Badge */
.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 4px 10px;
  font-size: 12px;
  color: #fff;
  border-radius: 20px;
}

/* Badge colors */
.badge.cardio { background: #0d6efd; }
.badge.ortho { background: #20c997; }
.badge.gyno { background: #e83e8c; }
.badge.pedia { background: #6610f2; }
.badge.neuro { background: #fd7e14; }

/* Text */
.doctor-card h3 {
  color: var(--primary);
  margin-bottom: 6px;
}

.degree {
  font-weight: 500;
  margin-bottom: 4px;
}

.exp {
  color: #444;
  margin-bottom: 6px;
}

.hospital {
  font-size: 14px;
  color: #777;
  margin-bottom: 18px;
}

/* Book Button */
.book-btn {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0;
}

/* Show button on hover */
.doctor-card:hover .book-btn {
  bottom: 18px;
  opacity: 1;
}
/* ===== DOCTOR RATING ===== */
.rating {
  margin: 6px 0 10px;
  font-size: 15px;
  color: #facc15; /* gold */
}

.rating small {
  font-size: 13px;
  color: #555;
  margin-left: 4px;
}

.doctor-card:hover .rating {
  text-shadow: 0 0 8px rgba(250,204,21,0.7);
}
/* ===== EMERGENCY PAGE ===== */

.emergency-alert {
  background: #dc2626;
  color: #fff;
  padding: 18px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.emergency-numbers {
  padding: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 25px;
}

.emergency-card {
  background: var(--card);
  padding: 25px;
  text-align: center;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.em-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

.em-btn.red { background: #dc2626; }
.em-btn.blue { background: #2563eb; }
.em-btn.orange { background: #ea580c; }
.em-btn.green { background: #16a34a; }

.emergency-services {
  padding: 60px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
  margin-top: 25px;
}

.service-card {
  background: var(--card);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.1);
  font-weight: 500;
}

.emergency-tips {
  padding: 50px;
  background: #fef2f2;
}

.emergency-tips ul {
  max-width: 600px;
  margin: auto;
  list-style: none;
}

.emergency-tips li {
  margin-bottom: 10px;
  font-size: 15px;
}
/* ===== PRESCRIPTION PAGE ===== */

.prescription-section {
  padding: 60px;
  max-width: 1000px;
  margin: auto;
}

.prescription-section h1 {
  text-align: center;
  margin-bottom: 30px;
}

.prescription-card {
  background: var(--card);
  padding: 25px;
  border-radius: 16px;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.prescription-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 10px;
}

.prescription-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.prescription-table th,
.prescription-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.prescription-table th {
  background: var(--primary);
  color: #fff;
}

.test-list,
.advice-list {
  padding-left: 20px;
}

.test-list li,
.advice-list li {
  margin-bottom: 8px;
}

.prescription-actions {
  text-align: center;
  margin-top: 30px;
}

.prescription-actions .btn {
  margin: 0 10px;
}
.prescription-card ul {
  margin-top: 10px;
}

.prescription-card li {
  margin-bottom: 8px;
  font-weight: 500;
}
.history-actions {
  text-align: right;
  margin-bottom: 15px;
}
/* Common dropdown style */
.doctor-filter select,
.city-filter select {
  width: 250px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid #0d6efd;
  background-color: #e9f2ff;   /* light blue */
  color: #0d2b5c;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover effect */
.doctor-filter select:hover,
.city-filter select:hover {
  background-color: #d6e8ff;
  border-color: #084298;
}

/* Focus (click) effect */
.doctor-filter select:focus,
.city-filter select:focus {
  background-color: #ffffff;
  border-color: #198754;       /* green border */
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25);
}

/* Option styling */
.doctor-filter option,
.city-filter option {
  background-color: #ffffff;
  color: #000000;
  font-weight: 500;
}
/* ===============================
   FILTER SELECT – COLORED STYLE
================================ */

.filters {
  display: flex;
  gap: 14px;
  margin: 18px 0 30px;
}

.filters select {
  width: 220px;                 /* normal size */
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;

  /* 🎨 COLORING */
  background: linear-gradient(135deg, #f8faff, #eef3ff);
  border: 1.5px solid #0d6efd;
  color: #0d3c91;

  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover */
.filters select:hover {
  background: linear-gradient(135deg, #e7efff, #dbe7ff);
  box-shadow: 0 6px 14px rgba(13,110,253,0.25);
}

/* Focus */
.filters select:focus {
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.25);
}

/* Option text */
.filters select option {
  background: #ffffff;
  color: #222;
}

/* Dark theme support */
body.dark-theme .filters select {
  background: linear-gradient(135deg, #1f2933, #111827);
  border-color: #20c997;
  color: #d1fae5;
}

body.dark-theme .filters select option {
  background: #1e1e1e;
  color: #fff;
}

/* Mobile */
@media (max-width: 600px) {
  .filters {
    flex-direction: column;
  }

  .filters select {
    width: 100%;
  }
}
/* ===============================
   DARK THEME FIX
================================ */

body.dark-theme {
  background: #0f172a;
  color: #e5e7eb;
}

body.dark-theme .navbar {
  background: linear-gradient(135deg, #020617, #020617);
}

body.dark-theme .doctor-card,
body.dark-theme .feature-card,
body.dark-theme .emergency-card,
body.dark-theme .form-section,
body.dark-theme table {
  background: #020617;
  color: #e5e7eb;
  border-color: #334155;
}

body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
  background: #020617;
  color: #e5e7eb;
  border: 1px solid #334155;
}

body.dark-theme .badge {
  opacity: 0.95;
}
/* ===============================
   THEME SELECT DROPDOWN
================================ */
.theme-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

/* ===============================
   THEME: LIGHT (DEFAULT)
================================ */
.theme-light {
  --bg: #f4f6f9;
  --text: #222;
  --card: #ffffff;
  --primary: #0d6efd;
}

/* ===============================
   THEME: DARK
================================ */
.theme-dark {
  --bg: #0f172a;
  --text: #e5e7eb;
  --card: #020617;
  --primary: #38bdf8;
}

/* ===============================
   THEME: MEDICAL BLUE
================================ */
.theme-blue {
  --bg: #eaf2ff;
  --text: #0f172a;
  --card: #ffffff;
  --primary: #2563eb;
}

/* ===============================
   THEME: HEALTH GREEN
================================ */
.theme-green {
  --bg: #ecfdf5;
  --text: #064e3b;
  --card: #ffffff;
  --primary: #16a34a;
}

/* ===============================
   THEME: PURPLE PREMIUM
================================ */
.theme-purple {
  --bg: #f5f3ff;
  --text: #3b0764;
  --card: #ffffff;
  --primary: #7c3aed;
}

/* ===============================
   THEME: HIGH CONTRAST
================================ */
.theme-contrast {
  --bg: #000000;
  --text: #ffffff;
  --card: #000000;
  --primary: #ffff00;
}

/* ===============================
   APPLY VARIABLES
================================ */
body {
  background: var(--bg);
  color: var(--text);
}

.navbar {
  background: linear-gradient(135deg, var(--primary), #20c997);
}

.doctor-card,
.feature-card,
.emergency-card,
.form-section,
table {
  background: var(--card);
  color: var(--text);
}
/* ===============================
   THEME: WHITE LIGHT
================================ */
.theme-white {
  --bg: #ffffff;
  --text: #1f2937;
  --card: #ffffff;
  --primary: #0d6efd;
}

