/* =====================================================
   অ্যাপোলো হাসপাতাল — মূল স্টাইলশিট
   ফন্ট: Hind Siliguri (বাংলা) + Noto Serif Bengali
   থিম: পরিষ্কার, বিশ্বস্ত, পেশাদার
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Noto+Serif+Bengali:wght@400;600;700&display=swap');

:root {
  --primary:     #0B6E4F;   /* গভীর সবুজ — স্বাস্থ্য ও বিশ্বাস */
  --primary-dk:  #084d38;
  --primary-lt:  #e8f5f0;
  --accent:      #F4A020;   /* সোনালি অ্যাকসেন্ট */
  --accent-lt:   #fff8ec;
  --danger:      #c0392b;
  --danger-lt:   #fdf0ef;
  --text:        #1a1a2e;
  --text-muted:  #5a6475;
  --border:      #dce3ea;
  --bg:          #f4f7f9;
  --white:       #ffffff;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 2px 16px rgba(11,110,79,0.08);
  --shadow-md:   0 4px 32px rgba(11,110,79,0.14);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Hind Siliguri', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* ===== HEADER / NAVBAR ===== */
.navbar {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 70px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand-icon {
  width: 46px; height: 46px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white; font-weight: 700;
}
.brand-text { line-height: 1.2; }
.brand-name {
  font-family: 'Noto Serif Bengali', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--primary);
}
.brand-tagline { font-size: 0.72rem; color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-muted);
  font-size: 0.9rem; font-weight: 500; transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { background: var(--primary-lt); color: var(--primary); }
