/* =============================================================
   MediFind BD — styles.css
   Custom overrides on top of Bootstrap 5
   Sections: Tokens · Reset · Typography · Navbar · Hero ·
             Tabs · Cards · Badges · Forms · Buttons · Widgets ·
             Sidebar · Doctor Detail · Blog · Footer · Admin ·
             Skeleton · Utilities · Responsive
   ============================================================= */

/* ── 1. DESIGN TOKENS ── */
:root {
  --primary:       #0E8388;
  --primary-dark:  #0B6E72;
  --primary-light: #E8F6F3;
  --accent:        #E76F51;
  --accent-light:  #FDF0EC;
  --danger:        #C0392B;

  --bg:            #F5F7FA;
  --surface:       #FFFFFF;
  --surface-2:     #F0F7F6;
  --border:        #DDECEA;
  --text:          #1E2D2C;
  --text-secondary:#6B8886;
  --text-light:    #A0BCBA;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-pill:9999px;

  --shadow-xs:  0 1px 3px rgba(14,131,136,.06);
  --shadow-sm:  0 2px 10px rgba(14,131,136,.08);
  --shadow-md:  0 6px 24px rgba(14,131,136,.12);

  --font-head: 'Inter','Hind Siliguri',system-ui,sans-serif;
  --font-body: 'Inter','Hind Siliguri',system-ui,sans-serif;
  --transition: .22s ease;
}

/* ── 2. RESET & BASE ── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width:100%; height:auto; }
a { color: var(--primary); text-decoration:none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* ── 3. TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-family:var(--font-head); color:var(--text); line-height:1.25; font-weight:700; }
h1 { font-size:clamp(1.5rem,3.5vw,2.1rem); }

/* ── 4. NAVBAR ── */
.mf-navbar {
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  padding: 0;
  position: sticky; top:0; z-index:1000;
  box-shadow: var(--shadow-xs);
}
.mf-navbar .navbar-brand {
  font-weight:800; font-size:1.45rem; color:var(--primary-dark)!important; letter-spacing:-.02em;
}
.mf-navbar .navbar-brand span { color:var(--accent); }
.mf-navbar .nav-link {
  color:var(--text-secondary)!important; font-weight:600; font-size:.9rem;
  padding:20px 14px!important; position:relative; transition:color var(--transition);
}
.mf-navbar .nav-link::after {
  content:''; position:absolute; bottom:0; left:14px; right:14px; height:2px;
  background:var(--primary); transform:scaleX(0); transition:transform var(--transition); border-radius:var(--radius-pill);
}
.mf-navbar .nav-link:hover, .mf-navbar .nav-link.active { color:var(--primary)!important; }
.mf-navbar .nav-link:hover::after, .mf-navbar .nav-link.active::after { transform:scaleX(1); }
.navbar-toggler { border:1.5px solid var(--border)!important; border-radius:var(--radius-sm)!important; }
.nav-search-wrap { min-width:240px; }
.nav-search-wrap .form-control { font-size:.85rem; border-radius:var(--radius-sm) 0 0 var(--radius-sm); border-right:0; }
.nav-search-wrap .btn { border-radius:0 var(--radius-sm) var(--radius-sm) 0; }

/* ── 5. HERO (compact search) ── */
.hero-compact {
  background: var(--primary-light);
  padding: 28px 0 24px;
  border-bottom: 1.5px solid var(--border);
}
.hero-compact h1 { margin-bottom:6px; font-weight:800; }
.hero-compact .hero-sub { font-size:.86rem; color:var(--text-secondary); margin-bottom:16px; }
.hero-search-bar {
  background:var(--surface); border-radius:var(--radius-pill); box-shadow:var(--shadow-sm);
  padding:5px; display:flex; align-items:center; gap:6px; border:1.5px solid var(--border);
  max-width:500px; margin:0 auto 12px;
}
.hero-search-bar i { color:var(--text-light); font-size:.9rem; margin-left:10px; }
.hero-search-bar input {
  border:none; outline:none; flex:1; font-size:.9rem; padding:8px 6px; background:transparent; color:var(--text);
}
.hero-search-bar input::placeholder { color:var(--text-light); }
.hero-search-bar .btn { border-radius:var(--radius-pill); padding:8px 20px; font-size:.85rem; font-weight:700; }
.hero-popular { font-size:.78rem; color:var(--text-secondary); }
.hero-popular a { color:var(--primary); font-weight:700; margin-left:4px; }
.hero-popular .dot { color:var(--border); margin:0 3px; }

