/* --- Global Design Variables & Reset --- */
:root {
  /* HSL tailored color palette */
  --primary-color: #3b82f6; /* Premium Dental Blue */
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --secondary-color: #0d9488; /* Medical Teal */
  --bg-color: #f3f6fc; /* Light WeChat/Clinic blue-grey background */
  --card-bg: #ffffff;
  
  --accent-orange: #f97316;
  --accent-orange-light: #fff7ed;
  --accent-green: #10b981;
  --accent-green-light: #ecfdf5;
  --accent-blue-light: #eff6ff;
  
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  
  --shadow-sm: 0 2px 4px rgba(59, 130, 246, 0.04);
  --shadow-md: 0 4px 12px rgba(59, 130, 246, 0.08);
  --shadow-lg: 0 10px 25px rgba(59, 130, 246, 0.12);
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 24px;
  
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Noto Sans SC', 'Outfit', -apple-system, sans-serif;
  background-color: #0f172a; /* Dark desktop container background */
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

/* --- WeChat Phone Simulator Container --- */
.phone-container {
  width: 100%;
  max-width: 420px; /* iPhone 15 Pro / Max width */
  height: 90vh;
  max-height: 880px;
  background-color: var(--bg-color);
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 10px #1e293b; /* Premium metallic bezel border */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Responsive Overrides (For actual mobile viewports) */
@media (max-width: 480px) {
  body {
    background-color: var(--bg-color);
  }
  .phone-container {
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}

/* --- Status Bar --- */
.status-bar {
  height: 44px;
  padding: 0 24px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  z-index: 100;
  background-color: var(--bg-color);
}
.status-bar .icons {
  display: flex;
  gap: 6px;
  align-items: center;
}
.status-bar .battery {
  display: flex;
  align-items: center;
  position: relative;
}
.status-bar .battery .level {
  position: absolute;
  top: 4px;
  left: 2px;
  width: 10px;
  height: 6px;
  background-color: #1a1a1a;
  border-radius: 1px;
}

/* --- WeChat Mini Program Navigation Bar --- */
.mp-header {
  height: 44px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-color);
  z-index: 10;
  position: relative;
}
.mp-header .left-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-header .back-btn {
  font-size: 24px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 4px;
}
.mp-header .mp-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}

/* WeChat Capsule Button Mockup */
.wechat-capsule {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 4px 10px;
  gap: 10px;
  backdrop-filter: blur(10px);
}
.wechat-capsule button {
  background: none;
  border: none;
  font-size: 16px;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wechat-capsule .capsule-divider {
  width: 1px;
  height: 12px;
  background-color: rgba(0, 0, 0, 0.15);
}

/* --- Scrollable Body --- */
.mp-body {
  flex: 1;
  overflow-y: auto;
  position: relative;
  padding: 12px 16px 88px 16px; /* Space for tabbar */
  scroll-behavior: smooth;
}
/* Hide default scrollbar but allow scrolling */
.mp-body::-webkit-scrollbar {
  width: 4px;
}
.mp-body::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.05);
  border-radius: 2px;
}

/* --- Screen Tab Controllers --- */
.screen {
  display: none;
  flex-direction: column;
  animation: fadeIn 0.35s ease-out;
}
.screen.active {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 1. HOME SCREEN STYLING --- */

/* Brand Identification */
.clinic-id-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.clinic-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.clinic-brand .logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: var(--shadow-md);
}
.brand-text .clinic-name {
  font-size: 18px;
  font-weight: 700;
  color: #1e3a8a;
  letter-spacing: 0.5px;
}
.brand-text .brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: #f97316; /* Orange tagline match */
  background: #fff7ed;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 1px;
}

/* Search bar trigger */
.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  border-radius: 30px;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(59, 130, 246, 0.05);
}

