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

:root {
  --primary: #5B6EE8;
  --primary-dark: #4455D4;
  --primary-light: #EEF0FD;
  --secondary: #10B981;
  --secondary-light: #D1FAE5;
  --accent: #8B5CF6;
  --accent-light: #EDE9FE;
  --warning: #F59E0B;
  --danger: #EF4444;
  --dark: #0F172A;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-800: #1E293B;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
}

/* ── HERO GRADIENT ── */
.hero-gradient {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 40%, #0EA5E9 100%);
  position: relative;
  overflow: hidden;
}
.hero-gradient::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -200px; right: -200px;
}
.hero-gradient::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -150px; left: -100px;
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  from { background-position: -200px 0; }
  to   { background-position: calc(200px + 100%) 0; }
}

.anim-fade-up   { animation: fadeInUp 0.6s ease forwards; }
.anim-fade-in   { animation: fadeIn 0.4s ease forwards; }
.anim-float     { animation: float 4s ease-in-out infinite; }
.anim-slide-right { animation: slideInRight 0.5s ease forwards; }
.anim-scale-in  { animation: scaleIn 0.3s ease forwards; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 0 2rem;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.navbar-brand {
  font-size: 1.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  text-decoration: none; color: var(--gray-600); font-weight: 500;
  font-size: 0.9rem; transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.6rem 1.4rem; border-radius: 10px;
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  text-decoration: none; transition: all 0.25s; border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark); border-color: var(--primary-dark);
  transform: translateY(-1px); box-shadow: 0 8px 20px rgba(91,110,232,0.35);
}
.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-white {
  background: #fff; color: var(--primary);
  border-color: #fff; font-weight: 700;
}
.btn-white:hover {
  background: #f0f0ff; transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; border-radius: 8px; }
.btn-green { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-green:hover {
  background: #059669; border-color: #059669;
  transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16,185,129,0.35);
}

/* ── CARDS ── */
.card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.10);
  border-color: transparent;
}
.card-counselor { overflow: hidden; }

