/* ============================================
   Astha Physiotherapy Center - Green Theme CSS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --brand:       #16a34a;
  --brand-light: #22c55e;
  --brand-dark:  #15803d;
  --brand-50:    #f0fdf4;
  --brand-100:   #dcfce7;
  --brand-200:   #bbf7d0;
  --brand-600:   #16a34a;
  --dark:        #0f172a;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --radius:      1rem;
  --radius-sm:   0.6rem;
  --shadow:      0 4px 24px rgba(22,163,74,.10);
  --shadow-lg:   0 12px 48px rgba(22,163,74,.15);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, 'Segoe UI', sans-serif;
  background: #f8fdf9;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

/* ─── Notice Bar ─── */
.notice {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .02em;
}
.notice span {
  display: inline-block;
  animation: marquee 28s linear infinite;
  padding-left: 100%;
}
@keyframes marquee { to { transform: translateX(-100%) } }

/* ─── Navbar ─── */
.navbar {
  padding: 0.55rem 0;
  background: rgba(255,255,255,.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(22,163,74,.1);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.navbar-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--brand) !important;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.navbar-brand img.site-logo {
  object-fit: contain;
  height: 44px;
}
.nav-link {
  font-weight: 500;
  font-size: .93rem;
  color: var(--text) !important;
  padding: .45rem .85rem !important;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--brand) !important;
  background: var(--brand-50);
}

.glass {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(20px);
}

/* ─── Hero ─── */
.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 64px 0 72px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(22,163,74,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(34,197,94,.1) 0%, transparent 50%),
    linear-gradient(160deg, #f0fdf4 0%, #f8fafc 100%);
  margin-top: 0;
}
.hero h1 { font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.18; }
.hero-card {
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(22,163,74,.15);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  padding: 2rem;
}

/* ─── Stats ─── */
.stats {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: 20px;
  padding: 1.5rem;
}
.stats h2 { font-weight: 800; margin-bottom: 0; font-size: 2rem; }

/* ─── Cards ─── */
.card-premium {
  border: 0;
  border-radius: 24px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 8px 32px rgba(22,163,74,.09);
  backdrop-filter: blur(10px);
  transition: transform .25s, box-shadow .25s;
}
.card-premium:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(22,163,74,.15); }

.service-card {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 6px 28px rgba(15,23,42,.07);
  background: #fff;
  transition: transform .28s, box-shadow .28s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(22,163,74,.14); }

/* ─── Icon Box ─── */
.icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--brand-100);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 26px;
  transition: background .25s, color .25s;
}
.service-card:hover .icon { background: var(--brand); color: #fff; }

/* ─── Section Titles ─── */
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--dark);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 52px; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 99px;
  margin: .5rem auto 0;
}
.section-title.text-start::after { margin-left: 0; }

/* ─── Buttons ─── */
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: none;
  border-radius: 999px;
  padding: .7rem 1.6rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(22,163,74,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-dark), #166534);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(22,163,74,.45);
}
.btn-outline-primary {
  color: var(--brand);
  border-color: var(--brand);
  border-radius: 999px;
  padding: .7rem 1.6rem;
  font-weight: 600;
}
.btn-outline-primary:hover { background: var(--brand); color: #fff; }
.text-primary { color: var(--brand) !important; }
.bg-primary { background: var(--brand) !important; }

/* ─── Therapist Cards ─── */
.therapist-card img {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-200);
}
.therapist-card .avatar-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand);
  display: grid; place-items: center;
  font-size: 2.5rem;
  margin: 0 auto;
}

/* ─── Blog Cards ─── */
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

