/* Copyright (c) 2026. Patent Pending. All Rights Reserved. */
/* ============================================================
   PlacementPrep — Premium SaaS Design System v2.0
   Modern dark-accent card layout with glassmorphism & micro-animations.
   Tailored for college students & campus recruitment preparation.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Merriweather+Sans:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  /* ---- Layer Architecture ---- */
  --z-base: 1;
  --z-sticky: 100;
  --z-drawer-backdrop: 190;
  --z-drawer: 200;
  --z-dropdown: 300;
  --z-floating: 400;
  --z-modal-backdrop: 500;
  --z-modal: 510;
  --z-toast: 600;
  --z-tooltip: 700;

  /* ---- Spacing Scale ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* ---- Premium Color Palette ---- */
  --bg: #ebf3f0;
  --bg-2: #daeae4;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --surface-hover: #e3f0ec;
  --border: #cfe1da;
  --border-strong: #a4c2b7;

  --text: #102a21;
  --text-dim: #476a5d;
  --text-faint: #729286;

  /* ---- Brand Accents ---- */
  --accent: #0f6445;
  --accent-hover: #0b4a33;
  --accent-soft: rgba(15, 100, 69, 0.10);
  --accent-ink: #ffffff;

  --blue: #0f6445;
  --blue-soft: rgba(15, 100, 69, 0.10);

  --success: #237a57;
  --success-soft: rgba(35, 122, 87, 0.10);

  --warning: #9a6418;
  --warning-soft: rgba(154, 100, 24, 0.10);

  --danger: #b63a3a;
  --danger-soft: rgba(182, 58, 58, 0.10);

  --purple: #1c726a;
  --purple-soft: rgba(28, 114, 106, 0.10);

  --cyan: #0891b2;
  --cyan-soft: rgba(8, 145, 178, 0.10);

  /* ---- Shape & Elevation ---- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(16, 42, 33, 0.06);
  --shadow-sm: 0 1px 3px rgba(16, 42, 33, 0.08);
  --shadow: 0 3px 10px rgba(16, 42, 33, 0.10);
  --shadow-lg: 0 8px 22px rgba(16, 42, 33, 0.14);
  --shadow-xl: 0 16px 34px rgba(16, 42, 33, 0.18);

  --sidebar-w: 256px;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: 'Merriweather Sans', 'Source Sans 3', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --transition-fast: 130ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ Reset & Global Base ============ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #b8dccf;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #77a494;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

h4 {
  font-size: 14px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============ Utility Classes ============ */
.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

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

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

