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

:root {
  --bg-dark: #070913;
  --bg-card: rgba(13, 17, 39, 0.65);
  --bg-card-hover: rgba(22, 28, 59, 0.8);
  --primary: #6366f1; /* Indigo - Trust, Professionalism (Nursing) */
  --primary-glow: rgba(99, 102, 241, 0.35);
  --secondary: #ff6b8b; /* Coral Pink - Warmth, Love (Babysitting) */
  --secondary-glow: rgba(255, 107, 139, 0.35);
  --cyan: #0ea5e9; /* Sky Blue - Hygiene, Healthcare */
  --cyan-glow: rgba(14, 165, 233, 0.35);
  --success: #10b981; /* Emerald Green - Earnings, Verified */
  --success-glow: rgba(16, 185, 129, 0.25);
  --warning: #f59e0b; /* Amber - Pending, Attention */
  --danger: #ef4444; /* Red - Urgent, Cancelled */
  
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --glass: rgba(255, 255, 255, 0.03);
  --glass-blur: blur(16px);
  --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-inset: inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-dark);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background animated glow spots */
.glow-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
  animation: float-glow 15s infinite alternate ease-in-out;
}
.glow-spot-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-glow);
  top: -100px;
  right: -50px;
}
.glow-spot-2 {
  width: 450px;
  height: 450px;
  background: var(--secondary-glow);
  bottom: 10%;
  left: -150px;
  animation-delay: -5s;
}
.glow-spot-3 {
  width: 350px;
  height: 350px;
  background: var(--cyan-glow);
  top: 40%;
  right: 15%;
  animation-delay: -10s;
}

@keyframes float-glow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-30px, -50px) scale(0.9); }
}

/* Glassmorphism Container Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
  border-radius: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}
.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(7, 9, 19, 0.65);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
header.scrolled {
  padding: 0.9rem 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background: rgba(7, 9, 19, 0.85);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-text span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding: 0.25rem 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  outline: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary));
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
  background: linear-gradient(135deg, #7275f3, var(--primary));
}
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px var(--secondary-glow);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 139, 0.6);
  background: linear-gradient(135deg, #ff849d, var(--secondary));
}
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Sections & Layout */
.section {
  padding: 8rem 2rem 5rem;
  max-width: 1300px;
  margin: 0 auto;
  min-height: 100vh;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.section-title span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3.5rem;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  padding: 10rem 2rem 6rem;
}
.hero-content {
  display: flex;
  flex-direction: column;
}
.badge-pune {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.badge-pune svg {
  color: var(--primary);
}
.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}
.hero-title span.blue {
  background: linear-gradient(90deg, var(--cyan), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title span.pink {
  background: linear-gradient(90deg, var(--secondary), #ff8ea5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.hero-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, white, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Card Mockup in Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card-container {
  position: relative;
  width: 100%;
  height: 480px;
}
.hero-card {
  position: absolute;
  width: 320px;
  padding: 1.5rem;
  border-radius: 24px;
}
.card-main {
  top: 20px;
  left: 0;
  z-index: 2;
  transform: rotate(-3deg);
}
.card-sec {
  bottom: 20px;
  right: 0;
  z-index: 1;
  transform: rotate(5deg);
  border-color: var(--secondary-glow);
}
.card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  margin-bottom: 1rem;
  overflow: hidden;
}
.card-sec .card-avatar {
  border-color: var(--secondary);
}
.card-name {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.card-tag {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.card-details {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.card-details span {
  color: var(--text-muted);
}
.card-details strong {
  color: var(--text-main);
}
.badge-floating {
  position: absolute;
  top: -15px; right: -15px;
  background: var(--success);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

/* Caregivers Catalog */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.filter-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.filter-select {
  background: rgba(13, 17, 39, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
}
.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}
.search-input {
  background: rgba(13, 17, 39, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  width: 250px;
  outline: none;
  transition: var(--transition);
  font-weight: 500;
}
.search-input:focus {
  border-color: var(--primary);
  width: 300px;
}
.category-tab {
  display: flex;
  background: rgba(255,255,255,0.03);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}
.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 10px var(--primary-glow);
}
.tab-btn.active.tab-secondary {
  background: var(--secondary);
  box-shadow: 0 4px 10px var(--secondary-glow);
}

.caregivers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.caregiver-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.caregiver-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
}
.caregiver-header {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: center;
}
.caregiver-avatar {
  width: 75px;
  height: 75px;
  border-radius: 20px;
  background: #1a1c2e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
}
.caregiver-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.caregiver-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.caregiver-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 0.5rem;
}
.badge-nurse {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}
.badge-sitter {
  background: rgba(255, 107, 139, 0.15);
  color: #fecdd3;
}
.rating-glow {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.9rem;
}
.rating-glow span {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8rem;
}
.caregiver-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.caregiver-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.detail-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
}
.detail-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}
.caregiver-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.price-block {
  display: flex;
  flex-direction: column;
}
.price-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.price-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
}
.price-amount span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7, 9, 19, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
}
.modal {
  width: 100%;
  max-width: 580px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  border-radius: 24px;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}