/* ─── Testimonial Cards ─── */
.testimonial-card .testi-avatar img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-200);
}
.testimonial-card .testi-avatar .avatar-sm {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand);
  display: grid; place-items: center;
  font-size: 1.4rem;
}
.stars { color: #f59e0b; font-size: 1rem; letter-spacing: .05em; }

/* ─── Gallery ─── */
.gallery-img {
  width: 100%; height: 220px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform .3s, box-shadow .3s;
}
.gallery-img:hover { transform: scale(1.03); box-shadow: 0 12px 36px rgba(22,163,74,.18); }

/* ─── Footer ─── */
.footer {
  background: linear-gradient(160deg, #0f2218 0%, #071810 100%);
  color: #c8e6c9;
}
.footer h4, .footer h5 { color: #fff; font-weight: 700; }
.footer a { color: #86efac; text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .border-top { border-color: rgba(255,255,255,.1) !important; }

/* ─── Admin Dashboard Sidebar ─── */
.dashboard-sidebar {
  min-height: 100vh;
  width: 260px;
  background: linear-gradient(180deg, #071810 0%, #0f2218 100%);
  position: sticky;
  top: 0;
  overflow-y: auto;
}
.dashboard-sidebar .sidebar-brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: 1.2rem;
  padding: 1.4rem 1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: .5rem;
}
.dashboard-sidebar .sidebar-brand i { color: var(--brand-light); font-size: 1.4rem; }
.dashboard-sidebar .nav-section {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: .8rem 1rem .3rem;
}
.dashboard-sidebar a {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: rgba(255,255,255,.75);
  padding: .62rem 1rem;
  text-decoration: none;
  border-radius: 10px;
  margin: .15rem .5rem;
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.dashboard-sidebar a i { width: 20px; text-align: center; font-size: .95rem; }
.dashboard-sidebar a:hover,
.dashboard-sidebar a.active {
  background: rgba(22,163,74,.25);
  color: #86efac;
}
.dashboard-sidebar a.logout-link {
  color: #fca5a5;
  margin-top: .5rem;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1rem;
  margin-top: 1rem;
  border-radius: 0;
}
.dashboard-sidebar a.logout-link:hover { background: rgba(239,68,68,.15); color: #f87171; }

/* ─── Admin Main Area ─── */
.admin-main {
  flex: 1;
  background: #f8fdf9;
  min-height: 100vh;
  padding: 2rem;
  overflow-x: hidden;
}
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -2rem -2rem 2rem;
}
.admin-topbar h1 { font-size: 1.4rem; font-weight: 700; margin: 0; color: var(--dark); }

/* ─── Admin Stat Cards ─── */
.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand);
  display: grid; place-items: center;
  font-size: 1.4rem;
}
.stat-card h3 { font-size: 1.9rem; font-weight: 800; margin: 0; color: var(--dark); }
.stat-card p { margin: 0; font-size: .82rem; color: var(--text-muted); font-weight: 500; }

/* ─── Admin Tables ─── */
.admin-table { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.admin-table table { margin: 0; }
.admin-table thead { background: var(--brand-50); }
.admin-table thead th { font-weight: 600; font-size: .85rem; color: var(--brand-dark); border: none; padding: .85rem 1rem; }
.admin-table tbody td { padding: .8rem 1rem; border-color: #f1f5f9; vertical-align: middle; font-size: .9rem; }
.admin-table tbody tr:hover { background: #fafff9; }

/* ─── Admin Forms ─── */
.admin-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.8rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  margin-bottom: 1.5rem;
}
.admin-form-card h5 { font-weight: 700; color: var(--dark); margin-bottom: 1.2rem; }
.form-control, .form-select {
  border-color: #e2e8f0;
  border-radius: 10px;
  padding: .6rem .9rem;
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}

/* ─── Badge ─── */
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-approved  { background: #dcfce7; color: #166534; }
.badge-rejected  { background: #fee2e2; color: #991b1b; }
.badge-completed { background: #e0f2fe; color: #075985; }
.badge-status {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
}

/* ─── Icon Library Picker ─── */
.icon-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: .5rem;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: .8rem;
  background: #fafffe;
}
.icon-library .ico-btn {
  width: 52px; height: 52px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-dark);
  display: grid; place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: .2s;
}
.icon-library .ico-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand-dark); }
.icon-library .ico-btn.selected { background: var(--brand); color: #fff; border-color: var(--brand-dark); }

/* ─── Logo Crop Preview ─── */
#logoCropPreview {
  max-width: 100%;
  border: 2px dashed var(--brand-200);
  border-radius: 12px;
  background: var(--brand-50);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#logoCropPreview img { max-width: 100%; max-height: 200px; object-fit: contain; }

/* ─── About Page ─── */
.about-hero {
  background: linear-gradient(135deg, var(--brand-50), #e8f5e9);
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--brand-100);
}
.value-card {
  border-left: 4px solid var(--brand);
  background: #fff;
  border-radius: 0 14px 14px 0;
  padding: 1.4rem;
  box-shadow: 0 2px 16px rgba(22,163,74,.07);
}
.team-stat {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
}
.team-stat h2 { font-size: 2.8rem; font-weight: 900; margin: 0; }

/* ─── Utilities ─── */
.rounded-xl { border-radius: 1.2rem !important; }
.fw-black { font-weight: 900; }
.text-muted { color: var(--text-muted) !important; }
.bg-brand-50 { background: var(--brand-50); }

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .55s ease both; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 48px 0 56px; }
  .dashboard-sidebar { width: 100%; position: relative; min-height: auto; }
  .admin-main { padding: 1rem; }
  .admin-topbar { margin: -1rem -1rem 1.5rem; padding: .8rem 1rem; }
  .section-title::after { margin-left: auto; }
}


/* Responsive Admin Panel */
.admin-menu-toggle{display:none;border:none;background:#ecfdf5;color:#15803d;width:42px;height:42px;border-radius:12px}
@media(max-width:991px){
.dashboard-sidebar{position:fixed;left:-280px;z-index:1050;transition:left .3s ease;background:#fff;width:260px;box-shadow:0 10px 40px rgba(0,0,0,.12)}
.dashboard-sidebar.show{left:0}
.dashboard-sidebar .sidebar-brand{color:#111827;border-color:#e5e7eb}
.dashboard-sidebar .nav-section{color:#6b7280}
.dashboard-sidebar a{color:#374151}
.dashboard-sidebar a:hover,.dashboard-sidebar a.active{background:#dcfce7;color:#166534}
.admin-main{padding:1rem}
.admin-topbar{margin:-1rem -1rem 1.5rem;padding:1rem}
.admin-menu-toggle{display:inline-flex;align-items:center;justify-content:center}
}


/* Admin Panel Modern Light Theme */
.dashboard-sidebar{
background:#ffffff !important;
border-right:1px solid #e5e7eb;
box-shadow:0 4px 24px rgba(0,0,0,.05);
}
.dashboard-sidebar .sidebar-brand{
color:#111827;
border-bottom:1px solid #e5e7eb;
font-weight:700;
}
.dashboard-sidebar .sidebar-brand i{
color:#16a34a;
font-size:1rem;
}
.dashboard-sidebar .nav-section{
font-size:.72rem;
text-transform:uppercase;
letter-spacing:.08em;
color:#4b5563;
}
.dashboard-sidebar a{
padding:.75rem 1rem;
border-radius:12px;
margin:.2rem .6rem;
font-size:.92rem;
color:#111827;
}
.dashboard-sidebar a i{
width:16px;
font-size:.82rem;
opacity:.8;
}
.admin-main{
background:#f8fafc;
min-height:100vh;
}
.admin-topbar{
background:#ffffff;
border-bottom:1px solid #e5e7eb;
}

/* Responsive admin tables */
@media(max-width:768px){
.admin-table{overflow-x:auto;border-radius:12px}
.admin-table table{min-width:760px}
.admin-table thead th,.admin-table tbody td{white-space:nowrap;font-size:.82rem;padding:.7rem}
.d-flex.gap-1{flex-wrap:wrap}
.form-select.form-select-sm{width:100% !important}
.btn.btn-sm{padding:.3rem .55rem}
}