.justify-center {
  justify-content: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

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

.text-accent {
  color: var(--accent);
}

.text-dim {
  color: var(--text-dim);
}

.text-faint {
  color: var(--text-faint);
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-danger {
  color: var(--danger);
}

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.mt-1 {
  margin-top: var(--space-1);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-3 {
  margin-top: var(--space-3);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mb-1 {
  margin-bottom: var(--space-1);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-3) 0;
  border: none;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid>* {
  min-width: 0;
}

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

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

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

@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {

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

/* ============ Layout Shell ============ */
.app-layout {
  display: flex;
  width: 100vw;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ============ Sidebar Navigation ============ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-drawer);
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 4px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #147c56, #216c53);
  color: #ffffff;
  border-radius: var(--radius);
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(20, 124, 86, 0.30);
}

.brand-logo svg {
  width: 20px;
  height: 20px;
}

.brand-text h1 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-text h1 span {
  color: var(--accent);
}

.brand-text p {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 1px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Nav section labels */
.nav-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  padding: 14px 8px 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  letter-spacing: -0.01em;
}

.nav-link:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transform: translateX(2px);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(20, 124, 86, 0.12), rgba(33, 108, 83, 0.08));
  color: var(--accent);
  font-weight: 600;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: inherit;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.sidebar-footer {
  padding: 14px 4px 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.readiness-mini {
  margin-bottom: var(--space-2);
}

.mini-label {
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.mini-bar {
  height: 5px;
  background: var(--bg-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.mini-fill {
  height: 100%;
  background: linear-gradient(90deg, #147c56, #1c726a);
  border-radius: var(--radius-full);
  transition: width 500ms ease;
}

.mini-val {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
}

.footer-note {
  font-size: 10.5px;
  color: var(--text-faint);
  margin-top: 6px;
}

/* ============ Main Content Area ============ */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  width: calc(100vw - var(--sidebar-w));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ============ Sticky Topbar ============ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 13px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-xs);
}

.menu-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle:hover {
  background: var(--bg-2);
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
}

.page-title-wrap {
  flex: 1;
  min-width: 0;
}

.page-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.date-badge {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  font-weight: 500;
}

/* User Profile Pill */
.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 8px 4px 6px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #147c56, #1c726a);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-logout {
  border: none !important;
  background: transparent !important;
  padding: 2px 4px !important;
  color: var(--text-dim) !important;
  font-size: 12px !important;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: none !important;
}

.user-logout:hover {
  color: var(--danger) !important;
  background: var(--danger-soft) !important;
}

/* ============ View Container ============ */
.view-container {
  padding: 24px 28px 56px;
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  animation: fadeUp 200ms ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* ============ SaaS Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: scale(0.97);
  box-shadow: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, #147c56 0%, #106948 100%);
  color: #ffffff;
  border-color: #106948;
  box-shadow: 0 2px 8px rgba(20, 124, 86, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #106948 0%, #0f563c 100%);
  border-color: #0f563c;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(20, 124, 86, 0.36);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-dim);
  box-shadow: none;
}

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

.btn-danger {
  background: var(--surface);
  border-color: #fca5a5;
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.btn-success {
  background: var(--surface);
  border-color: #6ee7b7;
  color: var(--success);
}

.btn-success:hover {
  background: var(--success);
  color: #ffffff;
  border-color: var(--success);
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 10px 22px;
  font-size: 14px;
}

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

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.btn-icon.btn-sm {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
}

/* ============ Cards ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.card.hoverable:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  letter-spacing: -0.01em;
}

.card-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 3px;
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.card-stat {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.card-stat-label {
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============ Dashboard Hero ============ */
.dashboard-hero {
  background: linear-gradient(135deg, #ffffff 0%, #ebfaf4 50%, #e6f4f0 100%);
  border: 1px solid #bee9d9;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 124, 86, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-score {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
  flex-wrap: wrap;
}

.hero-ring {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.hero-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hero-ring svg circle.bg {
  stroke: #d8ece5;
}

.hero-ring svg circle.fg {
  stroke: url(#readinessGradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 900ms cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-num b {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-num span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
}

.hero-msg {
  flex: 1;
  min-width: 220px;
}

.hero-msg h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-msg p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 6px;
}

/* ============ Chips & Badges ============ */
.chip,
.quick-chip,
.yt-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.chip.blue {
  background: #e9f9f3;
  color: #147c56;
  border-color: #ace4d0;
}

.chip.green {
  background: #f0fdf4;
  color: #059669;
  border-color: #a7f3d0;
}

.chip.purple {
  background: #ebf7f3;
  color: #1c726a;
  border-color: #bfe3d7;
}

.chip.orange {
  background: #fffbeb;
  color: #d97706;
  border-color: #fde68a;
}

.chip.red {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.chip.cyan {
  background: #ecfeff;
  color: #0891b2;
  border-color: #a5f3fc;
}

.chip.gray {
  background: var(--surface-2);
  color: var(--text-dim);
  border-color: var(--border);
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.quick-chip {
  cursor: pointer;
  background: var(--surface-2);
  padding: 5px 12px;
}

.quick-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ============ Heatmap ============ */
.heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13px, 1fr));
  gap: 3px;
  margin-top: var(--space-2);
}

.heat-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.heat-cell.l1 {
  background: #aedecc;
  border-color: #81c5ac;
}

.heat-cell.l2 {
  background: #55a487;
  border-color: #378568;
}

.heat-cell.l3 {
  background: #216c53;
  border-color: #195c46;
}

.heat-cell.l4 {
  background: #174133;
  border-color: #0e261e;
}

.legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: var(--space-3);
}

.legend .sw {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

/* Canvases */
.bar-canvas,
.radar-canvas {
  width: 100%;
  height: 200px;
  display: block;
  margin-top: var(--space-2);
}

/* ============ Form Controls ============ */
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin: var(--space-3) 0 5px;
  letter-spacing: -0.005em;
}

.field-label:first-child {
  margin-top: 0;
}

select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea {
  display: block;
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 124, 86, 0.14);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5878' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border-strong);
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(20, 124, 86, 0.04);
}

.dz-icon {
  margin-bottom: 10px;
}

/* ============ Progress Bars ============ */
.progress-bar {
  height: 8px;
  background: var(--bg-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent), #1c726a);
  transition: width 500ms ease;
}

.progress-fill.green {
  background: linear-gradient(90deg, #059669, #34d399);
}

.progress-fill.orange {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.progress-fill.red {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

.recommendation-list {
  display: grid;
  gap: var(--space-2);
  padding-left: 20px;
  font-size: 13px;
}

.recommendation-row {
  display: grid;
  gap: 2px;
  padding-left: 4px;
}

.recommendation-row span {
  font-size: 12px;
}

.job-details-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow-y: auto;
}

.job-details-heading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.job-details-heading h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.job-company-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-dim);
}

.job-company-description {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.65;
}

.job-detail-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-4);
}

.job-detail-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 10px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
}

.job-detail-tab:hover { color: var(--text); background: var(--surface-2); }
.job-detail-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.job-detail-panel { display: none; }
.job-detail-panel.active { display: block; }

.job-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.job-detail-stats > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.job-detail-stats span,
.job-timeline dt {
  color: var(--text-faint);
  font-size: 11px;
}

.job-detail-stats strong,
.job-timeline dd {
  color: var(--text);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-5);
}

.job-detail-grid h3,
.job-rounds h3 {
  margin-bottom: var(--space-2);
  font-size: 14px;
}

.job-timeline {
  display: grid;
  gap: var(--space-2);
}

.job-timeline > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.job-timeline dd { margin: 0; text-align: right; }

.job-rounds ol,
.job-rounds ul {
  display: grid;
  gap: 6px;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}

.job-details-note {
  display: flex;
  gap: 6px;
  margin-top: var(--space-4);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 11.5px;
  line-height: 1.5;
}

.li-typed-fallback {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.li-typed-fallback textarea {
  min-height: 72px;
  font-size: 13px;
}

/* ============ Code Editor Sandbox ============ */
.code-wrap {
  border: 1px solid #172d25;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #071812;
  box-shadow: var(--shadow);
}

.code-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 14px;
  background: #10241c;
  color: #587a6d;
  font-size: 12px;
  border-bottom: 1px solid #1d372e;
}

.code-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}

.code-dots span:nth-child(1) {
  background: #ef4444;
}

.code-dots span:nth-child(2) {
  background: #f59e0b;
}

.code-dots span:nth-child(3) {
  background: #10b981;
}

.code-file {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #88a99d;
  font-weight: 600;
}

.code-input {
  width: 100%;
  min-height: 280px;
  padding: 14px;
  background: #071812;
  color: #ddebe6;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  tab-size: 2;
  border: none;
  resize: vertical;
}

.code-input:focus {
  outline: none;
  box-shadow: none;
}

.test-case {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 13px;
  margin-bottom: var(--space-2);
  font-size: 12.5px;
}

.test-title {
  font-weight: 600;
  margin-bottom: 3px;
}

.test-io {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 11.5px;
}

/* ============ Option Buttons (Quiz) ============ */
.option-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: 11px 15px;
  margin-bottom: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  cursor: pointer;
}

