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

/* ============================================
   EDUCATIVA DESIGN SYSTEM — index.css
   Aligned to DESIGN.md: Academic Excellence System
   ============================================ */

:root {
  /* ---- Color Tokens (DESIGN.md) ---- */
  /* Surface */
  --surface: #fbf9f8;
  --surface-dim: #dcd9d9;
  --surface-bright: #fbf9f8;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f6f3f2;
  --surface-container: #f0eded;
  --surface-container-high: #eae8e7;
  --surface-container-highest: #e4e2e1;
  --on-surface: #1b1c1c;
  --on-surface-variant: #3c4949;
  --inverse-surface: #303030;
  --inverse-on-surface: #f3f0f0;
  --outline: #6c7a7a;
  --outline-variant: #bbc9c9;
  --surface-tint: #00696b;

  /* Primary */
  --primary: #048295;
  --on-primary: #ffffff;
  --primary-container: #14bbbe;
  --on-primary-container: #004546;
  --inverse-primary: #4bdadd;
  --primary-fixed: #6ef6f9;
  --primary-fixed-dim: #4bdadd;
  --on-primary-fixed: #002020;
  --on-primary-fixed-variant: #004f51;

  /* Secondary */
  --secondary: #ECF2F5;
  --on-secondary: #ffffff;
  --secondary-container: #d8dee1;
  --on-secondary-container: #5b6265;
  --secondary-fixed: #dde3e6;
  --secondary-fixed-dim: #c1c7ca;
  --on-secondary-fixed: #161d1f;
  --on-secondary-fixed-variant: #41484a;

  /* Tertiary */
  --tertiary: #FFDE59;
  --on-tertiary: #ffffff;
  --tertiary-container: #c4a724;
  --on-tertiary-container: #4a3d00;
  --tertiary-fixed: #ffe16e;
  --tertiary-fixed-dim: #e4c542;
  --on-tertiary-fixed: #221b00;
  --on-tertiary-fixed-variant: #544600;

  /* Error */
  --error: #ba1a1a;
  --on-error: #ffffff;
  --error-container: #ffdad6;
  --on-error-container: #93000a;

  /* Background */
  --background: #fbf9f8;
  --on-background: #1b1c1c;
  --surface-variant: #e4e2e1;

  /* ---- Brand Aliases ---- */
  --bright-aqua: #14bbbe;
  --soft-mist: #ecf2f5;
  --sunny-gold: #ffde59;
  --neutral-grey: #333333;

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

  /* ---- Rounded ---- */
  --rounded-sm: 0.25rem;
  --rounded: 0.5rem;
  --rounded-md: 0.75rem;
  --rounded-lg: 1rem;
  --rounded-xl: 1.5rem;
  --rounded-2xl: 1.5rem;
  --rounded-full: 9999px;

  /* ---- Shadows (Premium Soft Elevation) ---- */
  --shadow-soft: 0 4px 24px -6px rgba(4, 130, 149, 0.08), 0 2px 8px -2px rgba(4, 130, 149, 0.04);
  --shadow-hover: 0 20px 40px -12px rgba(4, 130, 149, 0.15), 0 8px 16px -4px rgba(4, 130, 149, 0.08);
  --shadow-nav: 0 4px 20px rgba(0, 0, 0, 0.03);

  /* ---- Spacing ---- */
  --container-max: 1280px;
  --gutter: 24px;
  --margin-desktop: 64px;
  --margin-tablet: 32px;
  --margin-mobile: 20px;
  --stack-sm: 8px;
  --stack-md: 16px;
  --stack-lg: 32px;
  --section-gap: 80px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--on-surface);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

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

.display-lg {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}

.headline-md {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.headline-sm {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.label-md {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.label-sm {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 767px) {
  .display-lg { font-size: 32px; }
  .headline-lg { font-size: 24px; }
  .headline-md { font-size: 20px; }
}

/* ============================================
   LINKS
   ============================================ */
a {
  text-decoration: none;
  color: var(--bright-aqua);
  transition: color 0.2s ease;
}

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

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-desktop);
}

@media (max-width: 1279px) {
  .container { padding: 0 var(--margin-tablet); }
}

@media (max-width: 767px) {
  .container { padding: 0 var(--margin-mobile); }
}

/* Grid */
.grid {
  display: grid;
  gap: var(--gutter);
}

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

@media (max-width: 1024px) {
  .grid-5, .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .grid-12, .grid-5, .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* Gap */
.gap-2 { gap: var(--stack-sm); }
.gap-4 { gap: var(--stack-md); }
.gap-6 { gap: var(--gutter); }
.gap-8 { gap: var(--stack-lg); }

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--section-gap) 0;
}

