/* Stylesheet for Sehatmand Swat - Healthcare Directory App */

/* ==========================================
   1. Import Fonts & Setup Variables
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

:root {
  --primary-teal-dark: #115E59;     /* Deep teal */
  --primary-teal-medium: #0F766E;   /* Medium teal */
  --primary-teal-light: #CCFBF1;    /* Light teal bg */
  --primary-teal-text: #042F2E;     /* Darkest teal text */
  --accent-yellow: #F2C94C;         /* Warm amber yellow from Figma */
  --bg-app: #F9FAFB;                /* Light cool gray screen bg */
  --bg-card: #FFFFFF;               /* Pure white card bg */
  --text-dark: #1A2E1A;             /* Dark Charcoal / Green-black text */
  --text-muted: #6B7280;            /* Gray for secondary text */
  --verified-blue: #2563EB;         /* Blue checkmark color */
  --whatsapp-green: #16A34A;        /* WhatsApp official green */
  --whatsapp-green-hover: #15803d;
  --call-teal: #115E59;
  --call-teal-hover: #0f766e;
  --map-gray: #F3F4F6;
  --map-gray-hover: #E5E7EB;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Georgia', serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==========================================
   2. Reset & Global Layout
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #F1F5F9;
  min-height: 100vh;
  display: block;
  overflow-x: hidden;
  color: var(--text-dark);
}

/* Scrollbar customizations */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(17, 94, 89, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(17, 94, 89, 0.45);
}

/* ==========================================
   3. Responsive Website Shell
   ========================================== */
.phone-shell {
  position: relative;
  width: 100%;
  max-width: 1240px;
  min-height: 100vh;
  margin: 0 auto;
  background: transparent;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

/* Screen wrapper container */
.phone-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: transparent;
  display: flex;
  flex-direction: column;
}

/* Remove fake hardware mockup artifacts on responsive website */
.phone-notch,
.phone-status-bar,
.home-indicator {
  display: none !important;
}

/* ==========================================
   4. App Navigation & Shell structure
   ========================================== */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding-bottom: 74px; /* Space for navbar */
}

/* Viewport content area */
.app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* Pull-to-refresh spinner styling */
.pull-to-refresh-spinner {
  height: 0px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-teal);
  background: var(--bg-card);
  font-size: 13px;
  font-weight: 700;
  transition: height 0.15s ease, opacity 0.15s ease;
  opacity: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.pull-to-refresh-spinner.visible {
  opacity: 1;
}

/* Bottom Nav Bar */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 74px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px 10px 10px;
  z-index: 1000;
  border-radius: 0 0 38px 38px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 4px;
}

.nav-item i {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.nav-item:hover {
  color: var(--primary-teal-dark);
}

.nav-item.active {
  color: var(--primary-teal-dark);
}

.nav-item.active i {
  transform: translateY(-2px);
}

/* Bottom home indicator line (simulate iOS) */
.home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  z-index: 1001;
  pointer-events: none;
}

/* Screens toggling */
.app-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  padding-top: 0; /* Align with hero */
  padding-bottom: 8px; /* Prevent content from being hidden under bottom navigation bar */
}

.app-screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* ==========================================
   5. Directory-First Homepage Styles
   ========================================== */

/* Compact Header */
.home-compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 8px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.brand-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 2px 5px rgba(15, 118, 110, 0.25);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 20px;
  font-weight: 800;
  color: #0F766E;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-tagline {
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
  letter-spacing: -0.01em;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}

.verified-count-pill i {
  color: #059669;
  font-size: 12px;
}

.header-action-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.emergency-quick-btn {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

.emergency-quick-btn:hover {
  background: #FEE2E2;
}

.admin-quick-btn {
  background: #F1F5F9;
  color: #334155;
  border-color: #CBD5E1;
}

.admin-quick-btn:hover {
  background: #E2E8F0;
}

/* Compact Search & Filter Strip */
.compact-search-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.search-input-wrap {
  flex: 1 1 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-prefix-icon {
  position: absolute;
  left: 12px;
  color: #94A3B8;
  font-size: 13px;
  pointer-events: none;
}

#home-search-input {
  width: 100%;
  height: 36px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 0 32px 0 34px;
  font-size: 13px;
  color: #0F172A;
  outline: none;
  transition: all 0.2s ease;
}

#home-search-input:focus {
  background: #FFFFFF;
  border-color: #0F766E;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.search-clear-icon-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-icon-btn:hover {
  color: #0F172A;
}

