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

:root {
  /* Primary Colors (Purple theme) */
  --primary: #4E1E70;
  /* Royal Purple */
  --primary-light: #8B5BE6;
  /* Vivid Iris Purple */
  --primary-dark: #33063E;
  /* Deep Royal Purple */

  /* Accent */
  --accent: #FFDCF3;
  /* Blush Pink */
  --accent-light: #DDCDFF;
  /* Soft Lavender Mist */

  /* Secondary */
  --secondary: #C3D7DC;
  /* Muted Sky Blue */
  --secondary-light: #F7FFE8;
  /* Soft Lime Tint */

  /* Backgrounds */
  --bg-main: #FFFFFF;
  /* Pure White */
  --bg-card: #FFFFFF;
  --bg-section: #DDCDFF;
  /* Soft Lavender */
  --bg-muted: #A2A5AD;
  /* Cool Slate Grey */

  /* Text */
  --text-primary: #212121;
  /* Neutral 100% */
  --text-secondary: #212121CC;
  /* Neutral 80% */
  --text-muted: #21212199;
  /* Neutral 60% */
  --text-on-primary: #FFFFFF;

  /* Status */
  --success: #7BA7BC;
  --warning: #8B5BE6;
  --danger: #33063E;
  --info: #C3D7DC;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Typography */
  --font-body: 'Nunito', sans-serif;
  --font-heading: 'Poppins', sans-serif;

  .gradient-bg {
    background:
      radial-gradient(ellipse at bottom,
        var(--accent) 0%,
        var(--primary-light) 40%,
        var(--primary) 70%,
        var(--primary-dark) 100%);
  }
}


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

html {
  scroll-behavior: smooth;
  zoom: 0.9;
}

body {
  font-family: var(--font-body);
  background-color: #FFFFFF;
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: var(--primary-dark);
}

/* ===== UTILITY ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-8 {
  gap: 8px;
}

.gap-16 {
  gap: 16px;
}

.gap-24 {
  gap: 24px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.w-full {
  width: 100%;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--text-on-primary);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: #C4663E;
  border-color: #C4663E;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg-muted);
}

.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.btn-danger:hover {
  background: #b84340;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(61, 53, 48, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-elevated {
  box-shadow: var(--shadow-md);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid var(--bg-muted);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 152, 133, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ===== ALERTS ===== */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-error {
  background: #FDE8E8;
  color: #C0392B;
  border: 1px solid #F5C6C6;
}

.alert-success {
  background: #E6F4EA;
  color: #2D7A47;
  border: 1px solid #B8DFC4;
}

.alert-info {
  background: #E8F1FA;
  color: #2563A8;
  border: 1px solid #B8D0EE;
}

.alert-warning {
  background: #FEF5E4;
  color: #9A6F1E;
  border: 1px solid #F5DFA0;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-green {
  background: #D4EDD8;
  color: #2D7A47;
}

.badge-blue {
  background: #D4E8F5;
  color: #1A5C8A;
}

.badge-orange {
  background: #FDE9D4;
  color: #9A4E1E;
}

.badge-red {
  background: #FDE8E8;
  color: #C0392B;
}

.badge-gray {
  background: var(--bg-muted);
  color: var(--text-muted);
}

/* ===============================
   PARWAH NAVBAR (MODERN PURPLE)
=============================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  padding: 0 32px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* BRAND */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
}

/* Logo box */
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;

  background: linear-gradient(135deg, #6366f1, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-weight: 700;
  font-size: 1rem;

  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

/* LINKS */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.navbar-links a {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

/* Hover */
.navbar-links a:hover {
  color: var(--primary-dark);
  background: rgba(99, 102, 241, 0.08);
}

/* CTA Button */
.nav-cta a {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white !important;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.nav-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.35);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 53, 48, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-close {
  background: var(--bg-muted);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-section);
  color: var(--text-primary);
}

/* ===== LOADER ===== */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--bg-muted);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}

.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(253, 246, 238, 0.8);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.loader-overlay p {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===== SECTION LABEL ===== */
.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

/* ===== GRID ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .navbar-links {
    gap: 4px;
  }
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-card);
  border-right: 1px solid rgba(61, 53, 48, 0.08);
  padding: 32px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 0 8px;
}

.sidebar-brand span {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: all 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.sidebar-nav-item:hover {
  background: var(--bg-section);
  color: var(--primary-dark);
}

.sidebar-nav-item.active {
  background: var(--primary);
  color: white;
}

.sidebar-nav-item .nav-icon {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.sidebar-spacer {
  flex: 1;
}

.dashboard-main {
  padding: 32px;
  overflow-y: auto;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar-spacer {
    display: none;
  }

  .dashboard-main {
    padding: 20px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes breatheExpand {
  0% {
    transform: scale(0.7);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(0.7);
    opacity: 0.6;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ===== SECTION DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--bg-muted);
  margin: 32px 0;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 0.95rem;
}

/* ===== QUIZ ===== */
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid var(--bg-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
  font-weight: 500;
}

.quiz-option:hover {
  border-color: var(--primary-light);
  background: var(--bg-section);
}

.quiz-option.selected {
  border-color: var(--primary);
  background: rgba(124, 152, 133, 0.1);
}

.quiz-option input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

/* ===== SLOT GRID ===== */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.slot-item {
  padding: 12px 16px;
  border: 2px solid var(--bg-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
  text-align: center;
}

.slot-item:hover {
  border-color: var(--primary-light);
  background: var(--bg-section);
}

.slot-item.selected {
  border-color: var(--primary);
  background: rgba(124, 152, 133, 0.1);
  color: var(--primary-dark);
}

/* ===== COUNSELOR CARD ===== */
.counselor-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid var(--bg-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.counselor-card:hover {
  border-color: var(--primary-light);
  background: var(--bg-section);
}

.counselor-card.selected {
  border-color: var(--primary);
  background: rgba(124, 152, 133, 0.1);
}

.counselor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  flex-shrink: 0;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  height: 8px;
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-pill);
  transition: width 0.5s ease;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 24px;
}

.footer h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer p,
.footer a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.9;
}

.footer a:hover {
  color: var(--primary-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}