/* AI Assistant Prompter Banner */
.ai-banner-card {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  border-radius: 20px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.6);
  cursor: pointer;
}
.ai-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.ai-text-block .ai-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 6px;
}
.ai-text-block .highlight-blue {
  color: var(--primary-color);
  font-weight: 800;
}
.ai-text-block .ai-desc {
  font-size: 11px;
  color: #475569;
  letter-spacing: 0.2px;
}
.assistant-robot-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
}
.robot-face {
  width: 50px;
  height: 46px;
  background: #fff;
  border: 3px solid #3b82f6;
  border-radius: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  animation: float 3s ease-in-out infinite;
}
.robot-eyes {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.robot-eyes .eye {
  width: 6px;
  height: 6px;
  background-color: #1e293b;
  border-radius: 50%;
  animation: blink 4s infinite;
}
.robot-mouth {
  width: 14px;
  height: 4px;
  border-bottom: 3px solid #1e293b;
  border-radius: 0 0 8px 8px;
}
.sparkles {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 14px;
  color: #f59e0b;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

.ai-input-bar {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 30px;
  padding: 4px 4px 4px 14px;
  margin-top: 14px;
  border: 1px solid #bfdbfe;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.05);
}
.ai-input-bar input {
  flex: 1;
  border: none;
  background: none;
  font-size: 13px;
  outline: none;
  color: var(--text-dark);
}
.ai-input-bar .ai-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Clinic Showcase Slider */
.showcase-slider {
  width: 100%;
  height: 140px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.showcase-slider .slides {
  width: 100%;
  height: 100%;
}
.showcase-slider .slide {
  width: 100%;
  height: 100%;
  position: relative;
}
.showcase-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase-slider .slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
}

/* Ticker Announcement */
.announcement-row {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  gap: 10px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.announcement-row .ann-tag {
  color: var(--accent-orange);
  background-color: var(--accent-orange-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}
.announcement-row .ann-ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.announcement-row .ann-text {
  display: inline-block;
  color: var(--text-dark);
  font-weight: 500;
}
.announcement-row .ann-date {
  color: var(--text-light);
}

/* Core Service Cards Grid (Copy layout from image) */
.core-services-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.service-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.02);
}
.service-card:active {
  transform: scale(0.98);
}
.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.service-card p {
  font-size: 12px;
  color: var(--text-muted);
}
.service-card .action-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--primary-gradient);
  padding: 3px 8px;
  border-radius: 10px;
}
.service-card .card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.card-icon.blue {
  background-color: #eff6ff;
  color: #3b82f6;
}
.card-icon.green {
  background-color: #ecfdf5;
  color: #10b981;
}
.card-icon.orange {
  background-color: #fff7ed;
  color: #f97316;
}

.service-card.large {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1px solid #dbeafe;
}
.service-card.large h3 {
  color: #1e3a8a;
  font-size: 18px;
}

.small-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.service-card.medium {
  flex-direction: row;
  padding: 14px;
}
.service-card.medium h3 {
  font-size: 14px;
}
.service-card.medium .card-icon {
  width: 38px;
  height: 38px;
  font-size: 18px;
}

/* Homepage Science/Education Section */
.home-education-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}
.section-header-row .section-title {
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}
.view-more-edu {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
}