.search-filters-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .compact-search-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }
  .search-input-wrap {
    width: 100%;
    flex: none;
  }
  .search-filters-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .filter-select-box select {
    width: 100%;
  }
  .btn-clear-filters {
    grid-column: span 2;
    justify-content: center;
  }
}

.filter-select-box {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-select-box i {
  position: absolute;
  left: 10px;
  color: #0F766E;
  font-size: 12px;
  pointer-events: none;
}

.filter-select-box select {
  height: 36px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 0 10px 0 28px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select-box select:focus {
  border-color: #0F766E;
}

.btn-clear-filters {
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #FCA5A5;
  background: #FEF2F2;
  color: #DC2626;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-clear-filters:hover {
  background: #FEE2E2;
}

/* Featured Doctors (Sponsored) Single Slim Horizontal Row */
.featured-sponsored-section {
  margin-bottom: 12px;
}

.featured-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding: 0 2px;
}

.featured-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured-header-title i {
  color: #D97706;
  font-size: 13px;
}

.featured-title-text {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0F766E;
}

.sponsored-tag-pill {
  font-size: 10px;
  font-weight: 800;
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 1px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mobile-hint {
  font-size: 11px;
  color: #94A3B8;
  display: none;
}

@media (max-width: 767px) {
  .mobile-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
}

/* Featured row container */
.featured-doctors-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 991px) and (min-width: 768px) {
  .featured-doctors-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .featured-doctors-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .featured-doctors-row::-webkit-scrollbar {
    height: 3px;
  }
  .featured-doctors-row::-webkit-scrollbar-thumb {
    background: rgba(15, 118, 110, 0.3);
    border-radius: 3px;
  }
}

/* Compact Featured Doctor Card */
.featured-doctor-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  height: 74px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  text-align: left;
}

@media (max-width: 767px) {
  .featured-doctor-card {
    flex: 0 0 auto;
    width: 260px;
    scroll-snap-align: start;
  }
}

.featured-doctor-card:hover {
  border-color: #0F766E;
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.12);
  transform: translateY(-1px);
}

.featured-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.featured-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0F766E;
  background: #E2E8F0;
}

.featured-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #10B981;
  border: 1.5px solid #FFFFFF;
  border-radius: 50%;
}