/* ── STATS BADGE ── */
.stat-card {
  background: linear-gradient(135deg, var(--primary-light), #fff);
  border-radius: 16px; padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(91,110,232,0.15);
}

/* ── TAG BADGE ── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
}
.tag-blue    { background: #DBEAFE; color: #1D4ED8; }
.tag-green   { background: #D1FAE5; color: #065F46; }
.tag-purple  { background: #EDE9FE; color: #5B21B6; }
.tag-orange  { background: #FEF3C7; color: #92400E; }
.tag-pink    { background: #FCE7F3; color: #9D174D; }
.tag-red     { background: #FEE2E2; color: #B91C1C; }
.tag-teal    { background: #CCFBF1; color: #0F766E; }
.tag-gray    { background: #F1F5F9; color: #475569; }

/* ── STATUS BADGES ── */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-confirmed  { background: #D1FAE5; color: #065F46; }
.status-pending    { background: #FEF3C7; color: #92400E; }
.status-cancelled  { background: #FEE2E2; color: #B91C1C; }
.status-completed  { background: #DBEAFE; color: #1D4ED8; }

/* ── MATCH SCORE ── */
.match-score {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.8rem;
  background: conic-gradient(var(--secondary) calc(var(--pct) * 1%), #e2e8f0 0);
  position: relative;
}
.match-score::before {
  content: attr(data-score) '%';
  position: absolute; inset: 5px;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--dark);
}

/* ── WIZARD ── */
.wizard-steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 2.5rem;
}
.wizard-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; position: relative;
}
.wizard-step:not(:last-child)::after {
  content: ''; position: absolute;
  top: 18px; left: 60%; width: 80%; height: 2px;
  background: var(--gray-200); z-index: 0;
}
.wizard-step.completed:not(:last-child)::after { background: var(--secondary); }
.step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; z-index: 1;
  border: 2px solid var(--gray-200);
  background: #fff; color: var(--gray-400);
  transition: all 0.3s;
}
.wizard-step.active .step-circle {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91,110,232,0.2);
}
.wizard-step.completed .step-circle {
  background: var(--secondary); color: #fff; border-color: var(--secondary);
}
.step-label {
  font-size: 0.72rem; font-weight: 600; margin-top: 6px;
  color: var(--gray-400); text-align: center;
}
.wizard-step.active .step-label { color: var(--primary); }
.wizard-step.completed .step-label { color: var(--secondary); }

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

/* ── FORM ── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.875rem; font-weight: 600;
  margin-bottom: 0.4rem; color: var(--gray-800);
}
.form-control {
  width: 100%; padding: 0.65rem 1rem; border-radius: 10px;
  border: 1.5px solid var(--gray-200); font-size: 0.9rem;
  font-family: inherit; transition: all 0.2s;
  background: #fff; color: var(--dark);
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,110,232,0.12);
}
.form-control:hover:not(:focus) { border-color: var(--gray-400); }

textarea.form-control { resize: vertical; min-height: 100px; }

.input-group {
  display: flex; border-radius: 10px; overflow: hidden;
  border: 1.5px solid var(--gray-200);
}
.input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,110,232,0.12); }
.input-group-text {
  background: var(--gray-100); padding: 0 1rem;
  color: var(--gray-600); font-size: 0.9rem;
  display: flex; align-items: center;
}
.input-group .form-control { border: none; border-radius: 0; }

.form-select {
  width: 100%; padding: 0.65rem 1rem; border-radius: 10px;
  border: 1.5px solid var(--gray-200); font-size: 0.9rem;
  font-family: inherit; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394A3B8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 0.75rem center/20px;
  cursor: pointer; transition: all 0.2s;
}
.form-select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,110,232,0.12);
}

/* Tags picker */
.tags-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-option {
  padding: 6px 14px; border-radius: 100px;
  border: 1.5px solid var(--gray-200); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; background: #fff; color: var(--gray-600); transition: all 0.2s;
}
.tag-option:hover { border-color: var(--primary); color: var(--primary); }
.tag-option.selected {
  background: var(--primary-light); border-color: var(--primary); color: var(--primary);
}

/* ── SIDEBAR ── */
.sidebar {
  width: 250px; min-height: 100vh;
  background: #fff;
  border-right: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; z-index: 100;
}
.sidebar-brand {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: 1.25rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.sidebar-nav { padding: 1rem 0.75rem; flex: 1; }
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.9rem; border-radius: 10px;
  text-decoration: none; color: var(--gray-600); font-weight: 500;
  font-size: 0.88rem; margin-bottom: 0.25rem; transition: all 0.2s;
}
.sidebar-link:hover { background: var(--gray-100); color: var(--dark); }
.sidebar-link.active {
  background: var(--primary-light); color: var(--primary); font-weight: 700;
}
.sidebar-link .icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.sidebar-link .icon svg { width: 18px; height: 18px; }
.sidebar-section {
  font-size: 0.7rem; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.75rem 0.9rem 0.25rem;
}

/* ── MAIN LAYOUT ── */
.dashboard-layout { display: flex; }
.main-content {
  flex: 1; margin-left: 250px; min-height: 100vh;
  background: var(--gray-50);
}
.topbar {
  height: 68px; background: #fff;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.content-area { padding: 2rem; }

/* ── DASHBOARD STATS ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; margin-bottom: 2rem;
}
.stat-widget {
  background: #fff; border-radius: 14px; padding: 1.25rem 1.5rem;
  border: 1px solid var(--gray-200); display: flex;
  align-items: flex-start; gap: 1rem;
}
.stat-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon-blue   { background: #DBEAFE; color: #3B82F6; }
.stat-icon-green  { background: #D1FAE5; color: #059669; }
.stat-icon-purple { background: #EDE9FE; color: var(--accent); }
.stat-icon-orange { background: #FEF3C7; color: #D97706; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--gray-400); font-weight: 500; margin-top: 4px; }

/* ── APPOINTMENT CARD ── */
.appt-card {
  background: #fff; border-radius: 12px; padding: 1rem 1.25rem;
  border: 1px solid var(--gray-200); display: flex;
  align-items: center; gap: 1rem; transition: all 0.2s;
  cursor: pointer;
}
.appt-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(91,110,232,0.12);
  transform: translateX(4px);
}
.appt-time-block {
  background: var(--primary-light); border-radius: 10px;
  padding: 0.6rem 0.8rem; text-align: center; min-width: 70px;
}
.appt-time-block .day { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.appt-time-block .month { font-size: 0.7rem; font-weight: 600; color: var(--primary); text-transform: uppercase; }
.appt-time-block .time { font-size: 0.72rem; color: var(--gray-600); margin-top: 2px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px); z-index: 9999;
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.25s; }
.modal-box {
  background: #fff; border-radius: 20px;
  width: 90%; max-width: 640px; max-height: 90vh; overflow-y: auto;
  animation: scaleIn 0.3s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-body { padding: 1.75rem; }
.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--gray-200);
  display: flex; gap: 0.75rem; justify-content: flex-end;
}
.modal-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--gray-100); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); font-size: 1.1rem; transition: all 0.2s;
}
.modal-close:hover { background: #fee2e2; color: #ef4444; }

/* ── SECTION ── */
.section { padding: 5rem 0; }
.section-title { font-size: 2.25rem; font-weight: 800; line-height: 1.2; }
.section-sub { font-size: 1.05rem; color: var(--gray-600); margin-top: 0.75rem; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* ── FEATURE CARD ── */
.feature-card {
  background: #fff; border-radius: 16px; padding: 1.75rem;
  border: 1px solid var(--gray-200); transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(91,110,232,0.12);
  transform: translateY(-3px);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.feature-icon svg { width: 26px; height: 26px; }

/* ── AVATAR ── */
.avatar {
  border-radius: 50%; object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--gray-200);
}

/* ── URGENCY SLIDER ── */
.urgency-slider { appearance: none; height: 6px; border-radius: 3px; outline: none; }
.urgency-slider::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--primary); cursor: pointer;
  box-shadow: 0 2px 8px rgba(91,110,232,0.4);
}