.option-btn:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateX(3px);
}

.option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.option-btn.correct {
  border-color: #6ee7b7;
  background: #f0fdf4;
  color: var(--success);
  font-weight: 600;
}

.option-btn.wrong {
  border-color: #fca5a5;
  background: #fef2f2;
  color: var(--danger);
  font-weight: 600;
}

.option-letter {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

/* ============ YouTube Lectures ============ */
.yt-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.yt-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-left: auto;
}

.yt-progress-wrap { min-width: 180px; }

.yt-progress-label {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 11px;
  color: var(--text-dim);
}

.yt-search { min-width: 220px; }
.yt-search input { width: 100%; }

.yt-cats {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.yt-cat {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.yt-cat.active { background: var(--accent); color: var(--accent-ink); }
.yt-cat-count { opacity: 0.7; font-weight: 500; }

.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

.yt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.yt-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.yt-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}

.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }

.yt-thumb-fallback {
  background: linear-gradient(135deg, #0d2e22, #104934 55%, #0f766e);
}

.yt-thumb-fallback-label {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
}

.yt-thumb-fallback .yt-thumb-fallback-label { display: flex; }

.yt-playbtn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity var(--transition);
}

.yt-playbtn svg { width: 44px; height: 44px; color: #fff; }
.yt-card:hover .yt-playbtn,
.yt-card:focus-within .yt-playbtn { opacity: 1; }

.yt-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 10.5px;
}