/* --- 2. AI ASSISTANT SCREEN --- */
.assistant-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  background-color: #fff;
  border-radius: var(--border-radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.robot-avatar-large {
  width: 68px;
  height: 62px;
  background-color: #fff;
  border: 4px solid var(--primary-color);
  border-radius: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
}
.assistant-welcome h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.assistant-welcome p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 4px;
  overflow-y: auto;
  min-height: 250px;
}
.message-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}
.message-bubble.assistant {
  align-self: flex-start;
  background-color: #fff;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.02);
}
.message-bubble.user {
  align-self: flex-end;
  background: var(--primary-gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: var(--shadow-sm);
}

/* Chat interactive dynamic buttons */
.chat-action-card {
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-action-card span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.chat-action-btn {
  background-color: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 8px;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.chat-action-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.suggestion-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 4px;
  white-space: nowrap;
}
.suggestion-scroll::-webkit-scrollbar {
  display: none;
}
.suggestion-scroll .chip {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.suggestion-scroll .chip:active {
  background-color: #eff6ff;
  border-color: #bfdbfe;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 30px;
  padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
}
.chat-input-bar input {
  flex: 1;
  border: none;
  background: none;
  font-size: 13px;
  outline: none;
  color: var(--text-dark);
}
.chat-input-bar button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}


/* --- 3. RESERVATION SCREEN --- */
.booking-flow-step {
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease-out;
}
.booking-flow-step.hidden {
  display: none;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.booking-flow-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.booking-flow-nav .back-to-step {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.booking-flow-nav .selected-dept-indicator {
  font-size: 12px;
  color: var(--text-muted);
}
.booking-flow-nav .selected-dept-indicator span {
  font-weight: 700;
  color: var(--text-dark);
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 4px;
}

.dept-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dept-item {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.01);
}
.dept-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.dept-item p {
  font-size: 11px;
  color: var(--text-muted);
}
.dept-item i {
  color: var(--text-light);
  font-size: 18px;
}

/* Doctors Selection List */
.doctor-row-card {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.doctor-row-main {
  display: flex;
  gap: 12px;
}
.doctor-row-main img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eff6ff;
}
.doctor-detail-info {
  flex: 1;
}
.doctor-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.doctor-name-row h4 {
  font-size: 14px;
  font-weight: 700;
}
.doctor-name-row .fee {
  font-size: 13px;
  color: var(--accent-orange);
  font-weight: 700;
}
.doctor-title {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.doctor-rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.doctor-rating-row .star-num {
  color: #eab308;
  font-weight: 700;
}
.doctor-row-tags {
  font-size: 11px;
  color: #475569;
  background-color: #f1f5f9;
  padding: 6px 10px;
  border-radius: 6px;
}
.doctor-row-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: 2px;
}
.doctor-row-footer .schedule-brief {
  font-size: 11px;
  color: var(--text-light);
}
.doctor-row-footer .btn-book-now {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Booking Details & Slots */
.brief-doctor-card {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.brief-doctor-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.brief-doc-info h4 {
  font-size: 14px;
  font-weight: 700;
}
.brief-doc-info p {
  font-size: 11px;
  color: var(--text-muted);
}
.brief-doc-info .dept-tag {
  color: var(--primary-color);
  font-weight: 700;
  margin-top: 2px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: block;
}
.form-label.margin-top {
  margin-top: 14px;
}

.date-chips-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.date-chips-container::-webkit-scrollbar {
  display: none;
}
.date-chip {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  min-width: 65px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.date-chip span.day {
  font-size: 11px;
  color: var(--text-muted);
}
.date-chip span.date {
  font-size: 13px;
  font-weight: 700;
}
.date-chip.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.date-chip.active span.day {
  color: rgba(255, 255, 255, 0.8);
}
.date-chip.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.time-chips-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.time-chip {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.time-chip.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.patient-form {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.patient-form input, .patient-form textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  outline: none;
  color: var(--text-dark);
}
.patient-form input:focus, .patient-form textarea:focus {
  border-color: var(--primary-color);
}
.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}
.price-row .price {
  color: var(--accent-orange);
}
.submit-booking-btn {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: var(--shadow-md);
}

/* Success Card */
.success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
}
.success-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ecfdf5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: 16px;
}
.success-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.success-card .success-sub {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}
.receipt-details {
  background-color: #fff;
  border-radius: 12px;
  width: 100%;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(0,0,0,0.02);
  margin-bottom: 24px;
  position: relative;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.receipt-row span {
  color: var(--text-muted);
}
.receipt-row strong {
  color: var(--text-dark);
}
.receipt-row .receipt-price {
  color: var(--accent-orange);
}

.success-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}
.success-actions button {
  flex: 1;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.success-actions button.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
}
.success-actions button.btn-outline {
  background-color: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}


/* --- 4. ORAL EDUCATION SCREEN --- */
.education-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.education-header .search-box {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 30px;
  padding: 8px 14px;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(59, 130, 246, 0.04);
}
.education-header .search-box input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
}
.edu-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
}
.edu-categories::-webkit-scrollbar {
  display: none;
}
.edu-cat {
  background-color: #fff;
  color: var(--text-muted);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.edu-cat.active {
  background-color: var(--primary-color);
  color: #fff;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-card {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 12px;
  padding: 10px;
  cursor: pointer;
}
.article-card img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
}
.article-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.article-card-info h3 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-info .summary {
  font-size: 11px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-light);
  margin-top: 4px;
}
.article-meta .cat-badge {
  background-color: var(--accent-blue-light);
  color: var(--primary-color);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}


/* --- 5. PROFILE SCREEN --- */
.e-health-card-container {
  margin-bottom: 14px;
}
.health-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
.card-logo i {
  color: #f97316;
}
.card-tag {
  font-size: 10px;
  background-color: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 20px;
}
.patient-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.patient-card-info h3 {
  font-size: 18px;
  font-weight: 700;
}
.patient-card-info p {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}
.card-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
}
.card-qrcode i {
  font-size: 24px;
}
.card-bar-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.barcode-lines {
  height: 24px;
  width: 80%;
  background: repeating-linear-gradient(90deg, #fff, #fff 2px, transparent 2px, transparent 5px);
  opacity: 0.8;
}
.card-bar-code span {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
}

.profile-stats {
  background-color: #fff;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-item:not(:last-child) {
  border-right: 1px solid var(--border-color);
}
.stat-item .num {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}
.stat-item .label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.menu-list-section {
  display: flex;
  flex-direction: column;
}
.menu-list-section .section-title {
  padding-left: 6px;
}
.menu-list {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f8fafc;
}
.menu-item:last-child {
  border-bottom: none;
}
.menu-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}
.menu-label i {
  font-size: 16px;
}
.font-blue { color: #3b82f6; }
.font-teal { color: #0d9488; }
.font-orange { color: #f97316; }
.font-indigo { color: #4338ca; }
.font-pink { color: #db2777; }

.menu-extra {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.badge {
  background-color: var(--accent-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}
.badge.hidden {
  display: none;
}

/* Margin helper */
.margin-top {
  margin-top: 14px;
}


/* --- MODALS & OVERLAYS --- */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: flex-end; /* Drawers slide up from bottom */
  animation: fadeInModal 0.25s ease-out;
}
.modal-overlay.hidden {
  display: none;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: var(--bg-color);
  width: 100%;
  max-height: 80%;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 25px rgba(0,0,0,0.15);
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  position: relative;
}
.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  position: absolute;
  left: 14px;
}
.modal-header-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.modal-body-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Triage customized style */
.modal-overlay .triage-dialog {
  max-height: 90%;
  border-radius: 20px;
  margin: 16px;
  width: calc(100% - 32px);
  align-self: center; /* Center-screen modal */
  animation: scaleInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scaleInModal {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.triage-intro {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-align: center;
}
.triage-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.triage-opt-btn {
  background-color: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.triage-opt-btn:active {
  background-color: #eff6ff;
  border-color: var(--primary-color);
}
.triage-dialog button.btn-outline {
  width: 100%;
  border: 1px solid var(--border-color);
  background-color: #fff;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

/* Article content display */
.edu-detail-content {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.edu-detail-content h2 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.edu-detail-meta {
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}
.edu-detail-meta .author {
  font-weight: 600;
  color: var(--text-muted);
}
.edu-detail-rich-body {
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
}
.edu-detail-rich-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 18px 0 8px 0;
}
.edu-detail-rich-body p {
  margin-bottom: 12px;
}
.edu-detail-rich-body ul {
  margin-left: 18px;
  margin-bottom: 12px;
}
.edu-detail-rich-body li {
  margin-bottom: 4px;
}

/* Clinic detailed info */
.clinic-info-detail h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 4px;
}
.clinic-info-detail .tagline {
  font-size: 11px;
  color: var(--accent-orange);
  font-weight: 600;
}
.clinic-info-detail hr {
  border: 0;
  height: 1px;
  background-color: var(--border-color);
  margin: 14px 0;
}
.info-block {
  margin-bottom: 14px;
}
.info-block label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.info-block label i {
  color: var(--primary-color);
}
.info-block p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.phone-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
}

/* My bookings reservation card item */
.reservation-receipt-item {
  background-color: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  border: 1px solid rgba(0,0,0,0.02);
}
.reservation-receipt-item .item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.reservation-receipt-item .item-header .num {
  font-size: 11px;
  color: var(--text-light);
}
.reservation-receipt-item .item-header .status-tag {
  font-size: 10px;
  color: #10b981;
  background-color: #ecfdf5;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.reservation-receipt-item .field-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}
.reservation-receipt-item .field-row span {
  color: var(--text-muted);
}
.reservation-receipt-item .field-row strong {
  color: var(--text-dark);
}
.no-bookings-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 10px;
  color: var(--text-light);
  gap: 8px;
}
.no-bookings-placeholder i {
  font-size: 48px;
}
.no-bookings-placeholder span {
  font-size: 12px;
}


/* --- BOTTOM TAB BAR NAVIGATION --- */
.bottom-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px 10px 10px; /* Padding bottom for virtual home indicator on iPhones */
  z-index: 100;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  gap: 2px;
  transition: all 0.2s;
  position: relative;
}
.tab-item i {
  font-size: 20px;
}
.tab-item span {
  font-size: 10px;
  font-weight: 500;
}

.tab-item.active {
  color: var(--primary-color);
}
.tab-item.active span {
  font-weight: 700;
}

/* Customized booking tab */
.tab-item:nth-child(3) {
  margin-top: -24px;
}
.tab-center-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s;
}
.tab-item:nth-child(3).active .tab-center-icon {
  transform: scale(1.08);
}
.tab-item .center-label {
  margin-top: 4px;
}
