/* ============================================================
   Vijaya Physiotherapy Clinic — Premium Design System v2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@600;700;800&display=swap');

/* ---- DESIGN TOKENS ---- */
:root {
  --primary:       #1e3a8a;
  --primary-light: #2b6cb0;
  --primary-dark:  #172554;
  --accent:        #0d9488;
  --accent-light:  #2dd4bf;
  --success:       #10b981;
  --danger:        #ef4444;
  --warning:       #f59e0b;

  --bg:            #f8fafc;
  --surface:       #ffffff;
  --surface-2:     #f1f5f9;
  --text:          #0f172a;
  --text-muted:    #475569;
  --border:        #cbd5e1;
  --border-light:  #e2e8f0;

  --shadow-sm:   0 1px 3px rgba(15,23,42,0.03), 0 1px 2px rgba(15,23,42,0.02);
  --shadow:      0 4px 20px rgba(15,23,42,0.05), 0 2px 4px rgba(15,23,42,0.02);
  --shadow-md:   0 10px 30px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.03);
  --shadow-lg:   0 24px 64px rgba(15,23,42,0.10), 0 8px 16px rgba(15,23,42,0.04);
  --shadow-blue: 0 8px 24px rgba(43,108,176,0.15);

  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  18px;
  --radius-xl:  28px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  --navbar-h:   70px;
}

/* ---- BASE ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   NAVBAR
   ============================================================ */
.vp-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  transition: var(--transition);
}
.vp-navbar.scrolled {
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.98);
}

.vp-navbar-inner {
  display: flex;
  align-items: center;
  height: var(--navbar-h);
  gap: 1rem;
}

/* Brand */
.vp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.vp-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(30,136,229,0.35);
}
.vp-brand-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.vp-brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: -0.3px;
}
.vp-brand-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.3px;
  font-family: 'Poppins', sans-serif;
}

/* Nav Links */
.vp-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.vp-nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.vp-nav-link:hover {
  color: var(--primary);
  background: rgba(21,101,192,0.07);
}
.vp-nav-link.active {
  color: var(--primary);
  background: rgba(21,101,192,0.1);
  font-weight: 600;
}

/* Auth Buttons */
.vp-nav-auth {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 1.5rem;
  flex-shrink: 0;
}

.vp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border: none;
}
.vp-btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 4px 14px rgba(21,101,192,0.3);
}
.vp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21,101,192,0.4);
  color: #fff;
}
.vp-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.vp-btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.vp-btn-danger {
  background: rgba(198,40,40,0.08);
  color: var(--danger);
  border: 1.5px solid rgba(198,40,40,0.2);
}
.vp-btn-danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

/* Hamburger */
.vp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 8px;
  margin-left: auto;
}
.vp-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.vp-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.vp-hamburger.active span:nth-child(2) { opacity: 0; }
.vp-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.vp-hero {
  min-height: calc(100vh - var(--navbar-h));
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}
.vp-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.vp-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.vp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}
.vp-hero-badge::before { content: '✦'; color: var(--accent-light); }

.vp-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}
.vp-hero-title span { color: var(--accent-light); }

.vp-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.vp-hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.vp-hero-btn-primary {
  background: #fff;
  color: var(--primary);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.vp-hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  color: var(--primary-dark);
}
.vp-hero-btn-outline {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.vp-hero-btn-outline:hover {
  background: rgba(255,255,255,0.2);
  border-color: #fff;
  color: #fff;
  transform: translateY(-3px);
}

.vp-hero-stats {
  display: flex;
  gap: 2.5rem;
}
.vp-hero-stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.vp-hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

.vp-hero-img-wrap {
  position: relative;
}
.vp-hero-img {
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  animation: heroFloat 5s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotate(0.5deg); }
  50% { transform: translateY(-16px) rotate(-0.5deg); }
}

.vp-hero-img-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}
.vp-hero-img-badge-bottom {
  bottom: -20px;
  left: -20px;
}
.vp-hero-img-badge-top {
  top: -20px;
  right: -20px;
}
.vp-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.vp-section { padding: 5rem 0; }
.vp-section-alt { background: var(--surface); }

.vp-section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(30,136,229,0.08);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.875rem;
}
.vp-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.vp-section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.vp-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.vp-service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.vp-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.vp-service-card:hover::before { transform: scaleX(1); }
.vp-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30,136,229,0.15);
}

