/* ============================================================
   Blossoms Consultant Clinic - Main Stylesheet
   assets/css/style.css
   ============================================================ */

/* ---- Google Font import (already in <head> via link tag) ---- */

:root {
  --primary:       #0d6a8c;
  --primary-dark:  #0a4f6a;
  --primary-light: #e8f5f9;
  --accent:        #14b8a6;
  --accent-light:  #e6faf8;
  --pink:          #ec4899;
  --pink-light:    #fce7f3;
  --success:       #22c55e;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --dark:          #111827;
  --gray-100:      #f8fafc;
  --gray-200:      #e5e7eb;
  --gray-400:      #9ca3af;
  --gray-600:      #6b7280;
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --shadow-md:     0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.14);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --transition:    .25s ease;
}

/* ============================================================
   BASE
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: var(--font-display); }

.fw-500  { font-weight: 500; }
.fw-600  { font-weight: 600; }
.fw-700  { font-weight: 700; }
.text-accent { color: var(--accent) !important; }
.text-pink   { color: var(--pink) !important; }
.py-6 { padding-top: 80px; padding-bottom: 80px; }

/* ============================================================
   NAVBAR
   ============================================================ */

#mainNav {
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 16px 0;
}

#mainNav.scrolled {
  background: var(--dark) !important;
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: #fff;
}

.brand-text sup {
  font-size: 10px; font-family: var(--font-body);
  font-weight: 400; letter-spacing: 1px;
  opacity: .75; text-transform: uppercase;
  vertical-align: top; margin-top: 4px;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn-accent:hover {
  background: #0f9d8c;
  border-color: #0f9d8c;
  color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(150deg, #0a2f3e 0%, #0d6a8c 50%, #14b8a6 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(20,184,166,.15) 0%, transparent 60%),
              url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.15; }
.hero-desc  { font-size: 1.05rem; opacity: .88; }
.text-white-75 { color: rgba(255,255,255,.78) !important; }
.hero-badge {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
}

.stat-card {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  backdrop-filter: blur(4px);
}
.stat-num   { font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: .75rem; opacity: .75; color: #fff; }

/* Floating card in hero */
.hero-card-wrap { position: relative; }
.hero-float-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 320px;
  animation: floatUp 3s ease-in-out infinite alternate;
}
@keyframes floatUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}
.float-avatar { flex-shrink: 0; }

/* Hero wave */
.hero-wave {
  position: absolute; bottom: 0; left: 0; width: 100%;
  line-height: 0;
}
.hero-wave svg { display: block; }

/* ============================================================
   SECTION LABELS & TITLES
   ============================================================ */

.section-label {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700; line-height: 1.25;
  color: var(--dark); margin-bottom: 16px;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-img-bg {
  position: absolute; top: -20px; left: -20px;
  width: 280px; height: 280px;
  background: var(--accent-light);
  border-radius: 50%; z-index: 0;
}
.about-img-wrap { min-height: 380px; }
.about-badge-wrap {
  position: absolute; bottom: 20px; right: -20px; z-index: 2;
}
.about-badge {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
}
.about-img-placeholder {
  position: relative; z-index: 1;
}
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent)) !important;
}

/* ============================================================
   SERVICES
   ============================================================ */

.service-card { transition: transform var(--transition), box-shadow var(--transition); }
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg) !important;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.step-wrap { position: relative; }
.step-number {
  font-family: var(--font-display);
  font-size: 4rem; font-weight: 700;
  color: var(--gray-200); line-height: 1;
  margin-bottom: -12px;
}
.step-icon { transition: transform var(--transition); }
.step-wrap:hover .step-icon { transform: scale(1.1); }

/* ============================================================
   DOCTORS
   ============================================================ */

.doctor-card { transition: transform var(--transition), box-shadow var(--transition); }
.doctor-avatar img { border: 3px solid var(--primary-light); }

/* ============================================================
   ANC SECTION
   ============================================================ */