.section-sm {
  padding: 48px 0;
}

.bg-white {
  background-color: var(--surface-container-lowest);
}

.bg-soft {
  background-color: var(--soft-mist);
}

.bg-dark {
  background-color: #0c1a25;
  color: white;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--rounded-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--bright-aqua);
  color: var(--surface-container-lowest);
}

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

.btn-secondary {
  background-color: transparent;
  border-color: var(--bright-aqua);
  color: var(--bright-aqua);
}

.btn-secondary:hover {
  background-color: rgba(20, 187, 190, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--bright-aqua);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: rgba(20, 187, 190, 0.08);
  color: var(--primary);
}

.btn-dark {
  background-color: var(--neutral-grey);
  color: white;
}

.btn-dark:hover {
  background-color: #1a1a1a;
  box-shadow: var(--shadow-hover);
  color: white;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* ============================================
   FORMS
   ============================================ */
.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--rounded);
  border: 1px solid var(--outline-variant);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--on-surface);
  background-color: var(--surface-container-lowest);
  outline: none;
  transition: all 0.2s ease;
}

.input::placeholder {
  color: var(--outline);
}

.input:focus {
  border-color: var(--bright-aqua);
  box-shadow: 0 0 0 3px rgba(20, 187, 190, 0.18);
}

.input-group {
  position: relative;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background-color: var(--surface-container-lowest);
  border-radius: var(--rounded-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--surface-container-highest);
  padding: 32px;
  transition: all 0.25s ease;
}

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

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(251, 249, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  padding: 16px 0;
  border-bottom: 1px solid var(--surface-container-highest);
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--neutral-grey);
  padding: 8px 12px;
  font-size: 14px;
  border-radius: var(--rounded);
  transition: all 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--bright-aqua);
}

.nav-link.active {
  font-weight: 600;
  border-bottom: 2px solid var(--bright-aqua);
  border-radius: 0;
}

/* ---- Navigation Dropdown Menu ---- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-toggle svg {
  transition: transform 0.2s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--surface-container-highest);
  border-radius: var(--rounded-xl);
  box-shadow: 0 12px 30px rgba(0, 32, 32, 0.12);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  margin-top: 8px;
  animation: fadeInNav 0.2s ease;
}

/* Pseudo element bridge so hovering over gap doesn't close dropdown */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

@keyframes fadeInNav {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--rounded-lg);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--on-surface);
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-dropdown-item:hover {
  background: var(--surface-container-low);
  color: var(--bright-aqua);
  transform: translateX(3px);
}

.nav-dropdown-item.active {
  background: rgba(20, 187, 190, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.nav-dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ============================================
   BADGES & CHIPS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--rounded-md);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
}

.badge-soft-primary {
  background-color: rgba(20, 187, 190, 0.1);
  color: var(--bright-aqua);
}