.vp-service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(21,101,192,0.08), rgba(0,172,193,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.vp-service-card:hover .vp-service-icon {
  background: linear-gradient(135deg, rgba(21,101,192,0.15), rgba(0,172,193,0.15));
  transform: scale(1.08);
}
.vp-service-card h4 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.vp-service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   FEATURE / SPLIT SECTIONS
   ============================================================ */
.vp-split { display: flex; align-items: center; gap: 4rem; }
.vp-split-img {
  flex: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.vp-split-content { flex: 1; }

.vp-check-list {
  list-style: none;
  margin: 1.25rem 0 2rem;
}
.vp-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.5rem 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}
.vp-check-list li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.vp-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.vp-testimonial {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.vp-testimonial::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-family: Georgia, serif;
  font-size: 4rem;
  color: rgba(21,101,192,0.08);
  line-height: 1;
}
.vp-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.vp-stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 0.875rem; }
.vp-testimonial p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.vp-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vp-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.vp-author-name { font-weight: 700; font-size: 0.9rem; }
.vp-author-role { font-size: 0.77rem; color: var(--text-muted); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.vp-cta {
  background: linear-gradient(135deg, #0a4f4d 0%, var(--accent) 100%);
  padding: 5rem 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.vp-cta::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.vp-cta h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.vp-cta p { opacity: 0.8; font-size: 1.05rem; margin-bottom: 2rem; }
.vp-cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.vp-page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  padding: 3.5rem 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.vp-page-hero::after {
  content: '';
  position: absolute;
  right: -4rem; top: -4rem;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.vp-page-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.vp-page-hero p { color: rgba(255,255,255,0.8); margin-top: 0.5rem; font-size: 1rem; }

/* ============================================================
   CARDS / SURFACES
   ============================================================ */
.vp-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.vp-card:hover { box-shadow: var(--shadow); }
.vp-card-body { padding: 1.75rem; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.vp-stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.vp-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.vp-stat-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.vp-stat-icon-blue { background: rgba(43,108,176,0.1); color: var(--primary-light); }
.vp-stat-icon-cyan { background: rgba(13,148,136,0.1); color: var(--accent); }
.vp-stat-icon-green { background: rgba(16,185,129,0.1); color: var(--success); }
.vp-stat-icon-orange { background: rgba(245,158,11,0.1); color: var(--warning); }

.vp-stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.vp-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

/* ============================================================
   PROFILE CARD (patient/admin)
   ============================================================ */
.vp-profile-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #0277bd);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: #fff;
  box-shadow: var(--shadow-blue);
  position: relative;
  overflow: hidden;
}
.vp-profile-card::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.vp-profile-avatar {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.vp-profile-name {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.vp-profile-meta {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-bottom: 0.75rem;
}
.vp-profile-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============================================================
   APPOINTMENT CARD
   ============================================================ */
.vp-appt-card {
  background: linear-gradient(135deg, #006064, #00838f, #00acc1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,172,193,0.3);
}
.vp-appt-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.5rem;
}
.vp-appt-date { font-size: 1.5rem; font-weight: 800; }
.vp-appt-time { font-size: 0.95rem; opacity: 0.8; margin-top: 0.2rem; }

/* ============================================================
   PAYMENT CARD
   ============================================================ */
.vp-payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.vp-payment-row:last-child { border-bottom: none; }
.vp-payment-label { font-size: 0.85rem; color: var(--text-muted); }
.vp-payment-value { font-weight: 700; font-size: 0.95rem; }

/* ============================================================
   BADGES
   ============================================================ */
.vp-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.vp-badge-success {
  background: rgba(46,125,50,0.1);
  color: var(--success);
  border: 1px solid rgba(46,125,50,0.2);
}
.vp-badge-danger {
  background: rgba(198,40,40,0.1);
  color: var(--danger);
  border: 1px solid rgba(198,40,40,0.2);
}
.vp-badge-warning {
  background: rgba(230,81,0,0.1);
  color: var(--warning);
  border: 1px solid rgba(230,81,0,0.2);
}
.vp-badge-muted {
  background: rgba(100,116,139,0.1);
  color: var(--text-muted);
  border: 1px solid rgba(100,116,139,0.2);
}
.vp-badge-info {
  background: rgba(43,108,176,0.1);
  color: var(--primary-light);
  border: 1px solid rgba(43,108,176,0.2);
}

/* ============================================================
   TABLES
   ============================================================ */
.vp-table { width: 100%; border-collapse: collapse; }
.vp-table thead th {
  background: var(--surface-2);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border-light);
}
.vp-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.vp-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.vp-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.vp-table tbody tr:hover { background: rgba(43,108,176,0.02); }
.vp-table tbody td {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--text);
  vertical-align: middle;
}

/* ============================================================
   FORMS
   ============================================================ */
.vp-form-group { margin-bottom: 1.5rem; }
.vp-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.vp-input {
  width: 100%;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: var(--transition);
  outline: none;
}
.vp-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3.5px rgba(43, 108, 176, 0.14);
}
.vp-input::placeholder { color: var(--text-muted); }
.vp-select {
  width: 100%;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: var(--transition);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.vp-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3.5px rgba(43, 108, 176, 0.14);
}
.vp-textarea {
  width: 100%;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: var(--transition);
  outline: none;
  resize: vertical;
  min-height: 110px;
}
.vp-textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3.5px rgba(43, 108, 176, 0.14);
}

.vp-form-section-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  margin-top: 1.75rem;
  margin-bottom: 1.25rem;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  line-height: 1.2;
}

/* ============================================================
   BUTTONS (standalone — not nav)
   ============================================================ */
.vp-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}
.vp-action-btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 6px 20px rgba(21,101,192,0.3);
}
.vp-action-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(21,101,192,0.4);
  color: #fff;
}
.vp-action-btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  border-radius: 8px;
}
.vp-action-btn-success {
  background: linear-gradient(135deg, #2e7d32, #388e3c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(46,125,50,0.3);
}
.vp-action-btn-success:hover { transform: translateY(-1px); color: #fff; }

.vp-action-btn-block { width: 100%; justify-content: center; }

/* ============================================================
   ALERTS
   ============================================================ */
.vp-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.vp-alert-success {
  background: rgba(46,125,50,0.08);
  border: 1px solid rgba(46,125,50,0.2);
  color: var(--success);
}
.vp-alert-danger {
  background: rgba(198,40,40,0.08);
  border: 1px solid rgba(198,40,40,0.2);
  color: var(--danger);
}
.vp-alert::before { font-size: 1rem; flex-shrink: 0; }
.vp-alert-success::before { content: '✓'; }
.vp-alert-danger::before { content: '!'; }

/* ============================================================
   ADMIN SIDEBAR
   ============================================================ */
.vp-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 240px;
  height: 100vh;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 70%, var(--primary-light) 100%);
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 900;
  box-shadow: 4px 0 24px rgba(15,23,42,0.08);
}
.vp-sidebar-brand {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vp-sidebar-brand-text {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
}
.vp-sidebar-brand-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.vp-sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
}
.vp-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0.875rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
}
.vp-sidebar-link:hover, .vp-sidebar-link.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.vp-sidebar-link svg { flex-shrink: 0; }
.vp-sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.vp-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0.875rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}
.vp-sidebar-logout:hover {
  background: rgba(239,68,68,0.15);
  color: #fee2e2;
}