.nav-btn {
  padding: 9px 20px; border-radius: 50px;
  background: var(--primary); color: white;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: all 0.2s; border: none; cursor: pointer;
}
.nav-btn:hover { background: var(--primary-dk); transform: translateY(-1px); }
.nav-btn.outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary); margin-right: 6px;
}
.nav-btn.outline:hover { background: var(--primary-lt); }

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d8a60 100%);
  color: white; padding: 70px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '✚'; position: absolute; top: -30px; right: -20px;
  font-size: 200px; opacity: 0.04; color: white;
}
.hero-title {
  font-family: 'Noto Serif Bengali', serif;
  font-size: 2.4rem; font-weight: 700; margin-bottom: 12px;
}
.hero-sub { font-size: 1.1rem; opacity: 0.88; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero {
  padding: 14px 32px; border-radius: 50px; font-size: 1rem;
  font-weight: 600; text-decoration: none; transition: all 0.2s;
  font-family: 'Hind Siliguri', sans-serif;
}
.btn-hero-primary { background: var(--accent); color: var(--text); }
.btn-hero-primary:hover { background: #e8940e; transform: translateY(-2px); }
.btn-hero-secondary { background: rgba(255,255,255,0.15); color: white; border: 2px solid rgba(255,255,255,0.5); }
.btn-hero-secondary:hover { background: rgba(255,255,255,0.25); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: white; border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: center; gap: 60px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-title {
  font-family: 'Noto Serif Bengali', serif;
  font-size: 1.7rem; font-weight: 700; color: var(--primary);
  margin-bottom: 8px;
}
.section-sub { color: var(--text-muted); margin-bottom: 36px; }

/* ===== CARDS ===== */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-header {
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.card-header-title { font-size: 1rem; font-weight: 600; }
.card-body { padding: 24px; }

/* ===== DOCTOR CARDS ===== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.doctor-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: all 0.25s; border: 2px solid transparent;
}
.doctor-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-4px);
  border-color: var(--primary-lt);
}
.doctor-photo {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--primary-lt), #c8eadd);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; color: var(--primary);
}
.doctor-info { padding: 18px; }
.doctor-name {
  font-family: 'Noto Serif Bengali', serif;
  font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 4px;
}
.doctor-specialty {
  display: inline-block; background: var(--primary-lt); color: var(--primary);
  font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 50px;
  margin-bottom: 10px;
}
.doctor-institution { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.doctor-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.doctor-fee { font-weight: 700; color: var(--primary); font-size: 1rem; }
.doctor-day {
  font-size: 0.75rem; color: white; background: var(--accent);
  padding: 3px 10px; border-radius: 50px;
}
.btn-book {
  display: block; width: 100%; text-align: center;
  background: var(--primary); color: white; padding: 11px;
  border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; margin-top: 14px; transition: all 0.2s;
  border: none; cursor: pointer; font-family: 'Hind Siliguri', sans-serif;
}
.btn-book:hover { background: var(--primary-dk); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--text); }
.form-control {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-size: 0.95rem;
  font-family: 'Hind Siliguri', sans-serif; color: var(--text);
  background: white; transition: border-color 0.2s;
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,110,79,0.1); }
.form-control::placeholder { color: #aab; }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 100px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
  font-family: 'Hind Siliguri', sans-serif; text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--text); }
.btn-accent:hover { background: #e8940e; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-lt); }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== ALERTS ===== */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  margin-bottom: 20px; font-size: 0.92rem; border-left: 4px solid;
}
.alert-success { background: #eafaf2; border-color: #27ae60; color: #155724; }
.alert-error { background: var(--danger-lt); border-color: var(--danger); color: #721c24; }
.alert-info { background: #e8f4fd; border-color: #2980b9; color: #0c5460; }
.alert-warning { background: var(--accent-lt); border-color: var(--accent); color: #856404; }

/* ===== BADGE ===== */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-success { background: #eafaf2; color: #27ae60; }
.badge-warning { background: var(--accent-lt); color: #c07800; }
.badge-danger  { background: var(--danger-lt); color: var(--danger); }
.badge-info    { background: #e8f4fd; color: #2980b9; }
.badge-muted   { background: #f1f1f1; color: var(--text-muted); }

/* ===== STEPS / PROGRESS ===== */
.steps {
  display: flex; justify-content: center; gap: 0;
  margin-bottom: 36px;
}
.step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; position: relative;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--border); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.step.active .step-num { background: var(--primary); color: white; }
.step.done .step-num { background: #27ae60; color: white; }
.step-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.step.active .step-label { color: var(--primary); font-weight: 700; }
.step-line {
  flex: 1; height: 2px; background: var(--border); margin: 0 -8px;
}
.step-line.done { background: #27ae60; }

/* ===== TABLE ===== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: white; }
th {
  background: var(--primary-lt); color: var(--primary);
  padding: 12px 16px; text-align: left; font-size: 0.85rem;
  font-weight: 700; white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbfc; }

/* ===== PAYMENT SECTION ===== */
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .payment-options { grid-template-columns: 1fr; } }

.payment-option {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: all 0.2s; position: relative;
}
.payment-option.selected { border-color: var(--primary); background: var(--primary-lt); }
.payment-option input[type="radio"] { position: absolute; opacity: 0; }
.payment-logo { font-size: 2rem; margin-bottom: 8px; }
.payment-name { font-weight: 700; font-size: 1rem; }
.payment-detail { font-size: 0.8rem; color: var(--text-muted); }

.trx-box {
  background: var(--primary-lt); border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm); padding: 18px; margin: 16px 0;
}
.trx-number { font-size: 1.5rem; font-weight: 700; color: var(--primary); letter-spacing: 2px; }

/* ===== SERIAL CONFIRM CARD ===== */
.serial-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-md); max-width: 520px; margin: 0 auto;
  overflow: hidden;
}
.serial-header {
  background: var(--primary); color: white; padding: 28px;
  text-align: center;
}
.serial-no { font-size: 2.4rem; font-weight: 700; letter-spacing: 4px; }
.serial-label { font-size: 0.85rem; opacity: 0.85; margin-bottom: 6px; }
.serial-body { padding: 28px; }
.serial-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.serial-row:last-child { border-bottom: none; }
.serial-row-label { color: var(--text-muted); font-weight: 500; }
.serial-row-value { font-weight: 700; text-align: right; }
.serial-footer {
  background: var(--primary-lt); padding: 16px 28px;
  text-align: center; font-size: 0.82rem; color: var(--primary);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.5); align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white; border-radius: var(--radius); max-width: 500px;
  width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-md);
}
.modal-header {
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-title { font-weight: 700; font-size: 1.05rem; color: var(--primary); }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); }
.modal-body { padding: 24px; }

/* ===== SIDEBAR (Admin/Patient dashboard) ===== */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; background: var(--primary-dk); color: white;
  flex-shrink: 0; padding: 0; position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.sidebar-header { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-brand { font-family: 'Noto Serif Bengali', serif; font-size: 1.1rem; font-weight: 700; }
.sidebar-sub { font-size: 0.75rem; opacity: 0.7; }
.sidebar-menu { padding: 12px 0; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: rgba(255,255,255,0.8);
  text-decoration: none; font-size: 0.9rem; transition: all 0.2s;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,255,255,0.12); color: white;
  border-right: 3px solid var(--accent);
}
.sidebar-link-icon { font-size: 1.1rem; width: 22px; }
.main-content { flex: 1; padding: 32px; overflow-x: hidden; }

/* ===== DASHBOARD STATS ===== */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: white; border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); border-left: 4px solid var(--primary);
}
.stat-card-num { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.stat-card.accent { border-color: var(--accent); }
.stat-card.accent .stat-card-num { color: var(--accent); }

/* ===== AI CHAT (ধাপ ৩ এর জন্য placeholder) ===== */
.ai-chat-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--primary); color: white; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(11,110,79,0.4);
  cursor: pointer; border: none; transition: all 0.25s;
  text-decoration: none;
}
.ai-chat-btn:hover { transform: scale(1.08); background: var(--primary-dk); }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dk); color: rgba(255,255,255,0.8);
  padding: 48px 24px 24px; margin-top: auto;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px; margin-bottom: 32px;
}
.footer-brand { font-family: 'Noto Serif Bengali', serif; font-size: 1.15rem; color: white; margin-bottom: 10px; }
.footer-text { font-size: 0.82rem; line-height: 1.8; }
.footer-heading { color: var(--accent); font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer-link { display: block; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.83rem; margin-bottom: 7px; }
.footer-link:hover { color: white; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; flex-wrap: wrap; gap: 10px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title { font-size: 1.7rem; }
  .nav-links { display: none; }
  .sidebar { width: 100%; height: auto; position: relative; }
  .dashboard-layout { flex-direction: column; }
  .stats-inner { gap: 30px; }
  .main-content { padding: 20px; }
}

/* ===== PRINT (রিসিট প্রিন্টের জন্য) ===== */
@media print {
  .navbar, .footer, .ai-chat-btn, .no-print { display: none !important; }
  body { background: white; }
  .serial-card { box-shadow: none; border: 1px solid #ccc; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-sm { font-size: 0.82rem; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; }
.flex { display: flex; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.spinner {
  width: 24px; height: 24px; border: 3px solid var(--primary-lt);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