.yt-body { padding: var(--space-3) var(--space-4); }
.yt-title { margin-bottom: 6px; font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.yt-channel { display: flex; align-items: center; gap: var(--space-2); font-size: 12px; color: var(--text-dim); }
.yt-avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 10px; font-weight: 700; }
.yt-meta, .yt-desc { color: var(--text-dim); font-size: 11.5px; }
.yt-desc { margin-top: 6px; line-height: 1.5; }
.yt-dot { margin: 0 4px; }
.yt-card-actions { display: flex; gap: var(--space-2); margin-top: 10px; }

.yt-check-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-dim);
}

.yt-check-btn svg { width: 16px; height: 16px; }
.yt-check-btn.done { background: var(--success-soft); border-color: #a7f3d0; color: var(--success); }

.yt-done-badge, .yt-restricted-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 700;
}

.yt-done-badge { background: var(--success-soft); color: var(--success); }
.yt-restricted-badge { background: var(--warning-soft); color: var(--warning); }

/* ============ YouTube Player Modal ============ */
.yt-player-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  background: rgba(4, 20, 14, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  padding: var(--space-4);
}

.yt-player-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.yt-player-modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 860px;
  width: 100%;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.yt-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.yt-player-title {
  font-size: 14.5px;
  font-weight: 700;
}

.yt-player-channel {
  font-size: 11.5px;
  color: var(--text-dim);
}

.yt-player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.yt-player-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.yt-player-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}

.yt-player-close:hover {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #fca5a5;
}

/* ============ Modals ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  background: rgba(4, 20, 14, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  padding: var(--space-4);
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 440px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  transform: translateY(12px) scale(0.97);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: var(--z-modal);
}

.modal-overlay.show .modal {
  transform: translateY(0) scale(1);
}

.modal-head {
  padding: 24px 24px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.auth-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(20, 124, 86, 0.12), rgba(28, 114, 106, 0.12));
  border: 1px solid rgba(20, 124, 86, 0.18);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.auth-logo svg {
  width: 26px;
  height: 26px;
}

.modal-head h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin: 0 24px;
}

.auth-tab {
  flex: 1;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  border: none;
  background: transparent;
  border-bottom: 2.5px solid transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  text-align: center;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.auth-tab:hover {
  color: var(--text);
}

.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.modal-body {
  padding: 20px 24px 24px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}

.field-label:first-child {
  margin-top: 0;
}

.modal-body input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.modal-body input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 124, 86, 0.14);
  background: var(--surface);
}

.auth-error {
  background: var(--danger-soft);
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--danger);
  margin-bottom: 14px;
}

/* ============ Chatbot ============ */
.chatbot-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-floating);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #147c56, #1c726a);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(20, 124, 86, 0.40);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.chatbot-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 28px rgba(20, 124, 86, 0.50);
}