/* ── STEP DOTS (intake multi-step) ── */
.step-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gray-200); transition: all 0.3s;
}
.step-dot.active {
  background: var(--primary); width: 28px; border-radius: 5px;
}
.step-dot.completed {
  background: #10B981;
}

/* ── TABS ── */
.tabs { display: flex; gap: 0.25rem; padding: 0.35rem;
        background: var(--gray-100); border-radius: 12px;
        width: fit-content; }
.tab {
  padding: 0.55rem 1.25rem; border-radius: 9px; font-size: 0.88rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  color: var(--gray-600); border: none; background: transparent;
}
.tab.active {
  background: #fff; color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeInUp 0.35s ease; }

/* ── FOOTER ── */
footer {
  background: var(--dark); color: #94A3B8;
  padding: 4rem 0 2rem;
}
footer h4 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
footer a { color: #94A3B8; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #fff; }
.footer-brand {
  font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem;
}

/* ── NOTIFICATION DOT ── */
.notif-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--danger); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: -5px; right: -5px;
}

/* ── SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

/* ── HERO CARDS FLOATING ── */
.hero-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px; padding: 1rem 1.25rem; color: #fff;
}

/* ── UPLOAD ZONE ── */
.upload-zone {
  border: 2px dashed var(--gray-200); border-radius: 12px;
  padding: 2rem; text-align: center; cursor: pointer;
  transition: all 0.2s;
}
.upload-zone:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-zone input[type="file"] { display: none; }

/* ── RADIO CARD ── */
.radio-card { display: none; }
.radio-card-label {
  border: 2px solid var(--gray-200); border-radius: 12px;
  padding: 1rem 1.25rem; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 0.75rem;
}
.radio-card:checked + .radio-card-label {
  border-color: var(--primary); background: var(--primary-light);
  color: var(--primary);
}

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 99999;
  background: var(--dark); color: #fff; padding: 1rem 1.5rem;
  border-radius: 12px; font-size: 0.9rem; font-weight: 500;
  max-width: 340px; box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex; align-items: center; gap: 0.75rem;
  animation: slideInRight 0.4s ease;
}

/* ── RATING STARS ── */
.stars { color: #FBBF24; letter-spacing: 1px; }

/* ── PROFILE AVATAR LARGE ── */
.avatar-xl {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* ── INFO ROW ── */
.info-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0; }
.info-row + .info-row { border-top: 1px solid var(--gray-100); }
.info-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.info-label { font-size: 0.78rem; color: var(--gray-400); font-weight: 600; }
.info-value { font-size: 0.9rem; font-weight: 600; color: var(--dark); }

/* ── CALENDAR OVERRIDE ── */
.fc-toolbar-title { font-size: 1.1rem !important; font-weight: 700 !important; }
.fc-button-primary { background: var(--primary) !important; border-color: var(--primary) !important; border-radius: 8px !important; font-family: inherit !important; font-weight: 600 !important; }
.fc-event { border-radius: 7px !important; border: none !important; font-size: 0.78rem !important; padding: 2px 5px !important; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hero-gradient { padding-top: 5rem; }
}