/* ── 6. SPECIALTY TABS ── */
.spec-tabs-bar {
  background:var(--surface); border-bottom:1.5px solid var(--border);
  overflow-x:auto; scrollbar-width:none; white-space:nowrap;
}
.spec-tabs-bar::-webkit-scrollbar { display:none; }
.spec-tab {
  display:inline-block; padding:11px 16px; font-size:.82rem; font-weight:700;
  color:var(--text-secondary); border-bottom:2.5px solid transparent;
  cursor:pointer; text-decoration:none; transition:all var(--transition); white-space:nowrap;
}
.spec-tab:hover { color:var(--primary); }
.spec-tab.active { color:var(--primary); border-bottom-color:var(--primary); }

/* ── 7. SECTION TITLE ── */
.sec-title {
  font-size:.78rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  color:var(--text-secondary); padding:14px 0 10px; border-bottom:1.5px solid var(--border);
  margin-bottom:12px; display:flex; align-items:center; justify-content:space-between;
}
.sec-title a { font-size:.75rem; font-weight:700; color:var(--primary); letter-spacing:0; text-transform:none; }

/* ── 8. DOCTOR CARD (compact row) ── */
.doc-card {
  background:var(--surface); border:1.5px solid var(--border); border-radius:var(--radius-sm);
  padding:14px; display:flex; gap:12px; margin-bottom:8px;
  transition:border-color var(--transition); text-decoration:none; color:inherit;
}
.doc-card:hover { border-color:var(--primary); color:inherit; }
.doc-card:hover .doc-card-name { color:var(--primary); }
.doc-photo {
  width:72px; height:72px; border-radius:var(--radius-sm); background:var(--primary-light);
  display:flex; align-items:center; justify-content:center; font-size:2rem;
  flex-shrink:0; border:1.5px solid var(--border); overflow:hidden;
}
.doc-photo img { width:100%; height:100%; object-fit:cover; }
.doc-card-name { font-size:.95rem; font-weight:800; color:var(--text); margin-bottom:1px; transition:color var(--transition); }
.doc-card-quals { font-size:.75rem; color:var(--text-secondary); line-height:1.4; margin-bottom:4px; }
.doc-card-spec { font-size:.78rem; font-weight:700; color:var(--primary-dark); margin-bottom:3px; }
.doc-card-hospital { font-size:.76rem; color:var(--text-secondary); }
.doc-card-footer { margin-top:8px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.doc-card-footer .details-link { font-size:.74rem; color:var(--primary); font-weight:700; margin-left:auto; }

/* ── 9. HOSPITAL ROW ── */
.hosp-row {
  background:var(--surface); border:1.5px solid var(--border); border-radius:var(--radius-sm);
  padding:12px 14px; display:flex; align-items:center; gap:12px; margin-bottom:7px;
  text-decoration:none; color:inherit; transition:border-color var(--transition);
}
.hosp-row:hover { border-color:var(--primary); color:inherit; }
.hosp-row:hover .hosp-name { color:var(--primary); }
.hosp-icon {
  width:44px; height:44px; background:var(--primary-light); border-radius:var(--radius-sm);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:1.2rem; color:var(--primary);
}
.hosp-name { font-size:.9rem; font-weight:800; color:var(--text); margin-bottom:2px; transition:color var(--transition); }
.hosp-meta { font-size:.75rem; color:var(--text-secondary); }
.blog-icon { width:44px; height:44px; background:var(--primary-light); border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:1.3rem; }
.blog-row-cat { font-size:.7rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--accent); margin-bottom:2px; }
.blog-row-title { font-size:.88rem; font-weight:700; color:var(--text); margin-bottom:2px; line-height:1.35; }
.blog-row-meta { font-size:.74rem; color:var(--text-secondary); }