.chatbot-fab svg {
  width: 22px;
  height: 22px;
}

.chatbot-panel {
  position: fixed;
  bottom: 90px;
  right: 28px;
  z-index: var(--z-floating);
  width: 370px;
  max-height: 540px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 200ms ease-out both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

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

.chatbot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(20, 124, 86, 0.06), rgba(28, 114, 106, 0.04));
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #147c56, #1c726a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.chatbot-avatar svg {
  width: 18px;
  height: 18px;
}

.chat-status {
  font-size: 11px;
  color: var(--success);
  font-weight: 600;
  display: block;
}

.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 350px;
}

.chatbot-input {
  display: flex;
  gap: var(--space-1);
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chatbot-input input {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--surface-2);
}

.msg {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  animation: msgIn 150ms ease-out both;
}

.msg.bot {
  max-width: 96%;
}

.msg.bot code {
  display: block;
  margin-top: 8px;
  padding: 10px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: #071812;
  color: #ddebe6;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: pre;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

.msg.bot {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius) var(--radius) var(--radius) 2px;
}

.msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #147c56, #106948);
  color: #ffffff;
  border-radius: var(--radius) var(--radius) 2px var(--radius);
}

/* ============ Toast Notifications ============ */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 16px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  pointer-events: auto;
  font-weight: 500;
  animation: toastIn 200ms ease-out both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

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

.toast.success {
  border-left: 3px solid var(--success);
}

.toast.error {
  border-left: 3px solid var(--danger);
}

.toast.info {
  border-left: 3px solid var(--accent);
}