.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
}
.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover {
  color: var(--text-main);
}
.modal-body {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-input, .form-textarea {
  width: 100%;
  background: rgba(13, 17, 39, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  padding: 0.85rem 1rem;
  outline: none;
  font-weight: 500;
  transition: var(--transition);
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.booking-summary-box {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 1.25rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.summary-row:last-child {
  margin-bottom: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
}
.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: rgba(255,255,255,0.02);
}

/* Success Modal Details */
.success-anim {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

/* Dashboards Styling */
.dashboard-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  padding-top: 80px;
}
.sidebar {
  border-right: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  background: rgba(7, 9, 19, 0.4);
}
.profile-selection-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  transition: var(--transition);
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}
.sidebar-link.active {
  background: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}
.dashboard-content {
  padding: 2.5rem;
  overflow-y: auto;
}
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.content-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
}
.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--primary);
}
.stat-card.glow-primary .stat-icon { color: var(--primary); border-color: rgba(99, 102, 241, 0.3); background: rgba(99, 102, 241, 0.1); }
.stat-card.glow-secondary .stat-icon { color: var(--secondary); border-color: rgba(255, 107, 139, 0.3); background: rgba(255, 107, 139, 0.1); }
.stat-card.glow-cyan .stat-icon { color: var(--cyan); border-color: rgba(14, 165, 233, 0.3); background: rgba(14, 165, 233, 0.1); }
.stat-card.glow-success .stat-icon { color: var(--success); border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.1); }

/* Booking Table / List */
.table-panel {
  padding: 1.5rem;
}
.table-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.table-wrapper {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  padding: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
}
tr:last-child td {
  border-bottom: none;
}
.client-info-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.client-name {
  font-weight: 700;
  color: white;
}
.client-locality {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.badge-status {
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
}
.status-pending { background: rgba(245, 158, 11, 0.15); color: #fecdd3; border: 1px solid rgba(245, 158, 11, 0.3); color: var(--warning); }
.status-confirmed { background: rgba(14, 165, 233, 0.15); color: #bae6fd; border: 1px solid rgba(14, 165, 233, 0.3); color: var(--cyan); }
.status-completed { background: rgba(16, 185, 129, 0.15); color: #a7f3d0; border: 1px solid rgba(16, 185, 129, 0.3); color: var(--success); }
.status-cancelled { background: rgba(239, 68, 68, 0.15); color: #fecaca; border: 1px solid rgba(239, 68, 68, 0.3); color: var(--danger); }

.table-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-sm {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}
.btn-sm-success { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.btn-sm-success:hover { background: var(--success); color: white; }
.btn-sm-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.btn-sm-danger:hover { background: var(--danger); color: white; }

/* SVG / Custom visual representation for charts */
.chart-container {
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.5rem 1rem 0;
  border-bottom: 2px solid var(--border);
  gap: 1rem;
}
.chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar {
  width: 100%;
  max-width: 40px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--primary), rgba(99, 102, 241, 0.1));
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
  transition: height 1s ease-in-out;
  position: relative;
}
.chart-bar-value {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  opacity: 0;
  transition: var(--transition);
}
.chart-bar:hover .chart-bar-value {
  opacity: 1;
}
.chart-bar.sitter {
  background: linear-gradient(180deg, var(--secondary), rgba(255, 107, 139, 0.1));
  box-shadow: 0 0 15px rgba(255, 107, 139, 0.3);
}
.chart-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 0.75rem;
}

/* Caregivers Management in Admin */
.admin-caregiver-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.admin-caregiver-item:last-child {
  border-bottom: none;
}
.ac-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ac-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-active-dot { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-inactive-dot { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

/* Switch Toggle Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.1);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid var(--border);
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--success);
}
input:focus + .slider {
  box-shadow: 0 0 8px var(--success-glow);
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* Local Info Badge Panel */
.local-pune-highlight {
  display: flex;
  gap: 1.5rem;
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid rgba(14, 165, 233, 0.15);
  padding: 1.5rem;
  border-radius: 20px;
  margin-top: 3rem;
  align-items: center;
}
.local-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.75rem;
}
.local-text-box h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: white;
}
.local-text-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer style */
footer.global-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  background: rgba(7, 9, 19, 0.9);
}
footer.global-footer strong {
  color: var(--text-muted);
}

/* Onboarding Wizard Styles */
.onboard-container {
  max-width: 680px;
  margin: 8rem auto 4rem;
  padding: 2.5rem;
}
.progress-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 3rem;
}
.progress-stepper::before {
  content: '';
  position: absolute;
  top: 20px; left: 0; right: 0;
  height: 2px;
  background: var(--border);
  z-index: 1;
}
.progress-bar-fill {
  position: absolute;
  top: 20px; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 1;
  transition: width 0.4s ease;
  width: 0%;
}
.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: var(--transition);
}
.step-node.active .step-circle {
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 15px var(--primary-glow);
  background: var(--primary);
}
.step-node.completed .step-circle {
  border-color: var(--success);
  color: white;
  box-shadow: 0 0 15px var(--success-glow);
  background: var(--success);
}
.step-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.step-node.active .step-label {
  color: white;
}
.step-node.completed .step-label {
  color: var(--success);
}