.badge-gold {
  background-color: var(--sunny-gold);
  color: var(--on-tertiary-fixed);
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.badge-error {
  background-color: rgba(186, 26, 26, 0.08);
  color: var(--error);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.badge-neutral {
  background-color: var(--surface-container-high);
  color: var(--on-surface-variant);
}

/* Status pill (rounded-full variant) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--rounded-full);
  border: 1px solid var(--surface-container-highest);
  background: var(--surface-container-lowest);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-pill:hover {
  border-color: var(--outline);
}

.status-pill.active {
  background: rgba(20, 187, 190, 0.08);
  border-color: var(--bright-aqua);
  color: var(--bright-aqua);
  font-weight: 600;
}

/* ============================================
   TABS
   ============================================ */
.tabs-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tabs-container::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 16px 24px;
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--surface-container-highest);
  border-radius: var(--rounded-lg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  transition: all 0.2s ease;
  color: var(--neutral-grey);
}

.tab.active {
  border-color: var(--bright-aqua);
  color: var(--bright-aqua);
  box-shadow: 0 4px 12px rgba(20, 187, 190, 0.1);
}

.tab:hover:not(.active) {
  border-color: rgba(20, 187, 190, 0.5);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress-bar-bg {
  height: 6px;
  background: var(--surface-container-high);
  border-radius: var(--rounded-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--rounded-full);
  transition: width 0.4s ease;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary { color: var(--bright-aqua); }
.text-gold { color: var(--tertiary-container); }
.text-muted { color: var(--outline); }
.text-center { text-align: center; }
.text-white { color: #ffffff; }

.text-aqua { color: var(--bright-aqua); }
.text-deep { color: var(--primary); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

.w-full { width: 100%; }

/* ============================================
   SHARED LAYOUT COMPONENTS
   ============================================ */

/* Dark Footer */
.footer-dark {
  background: linear-gradient(180deg, var(--inverse-surface) 0%, #060f17 100%);
  color: white;
  padding: 64px 0 32px;
  margin-top: auto;
}

.footer-dark a {
  transition: color 0.2s ease;
}

.footer-dark a:hover {
  color: var(--bright-aqua) !important;
}

/* Breadcrumbs */
.breadcrumb {
  color: var(--bright-aqua);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--neutral-grey);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--bright-aqua);
}

/* Collaboration Banner */
.collab-banner {
  background: var(--soft-mist);
  border-radius: var(--rounded-2xl);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--surface-container-highest);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-num {
  width: 36px;
  height: 36px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--surface-container-highest);
  background: var(--surface-container-lowest);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--on-surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-num:hover {
  border-color: var(--bright-aqua);
  color: var(--bright-aqua);
}

.page-num.active {
  background: var(--bright-aqua);
  color: white;
  border-color: var(--bright-aqua);
}

/* ============================================
   DASHBOARD LAYOUT & COMPONENTS
   ============================================ */
:root {
  --sidebar-width: 240px;
  --sidebar-collapsed: 72px;
  --header-height: 64px;
}

body.dashboard-body {
  display: flex;
  min-height: 100vh;
  background: var(--surface-container-low);
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface-container-lowest);
  border-right: 1px solid var(--surface-container-highest);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 50;
  transition: width 0.25s ease;
}

.sidebar-brand {
  padding: 20px 20px;
  border-bottom: 1px solid var(--surface-container-highest);
}

.sidebar-brand img {
  height: 34px;
  width: 100%;
  object-fit: contain;
}

.sidebar-menu {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--rounded-lg);
  color: var(--on-surface-variant);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-item:hover {
  color: var(--primary);
  background: var(--surface-container-low);
}

.sidebar-item.active {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 105, 107, 0.2);
}

.sidebar-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-divider {
  height: 1px;
  background: var(--surface-container-highest);
  margin: 12px 8px;
}

.badge-count {
  margin-left: auto;
  background: var(--error);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--rounded-full);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--surface-container-highest);
}

.btn-collapse {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--outline);
  font-size: 12px;
  cursor: pointer;
  width: 100%;
  padding: 8px;
  font-family: var(--font-heading);
  border-radius: var(--rounded);
  transition: all 0.2s;
}

.btn-collapse:hover {
  background: var(--surface-container-low);
  color: var(--on-surface-variant);
}

/* Dashboard Main Area */
.dashboard-main {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 0.25s ease;
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .dashboard-main {
    margin-left: 0;
  }
}

/* Dashboard Header */
.dash-header {
  background: var(--surface-container-lowest);
  border-bottom: 1px solid var(--surface-container-highest);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
}

.search-bar {
  position: relative;
  width: 480px;
  max-width: 100%;
}

.search-bar input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: var(--rounded-full);
  border: 1px solid var(--surface-container-highest);
  background: var(--surface-container-low);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
  color: var(--on-surface);
}

.search-bar input:focus {
  border-color: var(--bright-aqua);
  background: var(--surface-container-lowest);
  box-shadow: 0 0 0 3px rgba(20, 187, 190, 0.15);
}

.search-bar svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--outline);
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-icon-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--on-surface-variant);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.action-icon-btn:hover {
  background: var(--surface-container-low);
  color: var(--primary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--rounded-lg);
  transition: background 0.2s;
}

.user-profile:hover {
  background: var(--surface-container-low);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface-container-highest);
}

/* Dashboard Content */
.dashboard-content {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 600px) {
  .dash-header {
    padding: 12px 16px;
  }
  .dashboard-content {
    padding: 20px 16px;
  }
}

/* Dashboard Summary Cards Grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .summary-grid { grid-template-columns: 1fr; }
}

.summary-card {
  background: var(--surface-container-lowest);
  border-radius: var(--rounded-xl);
  border: 1px solid var(--surface-container-highest);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-soft);
}

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

.card-header-flex {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--rounded-full);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  width: fit-content;
}

.card-link-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--surface-container-highest);
  text-decoration: none;
  transition: all 0.2s;
}

.card-link-bottom:hover {
  opacity: 0.8;
}

/* Dashboard Panel Card */
.panel-card {
  background: var(--surface-container-lowest);
  border-radius: var(--rounded-xl);
  border: 1px solid var(--surface-container-highest);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--surface-container-high);
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--on-surface);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-action {
  font-size: 12px;
  color: var(--bright-aqua);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.panel-action:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* 2-Column Dashboard Main Layout */
.dash-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  .dash-content-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   UNIFIED DASHBOARD DESIGN SYSTEM & LAYOUT
   ============================================ */

:root {
  --sidebar-width: 250px;
  --header-height: 64px;
}

body.dashboard-body {
  display: flex;
  min-height: 100vh;
  background: var(--surface-container-low);
  margin: 0;
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface-container-lowest);
  border-right: 1px solid var(--surface-container-highest);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 50;
  transition: width 0.25s ease, transform 0.25s ease;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.02);
}