.anc-step { transition: background var(--transition); }
.anc-step:hover { background: rgba(255,255,255,.18) !important; }

/* ============================================================
   PRICING
   ============================================================ */

.pricing-card {
  transition: transform var(--transition), box-shadow var(--transition);
  background: #fff;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg) !important; }
.pricing-popular {
  border: 2px solid var(--primary) !important;
  box-shadow: var(--shadow-md);
}
.price-currency { font-size: 1.2rem; font-weight: 600; color: var(--primary); vertical-align: top; margin-top: 6px; display: inline-block; }
.price-amount   { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--dark); line-height: 1; }
.price-period   { font-size: .9rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonial-card { transition: transform var(--transition); }
.testimonial-card:hover { transform: translateY(-4px); }

/* ============================================================
   CONTACT
   ============================================================ */

.contact-form-card { border: 1px solid var(--gray-200); }
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--gray-200);
  padding: .65rem 1rem;
  font-size: .9rem;
  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(13,106,140,.12);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer-links li { margin-bottom: 8px; }
.footer-links a  { transition: color var(--transition); }
.footer-links a:hover { color: var(--accent) !important; }
.social-icon { transition: color var(--transition); }
.social-icon:hover { color: var(--accent) !important; }

/* ============================================================
   BACK TO TOP
   ============================================================ */

#backToTop { transition: opacity var(--transition); }

/* ============================================================
   DASHBOARD LAYOUT (Patient / Doctor / Admin)
   ============================================================ */

.dash-wrapper {
  display: flex; min-height: 100vh;
  background: var(--gray-100);
}

/* Sidebar */
.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--dark);
  position: fixed; top: 0; left: 0;
  height: 100vh; overflow-y: auto;
  transition: transform var(--transition);
  z-index: 1040;
}
.sidebar-brand {
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 10px;
}
.sidebar-brand h5 {
  color: var(--accent); font-size: 1rem; margin: 0; font-weight: 700;
}
.sidebar-brand small { color: rgba(255,255,255,.5); font-size: .72rem; }

.sidebar-nav { padding: 0 12px; }
.nav-section-label {
  font-size: .65rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 16px 8px 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: rgba(255,255,255,.65);
  text-decoration: none; font-size: .88rem;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.sidebar-link i { font-size: 1.1rem; flex-shrink: 0; }
.sidebar-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-link.active { background: var(--primary); color: #fff; font-weight: 500; }
.sidebar-link .badge { margin-left: auto; }

/* Sidebar toggle for mobile */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 1039;
}
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main-content { margin-left: 0 !important; }
}

/* Main content */
.main-content {
  margin-left: 260px;
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}

/* Top Bar */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 100;
}
.topbar-title { font-weight: 600; font-size: 1rem; }
.topbar .btn-link { color: var(--gray-600); }

/* Page content */
.page-content { padding: 28px 24px; flex: 1; }