.wizard-panel {
  display: none;
}
.wizard-panel.active {
  display: block;
  animation: slide-up-fade 0.4s ease;
}

@keyframes slide-up-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Payment Layout */
.payment-box {
  background: rgba(13, 17, 39, 0.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  margin-top: 1.5rem;
}
.payment-header-checkout {
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.payment-body-checkout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 350px;
}
@media (max-width: 768px) {
  .payment-body-checkout {
    grid-template-columns: 1fr;
  }
}
.payment-bill-details {
  padding: 2rem;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}
.payment-methods-list {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.payment-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: white;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  text-align: left;
}
.payment-option-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.payment-option-btn.selected {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}
.payment-icon-brand {
  font-size: 1.3rem;
  margin-right: 0.75rem;
}
.upi-form-panel {
  display: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 0.5rem;
  animation: slide-up-fade 0.3s ease;
}
.upi-form-panel.active {
  display: block;
}

/* Spinner Loader */
.pay-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}
.spinner-loader {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 2rem;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Mobile Bottom Tab Bar */
.mobile-nav-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 65px;
  background: rgba(7, 9, 19, 0.9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid var(--border);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  gap: 0.25rem;
  transition: var(--transition);
}
.mobile-nav-item.active {
  color: var(--primary);
}
.mobile-nav-icon {
  font-size: 1.25rem;
}

/* Responsive Queries & Fixes */
@media(max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-top: 8rem;
    text-align: center;
  }
  .badge-pune, .hero-actions, .hero-stats {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-card-container {
    height: 380px;
    max-width: 500px;
    margin: 0 auto;
  }
  .hero-card {
    width: 250px;
  }
  .dashboard-container {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .sidebar-menu {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
  }
}

@media(max-width: 768px) {
  body {
    padding-bottom: 80px; /* Offset for bottom mobile tab navigation */
  }
  header {
    padding: 0.9rem 1.25rem;
  }
  header.scrolled {
    padding: 0.8rem 1.25rem;
  }
  header nav {
    display: none; /* Relocated to bottom navigation on mobile */
  }
  .nav-buttons .btn-outline {
    display: none; /* Hide non-essential button */
  }
  .nav-buttons {
    gap: 0.5rem;
  }
  .nav-buttons .btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 8px;
  }
  .mobile-nav-bar {
    display: flex;
  }
  .hero-title {
    font-size: 2.4rem;
    line-height: 1.2;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 0.75rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-stats {
    gap: 1.5rem;
    justify-content: center;
  }
  .hero-card-container {
    height: 320px;
  }
  .hero-card {
    width: 220px;
  }
  .card-main {
    top: 10px;
    left: 20px;
  }
  .card-sec {
    bottom: 10px;
    right: 20px;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
  }
  .filter-groups {
    flex-direction: column;
    align-items: stretch;
  }
  .category-tab {
    justify-content: space-between;
  }
  .tab-btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.75rem;
    text-align: center;
  }
  .filter-select {
    width: 100%;
  }
  .search-input {
    width: 100%;
  }
  .search-input:focus {
    width: 100%;
  }
  .caregivers-grid {
    grid-template-columns: 1fr; /* single column caregiver catalog on mobile devices */
    gap: 1.5rem;
  }
  .caregiver-card {
    padding: 1.25rem;
  }
  .caregiver-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }
  .caregiver-name {
    font-size: 1.1rem;
  }
  .caregiver-details {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .sidebar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .sidebar-menu::-webkit-scrollbar {
    display: none;
  }
  .sidebar-link {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .dashboard-content {
    padding: 1.25rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stat-card {
    padding: 1.25rem;
  }
  .stat-num {
    font-size: 1.6rem;
  }
  .table-panel {
    padding: 1rem;
  }
  table {
    min-width: 650px; /* Forces tables to be scrollable horizontally on mobile, preserving layout */
  }
  .table-wrapper {
    border-radius: 10px;
    border: 1px solid var(--border);
  }
  .onboard-container {
    padding: 1.25rem;
    margin-top: 6rem;
  }
  .progress-stepper {
    margin-bottom: 2rem;
  }
  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  .step-label {
    font-size: 0.65rem;
  }
}

@media(max-width: 480px) {
  .hero-card-container {
    height: 290px;
  }
  .hero-card {
    width: 100%;
    max-width: 270px;
    position: relative !important;
    transform: none !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    margin: 0 auto;
  }
  .card-sec {
    display: none; /* Hide second rotating overlapping card on extremely narrow viewports */
  }
  .local-pune-highlight {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }
}