/* ============ Mobile Navigation ============ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 20, 14, 0.5);
  z-index: var(--z-drawer-backdrop);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }

  .main-content {
    margin-left: 0;
    width: 100vw;
  }

  .menu-toggle {
    display: flex;
  }

  .topbar {
    padding: 10px 16px;
  }

  .view-container {
    padding: 16px 16px 48px;
  }

  .date-badge {
    display: none;
  }

  .page-subtitle {
    display: none;
  }

  .chatbot-panel {
    width: calc(100vw - 28px);
    right: 14px;
    bottom: 82px;
  }

  .yt-header-row,
  .yt-header-right {
    align-items: stretch;
    width: 100%;
  }

  .yt-header-right {
    flex-direction: column;
    margin-left: 0;
  }

  .yt-progress-wrap,
  .yt-search {
    width: 100%;
    min-width: 0;
  }

  .yt-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .yt-player-head {
    align-items: flex-start;
    gap: var(--space-2);
  }

  .yt-player-head > div:last-child {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .yt-player-overlay { padding: 8px; }
  .yt-player-head { padding: 12px; }

  .yt-player-head > div:last-child {
    width: 100%;
    justify-content: space-between;
  }

  .yt-watch-link {
    flex: 1;
    justify-content: center;
  }
}

/* ============ Campus Placement Visual Layer ============ */
body {
  background: var(--bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-text h1,
.card-title,
.page-title,
.modal-head h2 {
  font-family: var(--font-heading);
  letter-spacing: 0;
}

.sidebar {
  background: #102a21;
  border-right: 0;
  box-shadow: 4px 0 18px rgba(16, 42, 33, 0.12);
}

.brand {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.brand-logo {
  background: #0f6445;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.brand-text h1,
.brand-text p,
.nav-link,
.sidebar .mini-label,
.sidebar .footer-note {
  color: #f4f7fa;
}

.brand-text h1 span,
.sidebar .mini-val {
  color: #78cdae;
}

.nav-link {
  border-left: 3px solid transparent;
  border-radius: 3px;
  color: #bed4cc;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: none;
}

.nav-link.active {
  background: #1d4e3c;
  border-left-color: #78cdae;
  color: #ffffff;
  padding-left: 9px;
}

.sidebar .mini-bar {
  background: rgba(255, 255, 255, 0.16);
}

.sidebar .mini-fill {
  background: #78cdae;
  border-radius: 0;
}

.main-content {
  background: var(--bg);
}

.topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border-strong);
  box-shadow: none;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.page-subtitle {
  color: var(--text-dim);
}

.view-container {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
}

.card {
  border-radius: var(--radius);
  box-shadow: none;
  border-color: var(--border);
}

.card:hover,
.card.hoverable:hover {
  box-shadow: var(--shadow-sm);
  transform: none;
}

.card-stat,
.mini-val,
.hero-num b,
.li-stat-val,
.job-detail-stats strong {
  font-family: var(--font-mono);
}

.card-stat-label,
.mini-label,
.field-label {
  letter-spacing: 0;
  text-transform: none;
}

.chip,
.quick-chip,
.yt-cat {
  border-radius: 3px;
  padding: 4px 8px;
  letter-spacing: 0;
}

.btn {
  border-radius: 4px;
  letter-spacing: 0;
  font-weight: 600;
}

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

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

.dashboard-hero {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: none;
}

.dashboard-hero::before {
  width: 0;
  height: 0;
}

.hero-ring svg circle.fg {
  stroke: var(--accent);
  animation: readinessDraw 900ms ease-out both;
}

.hero-ring svg circle.bg {
  stroke: var(--bg-2);
}

.hero-msg h3 {
  font-family: var(--font-heading);
}

.hero-msg .chip {
  background: var(--surface-2);
}

.card-title {
  font-size: 15px;
}

.card-title::after {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  margin-left: 4px;
  background: var(--accent);
}

.modal,
.job-details-modal,
.chatbot-panel,
.yt-player-modal {
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}

.modal-head {
  text-align: left;
  border-bottom-color: var(--border-strong);
}

.chatbot-head {
  background: #102a21;
  color: #ffffff;
}

.chatbot-head .chat-status,
.chatbot-head .chatbot-title {
  color: #ffffff;
}

.chatbot-panel {
  border-color: var(--border-strong);
}

.msg.bot {
  background: var(--surface-2);
  border-color: var(--border);
  border-radius: 4px;
}

.msg.user {
  background: var(--accent);
  border-radius: 4px;
}

.code-wrap,
.question-card,
.yt-card {
  border-radius: var(--radius);
  box-shadow: none;
}

.job-detail-tab {
  border-radius: 0;
}

.job-detail-stats > div {
  border-radius: 3px;
  background: var(--surface-2);
}

.noticeboard-strip,
.job-details-note {
  border-left: 3px solid var(--danger);
  border-radius: 3px;
}

.view-container > * {
  animation: none;
}

@keyframes readinessDraw {
  from { stroke-dashoffset: 264; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .page-title {
    font-size: 16px;
  }

  .page-subtitle {
    display: none;
  }
}

/* ============ Loading ============ */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  gap: 14px;
  color: var(--text-dim);
  font-size: 13px;
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 700ms linear infinite;
}

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

/* ============ Empty States ============ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  gap: 12px;
  color: var(--text-dim);
}

.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 4px;
}

/* ============ Score Ring (for various modules) ============ */
.score-ring {
  position: relative;
  width: 80px;
  height: 80px;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring .ring-bg {
  stroke: var(--bg-2);
}

.score-ring .ring-fg {
  stroke: var(--accent);
  stroke-linecap: round;
}

.score-ring-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text);
}

/* ============ Table Styles ============ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: var(--surface-2);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============ Stat Cards ============ */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 6px;
}

.stat-icon.blue {
  background: #e9f9f3;
  color: #147c56;
}

.stat-icon.green {
  background: #f0fdf4;
  color: #059669;
}

.stat-icon.purple {
  background: #ebf7f3;
  color: #1c726a;
}

.stat-icon.orange {
  background: #fffbeb;
  color: #d97706;
}

/* ============ Responsive Utility ============ */
@media (max-width: 600px) {
  .hide-mobile {
    display: none !important;
  }

  .card {
    padding: var(--space-4);
  }

  .dashboard-hero {
    padding: var(--space-4);
  }
}