.featured-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-name-line {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.featured-name-line i {
  color: #2563EB;
  font-size: 11px;
  flex-shrink: 0;
}

.featured-spec-line {
  font-size: 11.5px;
  font-weight: 600;
  color: #0F766E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.featured-loc-line {
  font-size: 10.5px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.featured-right-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.featured-card-sponsored {
  font-size: 8.5px;
  font-weight: 800;
  color: #B45309;
  background: #FEF3C7;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.featured-rating-pill {
  font-size: 11px;
  font-weight: 700;
  color: #D97706;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* All Doctors Directory Section */
.directory-section {
  margin-top: 10px;
}

.directory-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.directory-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.directory-header-title i {
  color: #0F766E;
  font-size: 16px;
}

.directory-title-text {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.directory-count-badge {
  background: #0F766E;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
}

.directory-filter-summary {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}

/* Directory Grid */
.directory-doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 900px) and (min-width: 600px) {
  .directory-doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .directory-doctors-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Empty State */
.directory-empty-state {
  text-align: center;
  padding: 36px 20px;
  background: #FFFFFF;
  border: 1.5px dashed #CBD5E1;
  border-radius: 14px;
  margin: 16px 0;
}

.empty-state-icon {
  font-size: 36px;
  color: #94A3B8;
  margin-bottom: 10px;
}

.empty-state-title {
  font-size: 17px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 13px;
  color: #64748B;
  max-width: 380px;
  margin: 0 auto 14px;
}

.btn-empty-reset {
  background: #0F766E;
  color: #FFFFFF;
  border: none;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.btn-empty-reset:hover {
  background: #115E59;
}

/* Slim Emergency / Partner Banner */
.slim-emergency-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  margin-top: 14px;
  margin-bottom: 8px;
}

.banner-icon-col {
  color: #DC2626;
  font-size: 18px;
  flex-shrink: 0;
}

.banner-text-col {
  flex: 1;
  font-size: 12px;
  color: #991B1B;
  line-height: 1.3;
}

.banner-call-btn {
  background: #DC2626;
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.banner-call-btn:hover {
  background: #B91C1C;
}

/* ==========================================
   6. Main Content Area Spacers & Sections
   ========================================= */
.home-sections {
  padding: 56px 16px 0px 16px; /* 56px padding-top to give comfortable spacing after floating search */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-teal-medium);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

/* Specializations Grid System */
.specializations-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: scroll !important;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  padding: 8px 4px 6px 4px;
  scroll-behavior: smooth;
  width: 100%;
}

.specializations-grid::-webkit-scrollbar {
  display: none; /* Hide scrollbar for a clean native mobile look */
}

.specialization-item {
  flex: 0 0 auto;
  width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.specialization-item.secondary-spec {
  display: flex !important; /* Always show in the carousel row */
  opacity: 1 !important;
  transform: none !important;
}



.spec-name-ur {
  font-family: var(--font-urdu);
  font-size: 8.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: -3px;
  text-align: center;
  max-width: 76px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
}

.spec-icon-wrapper {
  width: 58px;
  height: 58px;
  background: var(--bg-card);
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.specialization-item:active .spec-icon-wrapper {
  transform: scale(0.9);
  box-shadow: none;
}

.spec-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  width: 76px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stats Row Cards */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.stat-card {
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.stat-card:active {
  transform: scale(0.97);
}

.stat-number {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
}

.stat-card.dark-teal {
  background: var(--primary-teal-dark);
  color: #FFFFFF;
}

.stat-card.light-teal {
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
}

.stat-card.white-outline {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--primary-teal-dark);
}

.stat-card.white-outline .stat-label {
  color: var(--text-muted);
}

/* ==========================================
   7. Doctor Profile Cards
   ========================================== */
.doctor-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 12px;
  position: relative;
}

.doctor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.doctor-card-top {
  display: flex;
  gap: 12px;
}

.doctor-avatar-wrapper {
  position: relative;
  width: 68px;
  height: 68px;
}

.doctor-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  background-color: #10B981; /* Online green */
  border: 2px solid #FFFFFF;
  border-radius: 50%;
}

.status-dot.offline {
  background-color: #9CA3AF;
}

/* Info content of doctor card */
.doctor-info-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px; /* 5-6px row gap from spec sheet */
}

.doctor-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-right: 32px; /* Prevent overlap with favorite button */
}

.doctor-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}

.verified-badge {
  color: var(--verified-blue);
  font-size: 16px;
  display: inline-flex;
}

.rating-badge-top {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #D97706; /* Darker amber */
}

.doctor-specialty-row {
  font-size: 13px;
  font-weight: 600;
  color: #0F5132; /* Green specialty */
  display: flex;
  align-items: center;
  gap: 5px;
}

.doctor-specialty-urdu {
  font-family: var(--font-urdu);
  font-size: 11px;
  font-weight: 700;
  color: #0F5132;
  margin-top: -3px;
}

.doctor-degrees {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.doctor-exp {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Badges wrapper inside card */
.doctor-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pill-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-badge.pmdc-verified {
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
}

.pill-badge.rating {
  background: #FEF3C7;
  color: #92400E;
}

.pill-badge.gender {
  background: #EFF6FF;
  color: #1E40AF;
}

.pill-badge.gender.female-pill {
  background: #FDF2F8;
  color: #DB2777;
}

.pill-badge.location {
  background: #F3F4F6;
  color: #4B5563;
}

/* Card Button Actions */
.card-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.btn-action {
  height: 36px;
  border-radius: 10px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action:active {
  transform: scale(0.95);
}

.btn-action.call {
  background: var(--call-teal);
  color: #FFFFFF;
}

.btn-action.call:hover {
  background: var(--call-teal-hover);
}

.btn-action.whatsapp {
  background: var(--whatsapp-green);
  color: #FFFFFF;
}

.btn-action.whatsapp:hover {
  background: var(--whatsapp-green-hover);
}

.btn-action.map {
  background: var(--map-gray);
  color: var(--text-dark);
}

.btn-action.map:hover {
  background: var(--map-gray-hover);
}

/* ==========================================
   8. Search & Directory Screen
   ========================================== */
.screen-header-bar {
  background: #FFFFFF;
  padding: 44px 16px 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.screen-title-bar {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.search-input-wrapper {
  background: #F3F4F6;
  border-radius: 12px;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 10px;
}

.search-input-wrapper i {
  color: var(--text-muted);
  font-size: 16px;
}

.search-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-dark);
  margin-left: 8px;
}

/* Filter Tags horizontal slider */
.filters-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filters-slider::-webkit-scrollbar {
  display: none;
}

.filter-tag {
  background: #F3F4F6;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tag.active {
  background: var(--primary-teal-dark);
  color: #FFFFFF;
}

.directory-results {
  padding: 16px;
}

.empty-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-results i {
  font-size: 48px;
  color: #D1D5DB;
  margin-bottom: 12px;
}

.empty-results h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

/* ==========================================
   9. Doctor Detail Screen
   ========================================== */
.detail-navbar {
  position: absolute;
  top: 38px; /* Below status bar */
  left: 0;
  right: 0;
  height: 50px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
}

.detail-nav-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: none;
  pointer-events: auto;
  transition: background 0.2s;
}

.detail-nav-btn:active {
  background: #E5E7EB;
}

.detail-hero {
  height: 200px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.detail-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) blur(2px);
}

.detail-profile-wrapper {
  margin-top: -60px;
  padding: 0 16px;
  position: relative;
  z-index: 100;
}

.detail-avatar-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #FFFFFF;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
}

.detail-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-identity {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Spacing 6px from spec */
}

.detail-name {
  font-size: 22px; /* 22px Dark Charcoal from spec */
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-specialty-row {
  font-size: 15px; /* 15px #0F5132 bilingual from spec */
  font-weight: 600;
  color: #0F5132;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-specialty-urdu {
  font-family: var(--font-urdu);
  font-size: 13px;
  font-weight: 700;
  color: #0F5132;
}

.detail-degrees {
  font-size: 14px; /* 14px Muted Gray from spec */
  font-weight: 500;
  color: var(--text-muted);
}

.detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Detail sections */
.detail-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  border-left: 4px solid var(--primary-teal-dark);
  padding-left: 8px;
}

.detail-desc {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.5;
}

.clinic-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.clinic-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.clinic-loc {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed #E5E7EB;
}

.schedule-day {
  font-weight: 600;
  color: var(--text-dark);
}

.schedule-time {
  color: var(--primary-teal-medium);
  font-weight: 700;
}

/* Booking CTA bar inside details */
.booking-bar {
  margin-top: 8px;
  padding: 12px;
  background: var(--primary-teal-light);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-fee-label {
  font-size: 12px;
  color: var(--primary-teal-text);
  font-weight: 500;
}

.booking-fee {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-teal-dark);
}

.btn-book {
  background: var(--primary-teal-dark);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-book:hover {
  background: var(--primary-teal-medium);
}

/* Reviews List Section */
.review-item {
  padding: 10px 0;
  border-bottom: 1px solid #F3F4F6;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.review-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.review-rating {
  color: #D97706;
  font-size: 11px;
}

.review-comment {
  font-size: 12px;
  color: #4B5563;
  line-height: 1.4;
}

/* ==========================================
   10. Emergency Contact Screen
   ========================================== */
.emergency-content {
  padding: 44px 16px 20px 16px;
}

.emergency-intro {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  margin-bottom: 20px;
}

.emergency-intro i {
  color: #EF4444;
  font-size: 24px;
}

.emergency-intro-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: #991B1B;
  margin-bottom: 2px;
}

.emergency-intro-text p {
  font-size: 12px;
  color: #7F1D1D;
  line-height: 1.4;
}

.emergency-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.emergency-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.emergency-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.emergency-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-emergency-call {
  width: 40px;
  height: 40px;
  background: #EF4444;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.4);
  transition: transform 0.2s ease;
}

.btn-emergency-call:active {
  transform: scale(0.9);
}

/* ==========================================
   11. Register / Add Doctor Screen
   ========================================== */
.add-doctor-content {
  padding: 44px 16px 20px 16px;
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  height: 40px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: border 0.2s;
}

.form-control:focus {
  border-color: var(--primary-teal-dark);
}

.form-control-textarea {
  height: 80px;
  padding: 10px 12px;
  resize: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn-submit {
  margin-top: 10px;
  height: 44px;
  background: var(--primary-teal-dark);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--primary-teal-medium);
}

/* ==========================================
   12. Profile / Settings Screen
   ========================================== */
.profile-content {
  padding: 44px 16px 20px 16px;
}

.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
}