/* ── 10. SIDEBAR WIDGETS ── */
.home-widget {
  background:var(--surface); border:1.5px solid var(--border); border-radius:var(--radius-sm);
  margin-bottom:16px; overflow:hidden;
}
.widget-head {
  background:var(--surface-2); border-bottom:1.5px solid var(--border); padding:10px 14px;
  font-size:.78rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--text-secondary);
}
.widget-body { padding:12px 14px; }
.div-item {
  display:flex; align-items:center; justify-content:space-between; padding:8px 0;
  border-bottom:1px solid var(--border); font-size:.86rem; font-weight:700;
  text-decoration:none; color:var(--text); transition:color var(--transition);
}
.div-item:last-child { border-bottom:none; padding-bottom:0; }
.div-item:first-child { padding-top:0; }
.div-item:hover { color:var(--primary); }
.div-item small { font-size:.72rem; font-weight:600; color:var(--text-secondary); }
.dept-filter-item {
  display:flex; align-items:center; justify-content:space-between; padding:7px 0;
  border-bottom:1px solid var(--border); font-size:.84rem; font-weight:600;
  text-decoration:none; color:var(--text-secondary); transition:color var(--transition);
}
.dept-filter-item:last-child { border-bottom:none; }
.dept-filter-item:hover { color:var(--primary); }
.dept-count-badge {
  font-size:.7rem; font-weight:700; background:var(--primary-light); color:var(--primary-dark);
  border-radius:4px; padding:1px 7px;
}
.stat-box { text-align:center; padding:10px; background:var(--primary-light); border-radius:var(--radius-sm); }
.stat-box-num { font-size:1.3rem; font-weight:800; color:var(--primary-dark); }
.stat-box-label { font-size:.72rem; font-weight:600; color:var(--text-secondary); }
.donor-widget-head { background:#FFF5F5; border-bottom-color:#F5C6C6; color:#922B21; }
.donor-note { font-size:.74rem; color:var(--text-secondary); margin-top:10px; margin-bottom:0; }
.donor-note a { color:var(--danger); font-weight:700; }
.btn-donor-search { background:var(--danger); color:#fff; border-radius:var(--radius-sm); padding:8px; font-size:.82rem; font-weight:700; border:none; }
.btn-donor-search:hover { background:#A93226; color:#fff; }

/* ── 11. BADGES ── */
.badge-verified {
  display:inline-flex; align-items:center; gap:4px; background:#E6F9F2; color:#1A7A50;
  border:1px solid #A8EACB; border-radius:var(--radius-pill); font-size:.7rem; font-weight:700; padding:3px 10px;
}
.badge-dept {
  background:var(--primary-light); color:var(--primary-dark); border-radius:var(--radius-pill);
  font-size:.72rem; font-weight:700; padding:3px 10px; display:inline-block;
}
.badge-type {
  border-radius:var(--radius-pill); font-size:.72rem; font-weight:700; padding:3px 10px; display:inline-block;
  background:#FEF9E7; color:#7D6608;
}
.badge-govt { background:#E8F4FD; color:#1A5276; }
.badge-private { background:#FEF9E7; color:#7D6608; }
.badge-clinic { background:#FDF2F8; color:#76448A; }
.badge-diagnostic { background:#F9EBEA; color:#922B21; }

/* ── 12. BUTTONS ── */
.btn { font-weight:600; transition:all var(--transition); }
.btn-primary { background:var(--primary)!important; border-color:var(--primary)!important; color:#fff!important; }
.btn-primary:hover { background:var(--primary-dark)!important; border-color:var(--primary-dark)!important; transform:translateY(-1px); }
.btn-outline-primary { color:var(--primary)!important; border-color:var(--primary)!important; }
.btn-outline-primary:hover { background:var(--primary)!important; color:#fff!important; }
.btn-accent { background:var(--accent)!important; border-color:var(--accent)!important; color:#fff!important; border-radius:var(--radius-pill); }
.btn-accent:hover { background:#D65F41!important; }
.btn-danger { background:var(--danger)!important; border-color:var(--danger)!important; }
.btn-whatsapp { background:#25D366; border-color:#25D366; color:#fff!important; border-radius:var(--radius-pill); }
.btn-whatsapp:hover { background:#1EAD54; color:#fff!important; }
.btn-pill { border-radius:var(--radius-pill); }

/* ── 13. FORMS ── */
.form-control,.form-select {
  border:1.5px solid var(--border); border-radius:var(--radius-sm); background:var(--surface);
  color:var(--text); font-size:.9rem; padding:8px 12px; transition:border-color var(--transition),box-shadow var(--transition);
}
.form-control:focus,.form-select:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(14,131,136,.1); }
.form-label { font-size:.82rem; font-weight:700; color:var(--text); margin-bottom:4px; }

/* ── 14. FILTER SIDEBAR (doctors/hospitals listing) ── */
.filter-sidebar {
  background:var(--surface); border:1.5px solid var(--border); border-radius:var(--radius-md);
  padding:16px; position:sticky; top:70px; margin-bottom:16px;
}
.filter-sidebar h6 { font-size:.9rem; font-weight:700; margin:0; }
.sidebar-filter-list { list-style:none; padding:0; margin:0; max-height:350px; overflow-y:auto; }
.sidebar-filter-list::-webkit-scrollbar { width:4px; }
.sidebar-filter-list::-webkit-scrollbar-thumb { background:var(--border); border-radius:4px; }
.sidebar-filter-list li { margin-bottom:1px; }
.sidebar-filter-list a {
  display:flex; justify-content:space-between; align-items:center; padding:5px 8px;
  border-radius:var(--radius-sm); font-size:.83rem; text-decoration:none; color:var(--text-secondary); transition:all .15s;
}
.sidebar-filter-list a:hover { background:var(--primary-light); color:var(--primary); }
.sidebar-filter-list a.active { background:var(--primary-light); color:var(--primary); font-weight:600; }
.filter-count {
  font-size:.72rem; font-weight:700; background:#E2E8F0; color:var(--text-secondary);
  padding:1px 8px; border-radius:var(--radius-pill); min-width:28px; text-align:center;
}
.filter-count.active { background:var(--primary); color:#fff; }
.active-filter-tag {
  font-size:.75rem; background:var(--primary-light); color:var(--primary); padding:3px 10px; border-radius:var(--radius-pill); font-weight:500;
}
.active-filter-tag a { color:var(--primary); margin-left:3px; }

/* ── 15. DOCTOR LISTING HERO ── */
.listing-hero {
  background:linear-gradient(135deg,var(--primary),#2E86AB); padding:24px 0 28px; color:#fff;
}
.listing-hero h1 { font-size:1.7rem; font-weight:800; margin-bottom:4px; color:#fff; }
.listing-hero .sub { opacity:.8; font-size:.9rem; margin-bottom:14px; }
.listing-hero .search-pill {
  background:#fff; border-radius:var(--radius-pill); padding:3px; display:flex; max-width:400px;
}
.listing-hero .search-pill input {
  border:none; outline:none; padding:6px 12px; font-size:.9rem; flex:1; border-radius:var(--radius-pill); color:var(--text);
}
.listing-hero select {
  background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.3); color:#fff;
  border-radius:8px; font-size:.82rem; padding:6px 10px; appearance:auto;
}
.listing-hero select option { color:#333; }
.listing-hero .clear-link { background:rgba(255,255,255,.2); color:#fff; border-radius:8px; font-size:.82rem; padding:6px 14px; text-decoration:none; }

/* ── 16. DOCTOR DETAIL PAGE ── */
.profile-header {
  background:linear-gradient(135deg,var(--primary),#2E86AB); color:#fff; padding:28px 0; margin-bottom:20px;
}
.profile-photo {
  width:140px; height:140px; border-radius:50%; object-fit:cover;
  border:4px solid rgba(255,255,255,.3); box-shadow:0 4px 20px rgba(0,0,0,.2);
}
.profile-name { font-size:1.5rem; font-weight:800; color:#fff; }
.profile-spec { color:rgba(255,255,255,.9); font-size:.95rem; font-weight:500; }
.profile-quals { color:rgba(255,255,255,.75); font-size:.85rem; line-height:1.6; }
.profile-tag {
  background:rgba(255,255,255,.15); padding:4px 12px; border-radius:var(--radius-pill); font-size:.8rem; display:inline-block;
}
.info-card {
  background:var(--surface); border:1.5px solid var(--border); border-radius:var(--radius-sm);
  padding:20px; margin-bottom:16px;
}
.info-card h5 {
  font-size:.82rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  color:var(--text-secondary); margin-bottom:14px; padding-bottom:10px; border-bottom:1.5px solid var(--border);
}
.info-card h5 i { color:var(--primary); margin-right:6px; }
.schedule-table { width:100%; }
.schedule-table th { font-size:.8rem; color:var(--text-secondary); font-weight:600; text-transform:uppercase; padding:6px 0; border-bottom:1px solid var(--border); }
.schedule-table td { padding:8px 0; border-bottom:1px solid var(--surface-2); font-size:.88rem; }
.schedule-table tr:last-child td { border-bottom:none; }
.hospital-link-card {
  display:flex; align-items:center; gap:10px; padding:10px; border-radius:var(--radius-sm);
  background:var(--bg); border:1px solid var(--border); text-decoration:none;
}
.hospital-link-icon {
  width:40px; height:40px; border-radius:8px; background:var(--primary-light);
  display:flex; align-items:center; justify-content:center; color:var(--primary);
}

/* ── 17. HOSPITAL DETAIL ── */
.hospital-detail-header { display:flex; align-items:flex-start; gap:16px; margin-bottom:16px; }
.hospital-logo { width:100px; height:100px; border-radius:var(--radius-md); object-fit:cover; }
.hospital-gallery img { height:150px; width:100%; object-fit:cover; border-radius:var(--radius-sm); }

/* ── 18. BLOG ── */
.blog-card { background:var(--surface); border:1.5px solid var(--border); border-radius:var(--radius-md); overflow:hidden; transition:all var(--transition); height:100%; }
.blog-card:hover { border-color:var(--primary); box-shadow:var(--shadow-sm); transform:translateY(-3px); }
.blog-card .blog-thumb { height:180px; overflow:hidden; }
.blog-card .blog-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.blog-card:hover .blog-thumb img { transform:scale(1.04); }
.blog-card .card-body { padding:16px; }
.blog-card .blog-cat { font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); margin-bottom:4px; }
.blog-card .blog-title { font-size:1rem; font-weight:700; line-height:1.35; margin-bottom:6px; color:var(--text); }
.blog-card .blog-excerpt { font-size:.85rem; color:var(--text-secondary); line-height:1.65; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.blog-card .blog-meta-line { font-size:.74rem; color:var(--text-light); margin-bottom:6px; }
.blog-article-body { font-size:1rem; line-height:1.85; color:var(--text); }
.blog-article-body p { margin-bottom:16px; }
.share-btn { display:inline-flex; align-items:center; gap:5px; padding:5px 14px; border-radius:var(--radius-pill); font-size:.82rem; color:#fff; text-decoration:none; font-weight:500; }
.share-btn:hover { opacity:.85; color:#fff; }
.share-btn-facebook { background:#1877F2; }
.share-btn-whatsapp { background:#25D366; }

/* ── 19. BLOOD DONOR ── */
.donor-card {
  background:var(--surface); border:1.5px solid var(--border); border-radius:var(--radius-sm);
  padding:14px; display:flex; align-items:center; gap:12px; margin-bottom:8px; transition:all var(--transition);
}
.donor-card:hover { border-color:var(--primary); box-shadow:var(--shadow-sm); }
.blood-badge {
  width:52px; height:52px; border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:1rem; flex-shrink:0; background:#FDE8E8; color:var(--danger);
}

/* ── 20. SEARCH DROPDOWN ── */
.search-results-dropdown {
  position:absolute; top:100%; left:0; right:0; background:var(--surface);
  border:1.5px solid var(--border); border-radius:var(--radius-md); box-shadow:var(--shadow-md);
  z-index:1000; max-height:420px; overflow-y:auto; display:none; margin-top:4px;
}
.search-results-dropdown.active { display:block; }
.search-result-item { padding:8px 14px; border-bottom:1px solid var(--surface-2); transition:background .15s; font-size:.88rem; }
.search-result-item:hover { background:var(--primary-light); }
.search-result-item:last-child { border-bottom:none; }
.search-group-title {
  padding:6px 14px; font-weight:700; font-size:.72rem; color:var(--primary); text-transform:uppercase;
  background:var(--surface-2); letter-spacing:.5px;
}

/* ── 21. BREADCRUMB ── */
.breadcrumb { font-size:.82rem; background:transparent; padding:0; margin-bottom:16px; }
.breadcrumb-item a { color:var(--primary); }
.breadcrumb-item.active { color:var(--text-secondary); }
.breadcrumb-light .breadcrumb-item a { color:rgba(255,255,255,.7); }
.breadcrumb-light .breadcrumb-item.active { color:rgba(255,255,255,.5); }
.breadcrumb-light .breadcrumb-item+.breadcrumb-item::before { color:rgba(255,255,255,.4); }

/* ── 22. PAGINATION ── */
.pagination .page-link {
  border:1.5px solid var(--border)!important; color:var(--text-secondary)!important;
  border-radius:var(--radius-sm)!important; font-weight:600; font-size:.85rem; padding:7px 14px; margin:0 2px;
}
.pagination .page-link:hover { background:var(--primary-light)!important; border-color:var(--primary)!important; color:var(--primary-dark)!important; }
.pagination .page-item.active .page-link { background:var(--primary)!important; border-color:var(--primary)!important; color:#fff!important; }

/* ── 23. FOOTER ── */
.mf-footer {
  background:var(--text); color:var(--text-light); padding:48px 0 20px;
}
.mf-footer .footer-brand { font-weight:800; font-size:1.4rem; color:#fff; margin-bottom:8px; }
.mf-footer .footer-brand span { color:var(--accent); }
.mf-footer p { font-size:.85rem; line-height:1.7; color:var(--text-light); }
.mf-footer h6 { font-size:.78rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--text-light); margin-bottom:14px; }
.mf-footer ul { list-style:none; padding:0; margin:0; }
.mf-footer ul li { margin-bottom:8px; }
.mf-footer ul li a { color:var(--text-light); font-size:.88rem; transition:color var(--transition); }
.mf-footer ul li a:hover { color:var(--primary); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.08); margin-top:32px; padding-top:20px; font-size:.8rem; color:rgba(255,255,255,.35); }
.footer-social a { color:var(--text-light); font-size:1.2rem; transition:color var(--transition); }
.footer-social a:hover { color:var(--primary); }

/* ── 24. ADMIN PANEL ── */
.admin-sidebar {
  background:linear-gradient(180deg,#1A2332,#0F172A); min-height:100vh; padding-top:12px;
  width:250px; position:fixed; top:0; left:0; z-index:100; overflow-y:auto;
}
.admin-sidebar .nav-link {
  color:rgba(255,255,255,.65); padding:8px 16px; border-radius:var(--radius-sm);
  margin:1px 8px; font-size:.85rem; font-weight:500; transition:all .2s;
}
.admin-sidebar .nav-link:hover,.admin-sidebar .nav-link.active { background:rgba(14,131,136,.2); color:#fff; }
.admin-sidebar .sidebar-brand { color:#fff; font-size:1.2rem; font-weight:800; padding:8px 16px 20px; border-bottom:1px solid rgba(255,255,255,.06); margin-bottom:8px; }
.admin-sidebar .sidebar-brand i { color:var(--accent); }
.admin-sidebar .sidebar-section { font-size:.65rem; text-transform:uppercase; color:rgba(255,255,255,.3); padding:10px 16px 3px; letter-spacing:1px; font-weight:700; }
.admin-content { margin-left:250px; padding:20px 24px; min-height:100vh; }
.admin-stat-card { background:var(--surface); border-radius:var(--radius-sm); padding:20px; border:1.5px solid var(--border); text-align:center; }
.admin-stat-card .stat-number { font-size:2rem; font-weight:800; color:var(--primary); }
.admin-stat-card .stat-label { font-size:.82rem; color:var(--text-secondary); font-weight:500; }

/* ── 25. SKELETON ── */
@keyframes shimmer { 0%{background-position:-600px 0} 100%{background-position:600px 0} }
.skeleton { background:linear-gradient(90deg,var(--border) 25%,#E8F0EF 50%,var(--border) 75%); background-size:600px 100%; animation:shimmer 1.4s infinite linear; border-radius:var(--radius-sm); }
.skeleton-card { height:300px; border-radius:var(--radius-sm); }

/* ── 26. UTILITIES ── */
.text-primary { color:var(--primary)!important; }
.text-accent { color:var(--accent)!important; }
.text-muted { color:var(--text-secondary)!important; }
.bg-primary-light { background:var(--primary-light)!important; }
.center-btn { text-align:center; padding:10px 0 4px; }

/* ── 27. RESPONSIVE ── */
@media(max-width:991px) {
  .admin-sidebar { display:none; }
  .admin-sidebar.show { display:block; width:100%; position:fixed; z-index:1050; }
  .admin-content { margin-left:0; padding:12px; }
}
@media(max-width:768px) {
  .hero-compact { padding:20px 0 18px; }
  .hero-compact h1 { font-size:1.3rem; }
  .mf-navbar .nav-link { padding:12px 14px!important; }
  .mf-navbar .nav-link::after { display:none; }
  .profile-photo { width:100px; height:100px; }
  .profile-name { font-size:1.2rem; }
  .doc-photo { width:56px; height:56px; font-size:1.5rem; }
  .doc-card { padding:10px; gap:10px; }
  .doc-card-name { font-size:.88rem; }
  .filter-sidebar { position:static; }
  .listing-hero h1 { font-size:1.3rem; }
}
@media(max-width:576px) {
  .hero-search-bar { border-radius:var(--radius-md); flex-wrap:wrap; }
  .hero-search-bar input { min-width:100%; margin-bottom:4px; }
  .hero-search-bar .btn { width:100%; border-radius:var(--radius-sm); }
  .doc-card-footer { gap:6px; }
  .hosp-row { padding:10px; gap:10px; }
  .stat-box-num { font-size:1.1rem; }
}

/* ── 28. LISTING HERO EXTRAS ── */
.listing-search-pill {
    background: #fff;
    border-radius: var(--radius-pill);
    padding: 3px;
    display: flex;
}
.listing-search-pill input {
    border: none;
    outline: none;
    padding: 6px 12px;
    font-size: .9rem;
    flex: 1;
    border-radius: var(--radius-pill);
    color: var(--text);
    min-width: 0;
}
.listing-clear-link {
    background: rgba(255,255,255,.2);
    color: #fff;
    border-radius: 8px;
    font-size: .82rem;
    padding: 6px 14px;
    text-decoration: none;
    display: inline-block;
    transition: background var(--transition);
}
.listing-clear-link:hover {
    background: rgba(255,255,255,.35);
    color: #fff;
}
.listing-hero select {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    border-radius: 8px;
    font-size: .82rem;
    padding: 6px 10px;
}
.listing-hero select option { color: #333; }

/* ── Select2 overrides ── */
.select2-container--default .select2-selection--single {
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    min-height: 34px !important;
    padding: 2px 4px;
    font-size: .88rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    color: var(--text);
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px;
}
.select2-container--default .select2-selection--multiple {
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    min-height: 34px !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary) !important;
}
.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(14,131,136,.1);
}
.select2-dropdown {
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-sm);
}

/* ── Listing hero select (translucent on gradient) ── */
.listing-hero-select {
    background: rgba(255,255,255,.15) !important;
    border: 1px solid rgba(255,255,255,.3) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: .82rem !important;
}
.listing-hero-select option { color: #333; }

/* ── 29. BOOKING PAGE ── */
.chamber-option {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    cursor: pointer;
    transition: all var(--transition);
}
.chamber-option:hover { border-color: var(--primary); background: var(--primary-light); }
.chamber-active { border-color: var(--primary) !important; background: var(--primary-light) !important; }
.chamber-radio {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border);
    flex-shrink: 0; transition: all var(--transition); position: relative;
}
.chamber-radio.active { border-color: var(--primary); }
.chamber-radio.active::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 8px; height: 8px;
    border-radius: 50%; background: var(--primary);
}

.calendar-day {
    text-align: center; padding: 10px 4px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border); cursor: default; transition: all var(--transition);
}
.calendar-day-name { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--text-secondary); }
.calendar-day-num { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.calendar-day-available { cursor: pointer; border-color: var(--primary); background: var(--primary-light); }
.calendar-day-available:hover { background: var(--primary); }
.calendar-day-available:hover .calendar-day-num { color: #fff; }
.calendar-day-available:hover .calendar-day-name { color: rgba(255,255,255,.8); }
.calendar-day-selected { background: var(--primary) !important; border-color: var(--primary) !important; }
.calendar-day-selected .calendar-day-num { color: #fff !important; }
.calendar-day-selected .calendar-day-name { color: rgba(255,255,255,.8) !important; }
.calendar-day-disabled { opacity: .4; }

.time-slot {
    padding: 6px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--border);
    background: var(--surface); font-size: .82rem; font-weight: 600; color: var(--text-secondary);
    cursor: pointer; transition: all var(--transition);
}
.time-slot:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.time-slot-selected { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }

/* ── 30. DEPARTMENT PILLS (wrapping) ── */
.dept-pills-bar {
    background: var(--surface);
    border-bottom: 1.5px solid var(--border);
    padding: 12px 0;
}
.dept-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.dept-pill {
    display: inline-block;
    padding: 5px 14px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.dept-pill:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}
.dept-pill.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

/* ── 31. ERROR PAGES ── */
.error-code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 900;
    line-height: 1;
    color: var(--primary-light);
    letter-spacing: -4px;
    margin-bottom: 8px;
    font-family: var(--font-head);
}
.error-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.error-desc {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

/* ── 32. ADMIN DASHBOARD WIDGETS ── */
.admin-stat-card {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1.5px solid var(--border);
}
.admin-stat-card .stat-number { font-size: 1.8rem; font-weight: 800; color: var(--text); line-height: 1; }
.admin-stat-card .stat-label { font-size: .78rem; color: var(--text-secondary); font-weight: 600; margin-bottom: 4px; }
.admin-stat-card .stat-sub { font-size: .72rem; color: var(--text-secondary); }
.admin-stat-icon {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.admin-mini-stat {
    background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    padding: 12px; text-align: center;
}
.admin-mini-stat i { font-size: 1.2rem; margin-bottom: 4px; display: block; }
.admin-mini-stat .fw-bold { font-size: 1.1rem; }

/* Summernote overrides */
.note-editor.note-frame { border: 1.5px solid var(--border) !important; border-radius: var(--radius-sm) !important; }
.note-toolbar { background: var(--bg) !important; border-bottom: 1.5px solid var(--border) !important; }

/* ── 33. ADMIN MOBILE SIDEBAR ── */
.admin-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 99;
    display: none;
}
.admin-overlay.show { display: block; }

@media(max-width:991px) {
    .admin-sidebar {
        display: none;
        width: 260px;
        position: fixed;
        top: 0; left: 0; bottom: 0;
        z-index: 1050;
        box-shadow: 4px 0 20px rgba(0,0,0,.3);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-sidebar.show { display: block; }
}

/* ── 34. MINI STAT CARDS (dashboard secondary) ── */
.mini-stat-card {
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.mini-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.mini-stat-card i { font-size: 1.4rem; display: block; margin-bottom: 6px; }
.mini-stat-num { font-size: 1.4rem; font-weight: 800; line-height: 1; margin-bottom: 2px; }
.mini-stat-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }

.mini-stat-blue  { background: #EFF6FF; color: #1E40AF; }
.mini-stat-blue i { color: #3B82F6; }
.mini-stat-green { background: #ECFDF5; color: #065F46; }
.mini-stat-green i { color: #10B981; }
.mini-stat-teal  { background: var(--primary-light); color: var(--primary-dark); }
.mini-stat-teal i { color: var(--primary); }
.mini-stat-purple { background: #F5F3FF; color: #5B21B6; }
.mini-stat-purple i { color: #8B5CF6; }
.mini-stat-orange { background: #FFF7ED; color: #9A3412; }
.mini-stat-orange i { color: #F97316; }

/* ── 35. BLOG SINGLE ── */
.blog-single-title { font-size: 1.5rem; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.blog-featured-img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 16px; max-height: 400px; object-fit: cover; }

/* ── 36. STATIC PAGES (privacy, terms) ── */
.static-page { max-width: 800px; margin: 0 auto; }
.static-page h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.static-page h2 { font-size: 1.15rem; font-weight: 700; margin-top: 24px; margin-bottom: 8px; }
.static-page p, .static-page li { font-size: .92rem; color: var(--text-secondary); line-height: 1.8; }
.static-page ul { padding-left: 20px; }
.static-page .last-updated { font-size: .8rem; color: var(--text-light); margin-bottom: 20px; }