.sidebar-brand {
  padding: 18px 20px;
  border-bottom: 1px solid var(--surface-container-highest);
  display: flex;
  align-items: center;
}

.sidebar-brand img {
  height: 34px;
  max-width: 100%;
  object-fit: contain;
}

.sidebar-menu {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--rounded-lg);
  color: var(--on-surface-variant);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-item:hover {
  color: var(--primary);
  background: var(--surface-container-low);
}

.sidebar-item.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(4, 130, 149, 0.25);
}

.sidebar-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-divider {
  height: 1px;
  background: var(--surface-container-highest);
  margin: 10px 8px;
}

.badge-count {
  margin-left: auto;
  background: var(--error);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--rounded-full);
}

/* Dashboard Main */
.dashboard-main {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  transition: margin-left 0.25s ease;
  background: var(--surface-container-low);
}

.dash-header {
  background: var(--surface-container-lowest);
  border-bottom: 1px solid var(--surface-container-highest);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  box-sizing: border-box;
}

.search-bar {
  position: relative;
  width: 440px;
  max-width: 100%;
}

.search-bar input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  border-radius: var(--rounded-full);
  border: 1px solid var(--surface-container-highest);
  background: var(--surface-container-low);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
  color: var(--on-surface);
  box-sizing: border-box;
}

.search-bar input:focus {
  border-color: var(--bright-aqua);
  background: var(--surface-container-lowest);
  box-shadow: 0 0 0 3px rgba(20, 187, 190, 0.15);
}

.search-bar svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--outline);
}

.dashboard-content {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .dashboard-main {
    margin-left: 0 !important;
  }
  .dash-header {
    padding: 14px 16px;
  }
  .dashboard-content {
    padding: 20px 16px;
  }
}

/* ==========================================================================
   ANTISLOP MODERN POLISH & REFINED UI ENHANCEMENTS
   ========================================================================== */

/* Typography & Base Rendering */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  color: #3b5258;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading), "Poppins", system-ui, sans-serif;
  color: #0b2b33;
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* Eyebrow Pills */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(4, 130, 149, 0.08);
  border: 1px solid rgba(4, 130, 149, 0.18);
  color: var(--primary, #048295);
  font-size: 11.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Premium Buttons */
.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #14bbbe 0%, #048295 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(4, 130, 149, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-pill-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(4, 130, 149, 0.32);
  filter: brightness(1.04);
  color: #ffffff !important;
}

.btn-pill-primary:active {
  transform: translateY(0);
}

.btn-pill-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid rgba(4, 130, 149, 0.22);
  color: #0b2b33 !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-pill-ghost:hover {
  border-color: var(--primary, #048295);
  background: rgba(4, 130, 149, 0.04);
  color: var(--primary, #048295) !important;
  transform: translateY(-2px);
}

.btn-pill-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffcc00;
  color: #0b2b33 !important;
  font-weight: 800;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 204, 0, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-pill-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 204, 0, 0.45);
  filter: brightness(1.05);
}

/* Service Chips */
.service-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(4, 130, 149, 0.16);
  border-radius: 8px;
  color: #0b2b33;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.service-chip:hover {
  background: rgba(20, 187, 190, 0.12);
  border-color: #14bbbe;
  color: #048295;
  transform: translateY(-1px);
}

/* Cards & Micro-interactions */
.service-directory-card,
.service-journey-card,
.experts__card,
.hover-elevate {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-directory-card:hover,
.service-journey-card:hover,
.hover-elevate:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(9, 46, 58, 0.09) !important;
  border-color: rgba(4, 130, 149, 0.3) !important;
}

/* Track scrollbars */
[data-carousel],
.experts__track {
  scrollbar-width: thin;
  scrollbar-color: rgba(4, 130, 149, 0.3) transparent;
}

[data-carousel]::-webkit-scrollbar,
.experts__track::-webkit-scrollbar {
  height: 6px;
}

[data-carousel]::-webkit-scrollbar-thumb,
.experts__track::-webkit-scrollbar-thumb {
  background: rgba(4, 130, 149, 0.3);
  border-radius: 999px;
}

[data-carousel]::-webkit-scrollbar-thumb:hover,
.experts__track::-webkit-scrollbar-thumb:hover {
  background: var(--primary, #048295);
}