.profile-user-avatar {
  width: 80px;
  height: 80px;
  background: var(--primary-teal-dark);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.profile-user-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.profile-user-email {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-menu {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-menu-item {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid rgba(0,0,0,0.03);
}

.profile-menu-item:hover {
  background: #F3F4F6;
}

.profile-menu-item i.menu-arrow {
  color: var(--text-muted);
  font-size: 12px;
}

.profile-menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-menu-item-left i {
  font-size: 18px;
  color: var(--primary-teal-dark);
  width: 24px;
  text-align: center;
}

.app-version-card {
  margin-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
}

/* ==========================================
   13. Responsive Adaptations
   ========================================== */
@media (min-width: 768px) {
  .app-container {
    height: auto;
    min-height: 100vh;
    padding-bottom: 30px;
  }
  
  .app-content {
    overflow-y: visible;
    overflow-x: visible;
    height: auto;
  }
  
  .app-screen {
    display: none;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    overflow: visible;
    opacity: 1;
    transform: none;
    padding: 6px 0 30px;
  }
  
  .app-screen.active {
    display: block;
    pointer-events: auto;
  }
  
  .bottom-nav {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body {
    background: #F8FAFC;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .phone-shell {
    width: 100vw;
    min-height: 100vh;
    border-radius: 0;
    padding: 0 10px;
    box-shadow: none;
    border: none;
    display: block;
  }
  
  .phone-screen {
    border-radius: 0;
    min-height: 100vh;
    height: auto;
    display: block;
    overflow: visible;
  }
  
  .app-container {
    height: auto;
    min-height: 100vh;
    padding-bottom: 74px;
    display: block;
  }
  
  .app-content {
    overflow: visible;
    height: auto;
  }
  
  .app-screen {
    display: none;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 6px 0 20px;
    opacity: 1;
    transform: none;
  }
  
  .app-screen.active {
    display: block;
    pointer-events: auto;
  }
  
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
  }
}

/* ==========================================
   14. Facilities Grid & PMDC Footer Styles
   ========================================== */
.facilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.facility-card {
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.facility-card.available {
  border: 1.5px solid #10B981;
  background-color: #F0FDF4;
  color: #065F46;
}

.facility-card.not-available {
  border: 1.5px solid #E5E7EB;
  background-color: #F9FAFB;
  color: #9CA3AF;
  opacity: 0.65;
}

.facility-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.facility-icon {
  font-size: 18px;
}

.facility-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.facility-indicator-dot.available {
  background-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.facility-indicator-dot.not-available {
  background-color: #9CA3AF;
}

.facility-card-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.facility-label-en {
  font-size: 11px;
  font-weight: 700;
}

.facility-label-ur {
  font-family: var(--font-urdu);
  font-size: 10px;
  font-weight: 700;
  direction: rtl;
  margin-top: -3px;
}

/* PMDC Footer container */
#detail-pmdc-footer {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.pmdc-footer-container {
  background: #F3F4F6;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.pmdc-footer-icon {
  font-size: 20px;
  color: var(--primary-teal-dark);
}

.pmdc-footer-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pmdc-footer-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.pmdc-footer-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Advertisement Banner Styles */
.ad-banner-container {
  margin-top: 20px;
  background: var(--bg-card);
  border-radius: 16px;
  border: none;
  padding: 0; /* Remove padding for full-bleed image */
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 112px; /* Perfect 16:5 aspect ratio height for 358px content width */
}

.ad-badge {
  display: none; /* Removed as requested */
}

.ad-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.ad-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.ad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-slide.active {
  opacity: 1;
  visibility: visible;
}

.ad-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

.ad-text-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-right: 95px; /* Prevent overlap with absolute-positioned AD badge */
}

.ad-title-en {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.ad-title-ur {
  font-family: var(--font-urdu);
  font-size: 11px;
  font-weight: normal;
  color: var(--primary-teal-dark);
}

.ad-desc-en {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.2;
}

.ad-desc-ur {
  font-family: var(--font-urdu);
  font-size: 9px;
  color: #4B5563;
  margin-top: 2px;
  direction: rtl;
}

/* ==========================================
   15. Advertisement Management Settings Page
   ========================================== */
.ad-manager-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.ad-manager-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.2s ease-in-out;
}

.ad-manager-preview {
  width: 96px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.08);
}

.ad-manager-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-manager-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

.ad-manager-size {
  font-size: 10px;
  color: var(--text-muted);
}

.btn-delete-ad {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #FEF2F2;
  color: #EF4444;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.btn-delete-ad:hover {
  background: #FEE2E2;
  transform: scale(1.05);
}

.btn-browse-file:hover {
  background: rgba(17, 94, 89, 0.15) !important;
  transform: translateY(-1px);
}

.empty-ad-placeholder {
  padding: 24px;
  text-align: center;
  border: 1.5px dashed #E5E7EB;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Administrative Controls on Doctor Detail screen */
.admin-detail-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: -10px;
  padding: 0 4px;
}

.btn-admin-edit {
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.1s;
}

.btn-admin-edit:hover {
  background: #b2f5ea;
}

.btn-admin-edit:active {
  transform: scale(0.97);
}

.btn-admin-delete {
  background: #FEE2E2;
  color: #DC2626;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.1s;
}

.btn-admin-delete:hover {
  background: #fca5a5;
}

.btn-admin-delete:active {
  transform: scale(0.97);
}

/* Map Preview Card Interactive Styles */
.map-preview-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 94, 89, 0.12) !important;
  border-color: rgba(17, 94, 89, 0.3) !important;
}