/* Stat cards */
.stat-widget {
  background: #fff; border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.stat-widget:hover { box-shadow: var(--shadow-md); }
.stat-widget-icon {
  width: 52px; height: 52px;
  border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.stat-widget-val  { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.stat-widget-label{ font-size: .8rem; color: var(--gray-600); margin-top: 4px; }

/* Data cards */
.data-card {
  background: #fff; border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.data-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
}
.data-card-header h6 { font-weight: 700; margin: 0; font-size: .95rem; }
.data-card-body { padding: 0; }

/* Table styles */
.table-blossoms { font-size: .87rem; margin: 0; }
.table-blossoms thead th {
  background: var(--gray-100); font-weight: 600;
  font-size: .78rem; text-transform: uppercase;
  letter-spacing: .5px; border-bottom: none;
  padding: 12px 16px; white-space: nowrap;
}
.table-blossoms tbody td { padding: 14px 16px; vertical-align: middle; }
.table-blossoms tbody tr:hover { background: var(--gray-100); }

/* Consultation type badges */
.badge-video  { background: #ede9fe; color: #7c3aed; }
.badge-audio  { background: #dcfce7; color: #16a34a; }

/* Forms in dashboard */
.card-form { background:#fff; border-radius:var(--radius-md); border:1px solid var(--gray-200); padding:24px; box-shadow:var(--shadow-sm); }

/* ============================================================
   CONSULTATION ROOM
   ============================================================ */

.consult-room-wrap {
  background: #0f172a; min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: var(--font-body);
}
.consult-topbar {
  background: rgba(255,255,255,.07);
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.consult-video-area {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
#jitsiContainer { width: 100%; height: calc(100vh - 130px); border-radius: var(--radius-md); overflow: hidden; }

.consult-controls {
  background: rgba(255,255,255,.07);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.ctrl-btn {
  width: 52px; height: 52px;
  border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer;
  transition: all var(--transition);
}
.ctrl-btn:hover { transform: scale(1.08); }
.ctrl-btn-danger { background: var(--danger); color: #fff; }
.ctrl-btn-light  { background: rgba(255,255,255,.15); color: #fff; }
.ctrl-btn-light.active { background: var(--primary); }

/* Audio call overlay */
.audio-call-ui {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  color: #fff;
}
.audio-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 700;
  box-shadow: 0 0 0 12px rgba(20,184,166,.15), 0 0 0 24px rgba(20,184,166,.08);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(20,184,166,.3), 0 0 0 0 rgba(20,184,166,.15); }
  100% { box-shadow: 0 0 0 20px rgba(20,184,166,0), 0 0 0 40px rgba(20,184,166,0); }
}
.call-timer { font-size: 1.4rem; font-weight: 600; letter-spacing: 2px; }

/* ============================================================
   CLERKING FORM
   ============================================================ */

.clerking-section-title {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--primary); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--primary-light);
}
.clerking-field { border-radius: var(--radius-sm); }

/* ============================================================
   UTILITIES
   ============================================================ */

.border-dashed { border-style: dashed !important; }
.cursor-pointer { cursor: pointer; }
.opacity-85 { opacity: .85; }
.opacity-75 { opacity: .75; }
.opacity-80 { opacity: .80; }
.z-1 { z-index: 1; }

.avatar-sm {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover;
}
.avatar-md {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover;
}
.avatar-lg {
  width: 90px; height: 90px; border-radius: 50%;
  object-fit: cover;
}

.bg-accent-light { background: var(--accent-light) !important; }
.bg-pink-light   { background: var(--pink-light) !important; }

/* Loading spinner */
.spinner-blossoms {
  width: 40px; height: 40px; border: 3px solid var(--primary-light);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Page preloader */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff; display: flex;
  align-items: center; justify-content: center;
  transition: opacity .4s;
}

/* Notification bell dot */
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); position: absolute; top: 4px; right: 4px;
}

/* Alert custom */
.alert-blossoms {
  border-radius: var(--radius-md); border: none;
  font-size: .9rem;
}

/* ============================================================
   DARK MODE SUPPORT
   ============================================================ */

@media (prefers-color-scheme: dark) {
  .dash-wrapper { background: #1a1f2e; }
  .data-card, .stat-widget, .card-form, .topbar {
    background: #242b3d;
    border-color: rgba(255,255,255,.08);
  }
  .table-blossoms thead th { background: #1a1f2e; color: rgba(255,255,255,.6); }
  .table-blossoms tbody tr:hover { background: rgba(255,255,255,.04); }
  .data-card-header { border-color: rgba(255,255,255,.08); }
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */

@media (max-width: 768px) {
  .py-6 { padding-top: 56px; padding-bottom: 56px; }
  .hero-float-card { width: 100%; }
  .page-content { padding: 16px; }
  .stat-widget-val { font-size: 1.4rem; }
  .topbar { padding: 10px 16px; }
}