.vp-admin-content {
  margin-left: 0;
  min-height: 100vh;
  padding: 6.5rem 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.vp-sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  align-items: center;
  justify-content: center;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.vp-auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}
.vp-auth-page::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.vp-auth-page::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(45,212,191,0.08);
}
.vp-auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(15,23,42,0.15);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}
.vp-auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.vp-auth-logo-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-blue);
}
.vp-auth-title { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.vp-auth-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }
.vp-input-group {
  position: relative;
}
.vp-input-group .vp-input { padding-right: 2.5rem; }
.vp-input-group-icon {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
}

/* ============================================================
   FULLCALENDAR OVERRIDES
   ============================================================ */
.fc .fc-toolbar-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}
.fc .fc-button {
  background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
  border-color: var(--primary) !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  padding: 0.35rem 0.75rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.fc .fc-button:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  border-color: var(--primary-dark) !important;
}
.fc .fc-button:focus { box-shadow: 0 0 0 2px rgba(21,101,192,0.25) !important; }
.fc-day-today { background: rgba(21,101,192,0.05) !important; }
.fc .fc-daygrid-event {
  border-radius: 6px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  padding: 2px 6px !important;
  cursor: pointer;
  border: none !important;
}
.fc .fc-day-grid-event { border: none !important; }
.fc .fc-col-header-cell { background: var(--surface-2); }
.fc .fc-col-header-cell-cushion {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.vp-footer {
  background: #0b1329;
  padding: 4rem 0 0;
}
.vp-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.vp-footer-heading {
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.3px;
}
.vp-footer-list { list-style: none; }
.vp-footer-list li { margin-bottom: 0.6rem; }
.vp-footer-list a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: var(--transition);
}
.vp-footer-list a:hover { color: #fff; padding-left: 4px; }
.vp-footer-contact { list-style: none; }
.vp-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}
.vp-footer-contact-icon { flex-shrink: 0; font-size: 0.9rem; }
.vp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up { animation: fadeInUp 0.6s ease both; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-content {
  border-radius: var(--radius-lg) !important;
  border: none !important;
  box-shadow: var(--shadow-lg) !important;
  overflow: hidden;
}
.modal-header {
  background: var(--surface);
  color: var(--text);
  border-bottom: 1.5px solid var(--border-light) !important;
  padding: 1.25rem 1.5rem;
}
.modal-header .btn-close { filter: none; }
.modal-title { font-weight: 700; font-size: 1.05rem; color: var(--primary); }
.modal-body { padding: 1.75rem; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.vp-search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 0.5rem 0.4rem 1.1rem;
  gap: 0.5rem;
  transition: var(--transition);
  width: 280px;
}
.vp-search:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(30,136,229,0.12);
}
.vp-search input {
  border: none;
  outline: none;
  font-size: 0.875rem;
  background: transparent;
  flex: 1;
  color: var(--text);
  font-family: inherit;
}
.vp-search input::placeholder { color: var(--text-muted); }
.vp-search button {
  background: var(--primary);
  border: none;
  border-radius: 50px;
  padding: 0.35rem 0.875rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.vp-search button:hover { background: var(--primary-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .vp-hamburger { display: flex; }
  .vp-brand-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    white-space: normal;
  }
  .vp-brand-name {
    font-size: 0.95rem;
    line-height: 1.1;
  }
  .vp-brand-sub {
    font-size: 0.7rem;
    line-height: 1.1;
    letter-spacing: 0;
  }
  .vp-nav-links {
    display: none;
    position: fixed;
    top: var(--navbar-h);
    left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.99);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 4rem 1.5rem 2rem;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    z-index: 999;
    align-items: stretch;
  }
  .vp-nav-links.open { display: flex; }
  .vp-nav-link {
    font-size: 1.05rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }
  .vp-nav-auth {
    display: flex;
    padding: 1.5rem 0 0;
    gap: 8px;
    flex-direction: column;
    margin-left: 0;
    border-top: 1px solid var(--border-light);
    margin-top: 1rem;
  }
  .vp-nav-auth .vp-btn { justify-content: center; width: 100%; padding: 0.85rem; font-size: 1rem; }
  .vp-admin-content { margin-left: 0; padding: 5.5rem 1rem 1.5rem; }
  .vp-sidebar { display: none !important; }
  .vp-sidebar-toggle { display: none !important; }
  .vp-sidebar.open { display: none !important; }
  .vp-footer-grid { grid-template-columns: 1fr 1fr; }
  .vp-split { flex-direction: column; }
  .vp-service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .vp-hero { padding: 3rem 0 2rem; }
  .vp-hero-stats { gap: 1.5rem; }
  .vp-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .vp-footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .vp-search { width: 100%; }
  .vp-service-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-primary-vp { color: var(--primary); }
.text-muted-vp   { color: var(--text-muted); }
.text-success-vp { color: var(--success); }
.text-danger-vp  { color: var(--danger); }
.text-warning-vp { color: #f59e0b; }
.bg-surface      { background: var(--surface); }
.fw-700          { font-weight: 700; }
.fw-800          { font-weight: 800; }
.gap-section     { margin-bottom: 1.5rem; }
.divider         { height: 1px; background: var(--border); margin: 1.5rem 0; }