.map-preview-card:active {
  transform: translateY(0);
}

/* Favorites Button */
.btn-favorite {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  color: #9CA3AF;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.btn-favorite.active {
  color: #EF4444;
}
.btn-favorite:hover {
  transform: scale(1.1);
  background: #FFFFFF;
}

/* Authentication Screen CSS */
.auth-container {
  padding: 16px;
  padding-top: 44px; /* Safety padding for status bar / notch */
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.auth-tabs {
  display: flex;
  background: #F3F4F6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: #FFFFFF;
  color: var(--primary-teal-dark);
  box-shadow: var(--shadow-sm);
}

.auth-form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-teal-dark);
}

.auth-input {
  height: 44px;
  border: 1px solid rgba(17, 94, 89, 0.15);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: #FFFFFF;
  transition: border-color 0.2s ease;
}

.auth-input:focus {
  border-color: var(--primary-teal-dark);
}

.otp-verification-container {
  background: var(--primary-teal-light);
  border-radius: 12px;
  padding: 14px;
  margin-top: 8px;
  border: 1px solid rgba(17, 94, 89, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.otp-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-teal-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.otp-inputs-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.otp-field {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 94, 89, 0.2);
  border-radius: 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  outline: none;
  background: #FFFFFF;
}

.otp-field:focus {
  border-color: var(--primary-teal-dark);
}

.admin-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-toggle-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.admin-toggle-wrapper label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}
