:root {
  /* Visual DNA - Boardroom Aesthetic */
  /* Color Palette - Updated from Logo */
  --primary-dark: #0F1F23;    /* Dark Charcoal/Black-Green - Headings/Text */
  --primary-brand: #2F7C7B;   /* Deep Teal - Primary Brand Color */
  --primary-accent: #2FA7A1;  /* Brighter Teal - Accents */
  --primary-accent-hover: #258e89;
  --brand-gold: #F2B542;      /* Mustard/Yellow-Orange - Secondary Accent */
  
  --background: #F4F6F8;      /* Cool Grey - Professional Background */
  --surface: #ffffff;         /* White - Cards/Surface */
  --text-main: #0F1F23;       /* Dark Charcoal - Main Text */
  --muted-text: #5A6B70;      /* Slate Grey - Readable */
  --border-color: #E2E8F0;    /* Light Slate - Subtle Borders */
  --success: #10B981;         /* Emerald Green */
  --error: #EF4444;           /* Red */
  
  /* Gradients - Subtle & Executive */
  --gradient-brand: linear-gradient(135deg, #2F7C7B 0%, #0F1F23 100%);
  --gradient-accent: linear-gradient(135deg, #2FA7A1 0%, #2F7C7B 100%);
  --gradient-gold: linear-gradient(135deg, #F2B542 0%, #D99A28 100%);
  /* Dashboard: harmonious tints (teal family + one warm accent) */
  --dash-hero-bg: linear-gradient(135deg, #2F7C7B 0%, #246B6A 50%, #1d5655 100%);
  --dash-focus-bg: linear-gradient(145deg, #1a3d3c 0%, #0F1F23 100%);
  --dash-focus-cta: #5dd4cf;
  --dash-stat-accent: #2F7C7B;
  --dash-icon-teal: rgba(47, 124, 123, 0.12);
  --dash-icon-teal-strong: rgba(47, 124, 123, 0.2);
  --dash-icon-warm: rgba(184, 139, 56, 0.18);
  --dash-icon-success: rgba(16, 185, 129, 0.14);
  --dash-icon-neutral: rgba(15, 31, 35, 0.06);
  --dash-urgency-border: #b8861a;
  --dash-urgency-text: #8B6914;
  --dash-foot-bg: linear-gradient(135deg, rgba(47, 124, 123, 0.06) 0%, rgba(47, 124, 123, 0.02) 100%);

  /* Typography */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Border Radius - Structured */
  --radius-xl: 1rem;    /* 16px */
  --radius-lg: 0.75rem; /* 12px */
  --radius-md: 0.5rem;  /* 8px */
  --radius-sm: 0.25rem; /* 4px */
  
  /* Shadows - Calm & Authoritative */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-input: 0 0 0 3px rgba(31, 164, 169, 0.15);
  
  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 80px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  accent-color: var(--primary-accent); /* Modern browser support for inputs */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  font-weight: 400;
  color: var(--muted-text);
  margin-bottom: 1rem;
}

.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 0.5rem;
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--muted-text); }
.text-link { color: var(--primary-accent); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; }

.mt-md { margin-top: 1.5rem; }
.mb-md { margin-bottom: 1.5rem; }

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

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

/* Table Styling */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th {
  text-align: left;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-text);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td {
  padding: 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

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

/* Badge & Pill Styling */
.status-badge,
.tag-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-approved, .status-verified, .status-accepted { background: #dcfce7; color: #166534; }
.status-under-review, .status-pending, .status-review { background: #fef3c7; color: #92400e; }
.status-rejected, .status-expired, .status-critical { background: #fee2e2; color: #991b1b; }
.status-info, .status-onboarding { background: #e0f2fe; color: #0369a1; }

.tag-badge { background: #f1f5f9; color: #475569; }

/* Stepper Component */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

/* Connector Line */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px; /* Center of 32px circle */
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

/* Active Line (Optional: Color the line if step is completed) */
.step.completed:not(:last-child)::after {
  background: var(--success);
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--muted-text);
  z-index: 1;
  transition: var(--transition);
  font-size: 0.875rem;
}

.step-label {
  font-size: 0.75rem;
  color: var(--muted-text);
  font-weight: 600;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

/* Active State */
.step.active .step-circle {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 0 0 4px rgba(15, 61, 62, 0.1);
}

.step.active .step-label {
  color: var(--primary-dark);
}

/* Completed State */
.step.completed .step-circle {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.step.completed .step-label {
  color: var(--success);
}

/* Compliance & BBBEE Enhanced Styles */
.compliance-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.compliance-indicator.compliant {
  border-left-color: var(--success);
  background: #f0fdf4;
}

.compliance-indicator.warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.compliance-indicator.critical {
  border-left-color: var(--error);
  background: #fef2f2;
}

.compliance-indicator.compact {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
}

.compliance-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
}

.compliant .compliance-status-dot { background: var(--success); }
.warning .compliance-status-dot { background: #f59e0b; }
.critical .compliance-status-dot { background: var(--error); }

.compliance-timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.5rem;
}

.compliance-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.compliance-timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.compliance-timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary-accent);
  z-index: 1;
}

.compliance-timeline-item.active::before {
  background: var(--primary-accent);
}

.status-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.status-accepted { background: #dcfce7; color: #166534; }
.status-review { background: #e0f2fe; color: #0369a1; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-finance { background: #fef3c7; color: #92400e; }

.document-status-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-verified { background: #dcfce7; color: #166534; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-expired { background: #fee2e2; color: #991b1b; }

.bbbee-score-delta {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}

.delta-up { color: var(--success); }
.delta-down { color: var(--error); }

/* Category Selection Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.category-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.category-card:hover {
  border-color: var(--primary-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card.active {
  border-color: var(--primary-accent);
  background: rgba(31, 164, 169, 0.04);
  box-shadow: 0 0 0 4px rgba(31, 164, 169, 0.1);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  transition: var(--transition);
}

.category-card:hover .category-icon,
.category-card.active .category-icon {
  background: var(--primary-dark);
  color: white;
}

.category-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
}

.category-desc {
  font-size: 0.8rem;
  color: var(--muted-text);
  line-height: 1.4;
}

/* Document Upload Area */
.doc-upload-box {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  background: #f8fafc;
  transition: var(--transition);
}

.doc-upload-box:hover {
  border-color: var(--primary-accent);
  background: #f1f5f9;
}

.type-specific-field.hidden {
  display: none;
}

.step-description {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted-text);
}

.review-section {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary-accent);
}

.review-section h4 {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-text);
}

.review-section p {
  margin-bottom: 0;
  color: var(--text-main);
  font-size: 1rem;
}

/* Mentees card layout */
.mentees-card {
  padding: 1.5rem;
}

.mentees-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.mentees-card-title h2 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.mentees-layout {
  display: grid;
  grid-template-columns: 2fr 380px;
  gap: 1.5rem;
  align-items: start;
}

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

.mentor-mentees-autocomplete-dropdown .mentor-mentees-autocomplete-item:hover {
  background-color: rgba(47, 124, 123, 0.08);
}

.mentees-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.mentees-table-wrapper .table {
  margin-top: 0;
  min-width: 700px;
}

.mentee-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.mentee-row:hover {
  background-color: rgba(47, 124, 123, 0.04);
}

.mentee-row.selected,
.mentee-row.active {
  background-color: rgba(47, 124, 123, 0.08);
}

.mentor-mentee-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.mentor-mentee-row:hover {
  background-color: rgba(47, 124, 123, 0.06);
}
.mentor-mentee-row.mentor-mentee-row-selected {
  background-color: rgba(47, 124, 123, 0.1);
}

.mentee-name {
  font-weight: 600;
  color: var(--primary-dark);
}

.mentee-actions {
  white-space: nowrap;
}

.mentee-actions-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.mentee-actions-btns form {
  display: inline-block;
  margin: 0;
}

.mentee-actions-btns .btn-danger {
  color: var(--error);
}

.text-sm { font-size: 0.875rem; }

.mentee-side-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.mentee-side-panel .review-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.mentee-detail-panel {
  display: none;
}

.mentee-placeholder-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  min-height: 200px;
}

.mentee-detail-block {
  margin-bottom: 1.25rem;
}

.mentee-detail-block:last-of-type {
  margin-bottom: 0;
}

.mentee-detail-block .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.mentee-detail-block .text-sm {
  margin-bottom: 0.35rem;
}

.detail-address {
  display: block;
  color: var(--text-main);
}

.detail-kpis {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.mentee-detail-actions {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Mentee Detail Page - Full profile view */
.mentee-detail-page {
  padding: 1.5rem 2rem 2rem;
}

.mentee-profile-hero {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  overflow: hidden;
  background: var(--dash-hero-bg);
  color: #fff;
  box-shadow: 0 4px 24px rgba(47, 124, 123, 0.2);
}

.mentee-profile-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 40%;
  height: 160%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.mentee-profile-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  display: block;
  margin-bottom: 0.35rem;
}

.mentee-profile-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  color: #fff;
}

.mentee-profile-subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}

.mentee-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .mentee-detail-layout {
    grid-template-columns: 1fr;
  }
}

.mentee-detail-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mentee-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 1.5rem;
}

.mentee-detail-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.mentee-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mentee-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0;
}

/* Info blocks for mentee detail */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.info-item-full {
  grid-column: 1 / -1;
}

.info-item-turnover {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--dash-icon-teal);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-brand);
}

.info-value-highlight {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-brand);
}

.info-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-link {
  color: var(--primary-accent);
  text-decoration: none;
}

.info-link:hover {
  text-decoration: underline;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.mentee-detail-card .table-wrapper .table {
  margin-top: 0;
}

.table-compact th,
.table-compact td {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

/* Session cards */
.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.session-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  background: var(--background);
  transition: var(--transition);
}

.session-card:hover {
  border-color: var(--primary-accent);
  background: rgba(47, 124, 123, 0.03);
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.session-date {
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.session-topic {
  color: var(--muted-text);
  font-size: 0.9rem;
}

.session-mentor {
  font-size: 0.8rem;
  color: var(--muted-text);
}

.session-details,
.session-feedback,
.session-action-items {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.session-row {
  margin-top: 0.5rem;
}

.session-row .info-label {
  margin-right: 0.5rem;
}

.session-notes {
  margin-top: 0.5rem;
}

.session-feedback-text {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-style: italic;
  color: var(--muted-text);
}

.session-action-items .table-compact {
  margin-top: 0.5rem;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary-accent);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-accent);
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.hidden {
  display: none !important;
}

/* Flowless transitions for mentee portal view sections */
.mentee-views-wrapper {
  position: relative;
}
.mentee-views-wrapper .view-section {
  transition: opacity 0.2s ease, visibility 0.2s;
}
.mentee-views-wrapper .view-section.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: block !important;
}

.fade-in {
  animation: fadeIn 0.5s var(--transition);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Components */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 0.95rem;
    gap: 0.5rem;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }

  .btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 12px rgba(47, 124, 123, 0.25);
    border: none;
  }
  
  .btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #378a89 0%, #152b30 100%); /* Slightly lighter gradient for hover */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47, 124, 123, 0.35);
  }
  
  .btn-primary:hover::before {
    opacity: 1;
  }
  
  .btn-gold {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(242, 181, 66, 0.25);
    border: none;
  }
  
  .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 181, 66, 0.35);
    filter: brightness(1.05);
  }

  .btn-secondary {
    background: white;
    color: var(--primary-brand);
    border: 1px solid var(--border-color);
  }

  .btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--primary-brand);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }

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

.btn-ghost:hover {
  background: rgba(31, 164, 169, 0.08);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.dashboard-card.card {
  padding: 1.25rem;
  transition: var(--transition);
}
.dashboard-card.card:hover {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-lg);
}

/* ---- Mentee Dashboard: creative layout ---- */
.mentee-dash {
  max-width: 1200px;
  margin: 0 auto;
}
.mentee-dash-hero {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  overflow: hidden;
  background: var(--dash-hero-bg);
  color: #fff;
  box-shadow: 0 8px 32px rgba(47, 124, 123, 0.2);
}
.mentee-dash-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.mentee-dash-hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.mentee-dash-hero .hero-greeting {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.35rem;
}
.mentee-dash-hero .hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.mentee-dash-hero .hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  max-width: 420px;
}

/* Compact section hero for non-dashboard mentee views */
.mentee-section-hero {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: var(--dash-hero-bg);
  color: #fff;
  box-shadow: 0 4px 20px rgba(47, 124, 123, 0.15);
}
.mentee-section-hero .section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.25rem;
}
.mentee-section-hero .section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.mentee-section-hero .section-subtitle {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
}

.mentee-dash-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.mentee-dash-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}
.mentee-dash-stat-pill span {
  color: var(--dash-stat-accent);
  font-weight: 700;
}
/* Journey summary dots (compact programme tracker) */
.journey-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--border-color);
  color: var(--muted-text);
  transition: var(--transition);
}
.journey-dot.current {
  background: var(--primary-brand);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(47, 124, 123, 0.25);
}
.journey-dot.done {
  background: var(--success);
  color: #fff;
}
.journey-connector {
  display: inline-block;
  width: 1.25rem;
  height: 2px;
  background: var(--border-color);
}

/* Journey strip – follows site colour scheme */
.mentee-dash-journey {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--dash-foot-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary-brand);
  flex-wrap: wrap;
}
.mentee-dash-journey-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-text);
}
.mentee-dash-journey-steps {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 200px;
}
.mentee-dash-journey-stage {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.mentee-dash-journey-hint {
  font-size: 0.85rem;
  color: var(--muted-text);
}
.mentee-dash-journey a {
  color: var(--primary-brand);
  font-weight: 600;
  text-decoration: none;
}
.mentee-dash-journey a:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.mentee-dash-journey-empty {
  border-style: dashed;
  border-left-color: var(--primary-brand);
}
.mentee-dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.mentee-dash-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.mentee-dash-card:hover {
  border-color: var(--primary-brand);
  box-shadow: 0 8px 24px rgba(47, 124, 123, 0.12);
}
.mentee-dash-card.span-4 { grid-column: span 4; }
.mentee-dash-card.span-6 { grid-column: span 6; }
.mentee-dash-card.span-8 { grid-column: span 8; }
.mentee-dash-card.span-12 { grid-column: span 12; }
@media (max-width: 900px) {
  .mentee-dash-card.span-4,
  .mentee-dash-card.span-6,
  .mentee-dash-card.span-8 { grid-column: span 12; }
}
.mentee-dash-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 0.5rem;
}
.mentee-dash-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}
.mentee-dash-card-meta {
  font-size: 0.875rem;
  color: var(--muted-text);
}
.mentee-dash-focus {
  background: var(--dash-focus-bg);
  color: #fff;
  border: none;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(15, 31, 35, 0.15);
}
.mentee-dash-focus .mentee-dash-card-label { color: rgba(255,255,255,0.75); }
.mentee-dash-focus .mentee-dash-card-title { color: #fff; }
.mentee-dash-focus .mentee-dash-card-meta { color: rgba(255,255,255,0.85); }
.mentee-dash-focus .focus-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dash-focus-cta);
}
.mentee-dash-progress-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.mentee-dash-progress-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-brand) 0deg calc(var(--pct, 0) * 3.6deg), var(--border-color) calc(var(--pct, 0) * 3.6deg) 360deg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mentee-dash-progress-ring-inner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
}
.mentee-dash-events-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}
.mentee-dash-events-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}
.mentee-dash-events-list li:last-child { border-bottom: none; }
.mentee-dash-events-list .event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-brand);
  flex-shrink: 0;
}
.mentee-dash-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--dash-foot-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
}
@media (max-width: 640px) {
  .mentee-dash-foot { grid-template-columns: 1fr; }
}
.mentee-dash-tip {
  font-size: 0.9rem;
  color: var(--muted-text);
  font-style: italic;
}
.mentee-dash-tip strong { color: var(--primary-dark); font-style: normal; }
.mentee-dash-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.mentee-dash-quicklinks a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--primary-dark);
  text-decoration: none;
  transition: var(--transition);
}
.mentee-dash-quicklinks a:hover {
  border-color: var(--primary-brand);
  color: var(--primary-brand);
  background: var(--dash-icon-teal);
}
.mentee-dash-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mentee-dash-focus .mentee-dash-card-icon.mentee-dash-focus-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.mentee-dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.mentee-dash-urgency {
  border-left: 4px solid var(--dash-urgency-border);
}
.mentee-dash-urgency .mentee-dash-card-title { color: var(--dash-urgency-text); }

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

/* Form Elements */
.input-group {
  margin-bottom: 1.5rem;
}

.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.input-field:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-input);
}

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.input-field::placeholder {
  color: #cbd5e1;
}

/* Floating Label Input */
.floating-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.floating-input {
  width: 100%;
  padding: 1rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.floating-input:focus {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-input);
}

.floating-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  pointer-events: none;
  color: var(--muted-text);
  transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  padding: 0 0.25rem;
  font-weight: 500;
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
  top: -0.6rem;
  left: 0.75rem;
  font-size: 0.75rem;
  background: var(--surface);
  color: var(--primary-accent);
  font-weight: 600;
}

/* Auth Specific */
.auth-split-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--background);
  width: 100%;
}

.auth-card-modern {
  width: 100%;
  max-width: 440px;
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.auth-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-gold), var(--primary-accent));
}

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

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-logo {
  width: 56px;
  height: 56px;
  background: var(--brand-gold);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(244, 178, 62, 0.3);
}

.auth-title {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.auth-subtitle {
  color: var(--muted-text);
  font-size: 1rem;
}

.auth-switch-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted-text);
}

.auth-switch-link {
  color: var(--primary-accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-left: 0.25rem;
}

.auth-switch-link:hover {
  text-decoration: underline;
}

/* Mobile responsive for Auth */
@media (max-width: 900px) {
  .auth-split-screen {
    flex-direction: column;
  }
  .auth-brand-side {
    display: none; 
  }
}


/* Dashboard Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.4s cubic-bezier(0.2, 0, 0, 1);
}

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

  .sidebar {
    width: 100%;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.75rem 1rem;
  }

  .sidebar-logo {
    margin-bottom: 0;
    margin-right: 1.5rem;
  }

  .sidebar-nav {
    flex-direction: row;
    align-items: center;
    margin-top: 0;
  }

  .nav-item {
    padding-inline: 0.75rem;
  }

  .main-content {
    padding: 1.25rem 1rem 1.5rem;
  }
}

/* Sidebar Styles */
.sidebar {
  background: linear-gradient(135deg, #0F3D3E 0%, #062122 100%); /* Deep, rich gradient */
  color: white;
  padding: 2rem 1.5rem; /* Adjusted padding */
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15); /* Depth */
  z-index: 20;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  padding-left: 0.5rem;
}

.jalusi-logo-svg {
  display: block;
  max-width: 100%;
}

.sidebar-logo .jalusi-logo-svg {
  height: 44px;
  width: auto;
}

.footer-logo .jalusi-logo-svg {
  height: 40px;
  width: auto;
}

.sidebar .jalusi-logo-svg .jalusi-wordmark-main,
.sidebar .jalusi-logo-svg .jalusi-curve-text {
  fill: #e5e7eb;
}

.sidebar .jalusi-logo-svg .jalusi-wordmark-sub,
.sidebar .jalusi-logo-svg .jalusi-wordmark-pty {
  fill: var(--brand-gold);
}

/* ESD360 Portal Logo */
.sidebar .esd360-logo-svg .esd360-text-360 {
  fill: var(--brand-gold);
}

.sidebar .esd360-logo-svg .esd360-degree {
  stroke: var(--brand-gold);
}

.sidebar .esd360-logo-svg .esd360-text-sub {
  fill: var(--brand-gold);
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}


.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  color: white;
  background: rgba(31, 164, 169, 0.2); /* Tint of accent */
  border-left: 3px solid var(--primary-accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* User Profile in Sidebar */
.user-profile-trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.user-profile-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gold);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
}

/* Main Content Area */
.main-content {
  padding: 2rem;
  overflow-y: auto;
  height: 100vh;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-text);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.stat-meta {
  font-size: 0.8rem;
  color: var(--muted-text);
  margin-top: 0.5rem;
}

/* Profile Tabs */
.profile-tabs,
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.profile-tab,
.tab-btn {
  padding: 1rem 1.5rem;
  cursor: pointer;
  color: var(--muted-text);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
}

.profile-tab:hover,
.tab-btn:hover {
  color: var(--primary-dark);
}

.profile-tab.active,
.tab-btn.active {
  color: var(--primary-dark);
  border-bottom-color: var(--brand-gold);
}

.segment-group {
  display: inline-flex;
  border-radius: 999px;
  background: #f3f4f6;
  padding: 0.15rem;
}

.segment-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted-text);
  font-weight: 500;
  transition: var(--transition);
}

.segment-btn.active {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Search & Filter Bar */
.search-filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-input-wrapper svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-text);
}

.search-input-wrapper .input-field {
  padding-left: 2.75rem;
}

/* Procurement Cards & Details */
.procurement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.procurement-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}

.procurement-card:hover {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-md);
}

.procurement-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.procurement-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.procurement-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted-text);
}

.procurement-desc {
  font-size: 0.9rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Document List & Management */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.doc-item:hover {
  background: white;
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-sm);
}

.doc-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.doc-info {
  flex: 1;
}

.doc-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.doc-meta {
  font-size: 0.75rem;
  color: var(--muted-text);
}

.doc-actions {
  display: flex;
  gap: 0.5rem;
}

/* Audit Log */
.audit-log {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.audit-log th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-text);
  text-transform: uppercase;
}

.audit-log td {
  padding: 1rem;
  background: white;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.audit-log td:first-child { border-left: 1px solid var(--border-color); border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.audit-log td:last-child { border-right: 1px solid var(--border-color); border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

.audit-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.audit-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-accent);
  color: white;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Modal / Slide-over */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 61, 62, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

/* Dropdowns */
.dropdown-menu {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 220px;
  z-index: 100;
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu.show,
.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Task List */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.task-item:hover {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-sm);
}

.task-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
}

.task-content {
  flex: 1;
}

.task-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.task-meta {
  font-size: 0.75rem;
  color: var(--muted-text);
}

/* Session Cards */
.session-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.session-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 60px;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  color: var(--primary-dark);
}

.session-date {
  font-size: 1.25rem;
  font-weight: 800;
}

.session-month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Mentor: Approved schedule appointment cards */
.approved-schedule-section {
  padding: 1.5rem 2rem;
}

.approved-request-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.approved-request-item {
  padding: 1.5rem;
  margin-bottom: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--card-bg, var(--surface));
}

.approved-request-summary {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.approved-request-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 2rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.approved-request-meta dt {
  font-weight: 600;
  color: var(--muted-text);
  margin: 0;
}

.approved-request-meta dd {
  margin: 0;
  color: var(--text-main);
}

.approved-request-form-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-text);
  margin: 0 0 0.75rem 0;
}

.approved-request-schedule-form .schedule-appointment-form {
  display: grid;
  grid-template-columns: 140px 140px 1fr 220px auto;
  gap: 1rem;
  align-items: end;
}

.approved-request-schedule-form .schedule-appointment-form .input-group {
  margin: 0;
}

.approved-request-schedule-form .schedule-submit-wrap {
  display: flex;
  align-items: flex-end;
}

@media (max-width: 900px) {
  .approved-request-schedule-form .schedule-appointment-form {
    grid-template-columns: 1fr 1fr;
  }

  .approved-request-schedule-form .schedule-submit-wrap {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .approved-request-schedule-form .schedule-appointment-form {
    grid-template-columns: 1fr;
  }

  .approved-request-schedule-form .schedule-submit-wrap {
    grid-column: span 1;
  }

  .approved-request-meta {
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
  }
}

/* Mentee Cards */
.mentee-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.mentee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-accent);
}

.program-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Chat Layout */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 180px);
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.chat-sidebar {
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.chat-search {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.chat-list {
  flex: 1;
  overflow-y: auto;
}

.chat-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid #f8fafc;
  position: relative;
}

.chat-item:hover {
  background: #f8fafc;
}

.chat-item.active {
  background: #f0f9fa;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-item-content {
  flex: 1;
  min-width: 0;
}

.chat-name {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--muted-text);
  font-weight: 400;
}

.chat-subject {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-preview {
  font-size: 0.8rem;
  color: var(--muted-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-dot {
  position: absolute;
  right: 1rem;
  bottom: 1.25rem;
  width: 8px;
  height: 8px;
  background: var(--primary-accent);
  border-radius: 50%;
}

.chat-status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
  position: absolute;
  bottom: 0;
  right: 0;
}

.chat-status-online { background: var(--success); }
.chat-status-away { background: #f59e0b; }
.chat-status-offline { background: #94a3b8; }

.chat-group-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: rgba(31, 164, 169, 0.1);
  color: var(--primary-accent);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.chat-window {
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fafc;
}

.message-bubble {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.4;
  position: relative;
}

.message-received {
  align-self: flex-start;
  background: white;
  color: var(--text-main);
  border-bottom-left-radius: 0.25rem;
  box-shadow: var(--shadow-sm);
}

.message-sent {
  align-self: flex-end;
  background: var(--primary-dark);
  color: white;
  border-bottom-right-radius: 0.25rem;
  box-shadow: var(--shadow-sm);
}

.message-time {
  font-size: 0.65rem;
  margin-top: 0.25rem;
  opacity: 0.7;
  text-align: right;
}

.chat-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: var(--transition);
}

.chat-input:focus {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-input);
}

/* Dropdowns */
.dropdown-menu {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 220px;
  z-index: 100;
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu.show,
.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu-top {
  bottom: 100%;
  left: 0;
  margin-bottom: 0.5rem;
}

.dropdown-menu-right {
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
}

.dropdown-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: #f1f5f9;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
}

/* Notification Item */
.notification-item {
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.15s;
}

.notification-item:hover {
  background: #f8fafc;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-gold);
  border-radius: 50%;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.notification-trigger {
  position: relative;
  cursor: pointer;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  font-weight: 700;
}

.notification-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.notification-icon-box:hover {
  background: #f8fafc;
  border-color: var(--primary-accent);
}

/* Program Tags */
.program-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 0.75rem;
}

.tag-registered {
  background: #dbeafe;
  color: #1e40af;
}
.tag-upcoming {
  background: #fef9c3;
  color: #92400e;
}
.tag-in-progress {
  background: #dcfce7;
  color: #166534;
}
.tag-completed {
  background: #e2e8f0;
  color: #334155;
}

/* Tag Badge */
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Read-only Feedback State */
.feedback-readonly {
    opacity: 0.8;
    pointer-events: none;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.feedback-readonly textarea {
    background: transparent;
    border: none;
    padding: 0;
    resize: none;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Responsive Stats Grid */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.modal-body {
  padding: 2rem;
  flex: 1;
  overflow-y: auto;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: #f8fafc;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--muted-text);
  line-height: 1;
  padding: 0.25rem;
  border-radius: 50%;
  transition: var(--transition);
}

.btn-close:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-main);
}

/* Messaging Center */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 140px); /* Adjust based on header/padding */
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.chat-sidebar {
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.chat-search {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.chat-list {
  flex: 1;
  overflow-y: auto;
}

.chat-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-color);
}

.chat-item:hover, .chat-item.active {
  background: white;
}

.chat-item.active {
  border-left: 3px solid var(--primary-accent);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #64748b;
  overflow: hidden;
}

.chat-item-content {
  flex: 1;
  min-width: 0;
}

.chat-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 0.1rem;
  display: flex;
  justify-content: space-between;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--muted-text);
  font-weight: 400;
}

.chat-subject {
  font-size: 0.8rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.chat-preview {
  font-size: 0.75rem;
  color: var(--muted-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-accent);
  border-radius: 50%;
  margin-top: 0.25rem;
}

.chat-window {
  display: flex;
  flex-direction: column;
  background: white;
}

.chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fafc;
}

.message-bubble {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
}

.message-received {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 0;
  color: var(--text-main);
}

.message-sent {
  align-self: flex-end;
  background: #e0f2fe; /* Light blue */
  color: #0c4a6e;
  border-bottom-right-radius: 0;
}

.message-time {
  font-size: 0.65rem;
  margin-top: 0.25rem;
  opacity: 0.7;
  text-align: right;
}

.chat-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: white;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-family: inherit;
  resize: none;
  max-height: 100px;
  outline: none;
}

.chat-input:focus {
  border-color: var(--primary-accent);
}

/* News Widget */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: #f8fafc;
}

.news-pinned {
  background: #fffbeb; /* Light yellow */
  border-left: 3px solid #f59e0b; /* Amber */
  border-radius: var(--radius-sm);
}

.news-pinned:hover {
  background: #fef3c7;
}

.news-meta {
  display: flex;
}

/* Application Screen Header */
.screen-header {
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.screen-header-left {
  position: absolute;
  left: 0;
  top: 0;
}

.screen-header-right {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 0.75rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Timeline Component */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border-color);
  margin-left: 1rem;
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.6rem;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
}

.timeline-dot.success {
  background: var(--success);
}

.timeline-dot.active {
  background: var(--primary-accent);
}

.timeline-dot.pending {
  background: var(--border-color);
}

.timeline-title {
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.timeline-date {
  font-size: 0.875rem;
  color: var(--muted-text);
}

.timeline-item.opacity-50 {
    opacity: 0.5;
}

/* Status Card */
.status-card {
    max-width: 600px;
    width: 100%;
}

.status-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.status-demo-action {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--primary-accent);
    text-align: center;
}

/* Programs Tab */
.program-image {
  height: 140px;
  background: var(--gradient-brand);
  position: relative;
}

.category-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.program-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.program-action-btn {
  margin-top: auto;
  width: 100%;
}

#programs-available-grid,
#programs-my-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  #programs-available-grid,
  #programs-my-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Refactored Utilities & Components */
.container-sm {
  max-width: 800px;
}

.center-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: 2rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.grid-two {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .grid-two {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card-compact {
  padding: 1.5rem;
}

.card-centered {
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

/* Pending approval / status state card - content-sized, professional */
.pending-approval-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.pending-approval-card .pending-approval-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 181, 66, 0.12);
  color: var(--brand-gold);
  border-radius: 50%;
}

.pending-approval-card .pending-approval-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.pending-approval-card .pending-approval-desc {
  font-size: 0.9375rem;
  color: var(--muted-text);
  line-height: 1.55;
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

.pending-approval-card .pending-approval-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-lg);
}

.pending-approval-card .pending-approval-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d97706;
  animation: pulse-soft 2s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pending-approval-card .pending-approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

#view-pending-approval .card-centered {
  height: auto;
  min-height: 400px;
  padding: 2rem;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
}

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

.text-sm {
  font-size: 0.875rem;
}

.mb-xs {
  margin-bottom: 0.5rem;
}

.mb-md {
  margin-bottom: 1.5rem;
}

.mt-md {
  margin-top: 1.5rem;
}

.btn-back {
  padding: 0.5rem;
  color: var(--muted-text);
}

.input-readonly {
  background: var(--background);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

.form-actions.space-between {
  justify-content: space-between;
}

.demo-link {
  text-decoration: underline;
  cursor: pointer;
  color: var(--primary-accent);
}

.assessment-grid-header,
.assessment-grid-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
}

.assessment-grid-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.assessment-grid-row {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.assessment-grid-row:hover {
  background: #f8fafc;
}

.assessment-area {
  background: var(--background);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.review-box {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.file-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted-text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.file-input:hover {
  border-color: var(--primary-accent);
  background: #f0f9ff;
}

.file-input::file-selector-button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary-dark);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.file-input::file-selector-button:hover {
  background: var(--primary-accent);
}

/* Application form – file upload section (step 3) */
.file-upload-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(47, 124, 123, 0.04) 0%, rgba(47, 124, 123, 0.01) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.file-upload-item .file-input {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
  background: var(--surface);
  transition: var(--transition);
}

.file-upload-item .file-input:hover {
  border-color: var(--primary-accent);
  background: rgba(47, 167, 161, 0.04);
}

.file-upload-item .file-input:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(47, 124, 123, 0.15);
}

.file-upload-item .file-input::file-selector-button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: var(--primary-brand);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.file-upload-item .file-input::file-selector-button:hover {
  background: var(--primary-accent);
  color: white;
}

/* Training course – learning portal (fits naturally in dashboard layout) */
.training-course-page .main-content.training-course-main {
  max-width: 100%;
  padding: 1.5rem 2rem 3rem;
  background: var(--background);
  border-left: 3px solid var(--primary-brand);
  min-height: 100vh;
}

.training-course-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Minimal top bar – back + logout only */
.training-course-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.training-course-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-text);
  text-decoration: none;
  transition: var(--transition);
}

.training-course-breadcrumb:hover {
  color: var(--primary-brand);
}

.training-course-breadcrumb svg {
  flex-shrink: 0;
}

.training-course-chrome-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.training-course-messages {
  margin-bottom: 1.25rem;
}

.training-course-message {
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Content column – one flowing page */
.training-course-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.training-course-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.training-course-hero-content {
  flex: 1;
  min-width: 200px;
}

.training-course-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.training-course-badge {
  display: inline-flex;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.training-course-badge-type {
  background: rgba(47, 124, 123, 0.12);
  color: var(--primary-brand);
}

.training-course-badge-category {
  background: var(--dash-icon-neutral);
  color: var(--primary-dark);
}

.training-course-badge-status {
  background: var(--dash-icon-teal);
  color: var(--primary-brand);
}

.training-course-badge-status-completed {
  background: var(--dash-icon-success);
  color: var(--success);
}

.training-course-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.training-course-subtitle {
  font-size: 0.95rem;
  color: var(--muted-text);
  margin: 0;
  line-height: 1.55;
}

.training-course-hero-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

/* Sections – light cards that feel part of the page */
.training-course-section {
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.training-course-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.training-course-section-description {
  font-size: 0.875rem;
  color: var(--muted-text);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.training-course-objectives-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.training-course-objective-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}

.training-course-objective-icon {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--success);
}

.training-course-content-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.training-course-content-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--background);
  transition: var(--transition);
}

.training-course-content-card:hover {
  border-color: rgba(47, 124, 123, 0.35);
  background: rgba(47, 124, 123, 0.04);
  box-shadow: var(--shadow-sm);
}

.training-course-content-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.training-course-content-icon-pdf {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.training-course-content-icon-video {
  background: rgba(47, 124, 123, 0.12);
  color: var(--primary-brand);
}

.training-course-content-icon-material {
  background: rgba(242, 181, 66, 0.12);
  color: var(--brand-gold);
}

.training-course-content-card-body {
  flex: 1;
  min-width: 0;
}

.training-course-content-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.training-course-content-card-meta {
  font-size: 0.8rem;
  color: var(--muted-text);
  margin: 0;
  line-height: 1.4;
}

.training-course-learning-material {
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.65;
}

.training-course-empty-state {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--background);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--muted-text);
}

.training-course-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1.25rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border-color);
}

/* Navigation Bar - Fixed & Creative Floating Island */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1280px;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: center;
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 2rem;
  top: 1rem;
  width: 90%; /* Shrink slightly on scroll */
  box-shadow: 
    0 15px 35px -10px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(242, 181, 66, 0.15) inset; /* Brand glow */
  border-color: rgba(242, 181, 66, 0.1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
  letter-spacing: -0.01em;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--primary-brand);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-gold);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta-group {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.btn-nav-login {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.btn-nav-login:hover {
  color: var(--primary-brand);
}

.btn-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-dark);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(15, 31, 35, 0.15);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  background: black;
  box-shadow: 0 8px 20px rgba(15, 31, 35, 0.25);
}

/* Mobile Nav - Stacked but Clean */
@media (max-width: 900px) {
  .navbar {
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.98);
    padding: 1.5rem;
  }
  
  .navbar.scrolled {
    width: 100%;
    top: 0;
    border-radius: 0;
  }

  .navbar-container { 
    flex-direction: column; 
    gap: 1.5rem; 
  }
  
  .nav-links { 
    gap: 1.5rem; 
    width: 100%; 
    justify-content: center; 
    flex-wrap: wrap; 
  }
  
  .nav-cta-group {
    width: 100%;
    justify-content: center;
  }
}

.nav-logo-svg {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.nav-brand:hover .nav-logo-svg {
  transform: scale(1.05);
}

/* Creative Logo Animations */
.emblem-part {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 35px 35px; /* Center of the circle roughly */
}

.nav-brand:hover .emblem-part.left {
  transform: translateX(-2px) rotate(-10deg);
}

.nav-brand:hover .emblem-part.right {
  transform: translateX(2px) rotate(10deg);
}

.emblem-j {
  transition: all 0.5s ease;
}

.nav-brand:hover .emblem-j {
  fill: var(--primary-brand);
}

/* Text Gradients */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section - Enhanced */
.hero-section {
  min-height: var(--hero-height);
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 6rem;
  /* Sophisticated mesh gradient background */
  background: 
    radial-gradient(circle at 15% 50%, rgba(242, 181, 66, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(47, 124, 123, 0.08) 0%, transparent 30%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  overflow: hidden;
}

/* Background decoration */
.hero-bg-shape {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--gradient-accent); /* Use accent gradient */
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  opacity: 0.15;
  animation: float 20s infinite ease-in-out;
}

.shape-1 { 
  top: -15%; 
  right: -10%; 
  background: var(--gradient-gold); /* Use gold gradient */
}

.shape-2 { 
  bottom: 5%; 
  left: -10%; 
  animation-delay: -10s; 
  background: var(--gradient-brand); /* Use brand gradient */
  opacity: 0.1;
}

/* --- Landing Page Specific Styles --- */

:root {
  --hero-height: 90vh;
  --section-spacing: 6rem;
}

/* Animation Utilities */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ESD360 Hero Badge - Landing Page */
.esd360-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(47, 124, 123, 0.06);
  border: 1px solid rgba(47, 124, 123, 0.15);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-brand);
  letter-spacing: 0.02em;
}

.esd360-hero-badge-text {
  letter-spacing: 0.05em;
}

.esd360-hero-badge-text strong {
  color: var(--brand-gold);
  font-weight: 800;
}

.esd360-hero-badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-gold);
}

.esd360-hero-badge-label {
  color: var(--muted-text);
  font-weight: 500;
}

/* Hero Text & Visuals */
.hero-text, .hero-visual {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 600px;
  color: var(--muted-text);
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 
    0 20px 40px -5px rgba(47, 124, 123, 0.15),
    0 10px 20px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(47, 124, 123, 0.1);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  background: white;
}

.hero-image-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 
    0 30px 60px -10px rgba(47, 124, 123, 0.2),
    0 15px 30px -10px rgba(0, 0, 0, 0.05);
}

/* Animation Keyframes */
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, 20px) rotate(5deg); }
}

/* Role Cards - Enhanced */
.role-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}

.role-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px -5px rgba(0, 0, 0, 0.05),
    0 8px 16px -4px rgba(0, 0, 0, 0.02);
  border-color: transparent;
}

.role-card:hover::before {
  opacity: 1;
}

.role-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-brand);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 16px -4px rgba(15, 61, 62, 0.2);
  transition: transform 0.3s;
}

.role-card:hover .role-icon {
  transform: scale(1.1) rotate(-3deg);
}

.role-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.role-list li {
  margin-bottom: 0.75rem;
  color: var(--muted-text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Capabilities Grid - Enhanced */
.cap-item {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  background: white;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.cap-item:hover {
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.cap-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(31, 164, 169, 0.05), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.cap-item:hover::after {
  opacity: 1;
}

.cap-icon {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
  display: inline-block;
}

.cap-item:hover .cap-icon {
  transform: scale(1.1);
  color: var(--primary-accent);
}

/* Browser Window for Preview */
.browser-window {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.5s ease;
}

.browser-window:hover {
  transform: translateY(-5px);
}

.browser-header {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot.red { background: #FF5F56; }
.browser-dot.yellow { background: #FFBD2E; }
.browser-dot.green { background: #27C93F; }

.browser-address-bar {
  flex: 1;
  margin-left: 1rem;
  background: white;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-text);
  max-width: 400px;
}

/* Timeline */
.process-timeline {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  margin: 4rem auto 0;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  background: white;
  border: 2px solid var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  background: var(--primary-dark);
  color: white;
  border-color: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(15, 31, 35, 0.1);
}

/* Compliance Section */
.compliance-section {
  background: var(--primary-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.compliance-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(47, 124, 123, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.comp-item {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.comp-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.2);
}

.comp-item h4 {
  color: white;
  margin-bottom: 0.5rem;
}

.comp-item p {
  color: rgba(255,255,255,0.7);
}

/* Partner Logos */
.partner-logo {
  font-weight: 900;
  font-size: 1.5rem;
  color: #cbd5e1;
  font-family: sans-serif;
  transition: color 0.3s;
  cursor: default;
}

.partner-logo:hover {
  color: var(--muted-text);
}

/* Call to Action Section */
.cta-section {
  background: white;
  position: relative;
}

/* Footer Improvements */
footer {
  background: #f8fafc;
  color: var(--text-main);
}

footer a:hover {
  color: var(--primary-brand) !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 900px) {
  .hero-title { font-size: 2.5rem; }
  .process-timeline { flex-direction: column; gap: 2rem; }
  .process-timeline::before { width: 2px; height: 100%; left: 24px; top: 0; }
  .process-step { text-align: left; padding-left: 4rem; }
  .step-number { position: absolute; left: 0; margin: 0; }
  
  .hero-image-wrapper {
    margin-top: 2rem;
    transform: none !important;
  }
}

/* Chat Layout Page Override */
.dashboard-layout.chat-layout-page {
  display: block;
}

.chat-layout-page .main-content {
  margin-left: 0;
  padding: 1rem;
  height: 100vh;
  overflow: hidden;
}

/* ========== Messaging UI - User Friendly ========== */
.msg-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
  padding-bottom: 0;
}

.msg-tab-btn {
  padding: 0.875rem 1.5rem;
  border: none;
  background: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--muted-text);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.msg-tab-btn:hover { color: var(--primary-accent); }

.msg-tab-btn.active {
  color: var(--primary-accent);
  border-bottom-color: var(--primary-accent);
}

.msg-conversation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  margin-bottom: 0.75rem;
  border-left: 3px solid transparent;
  background: linear-gradient(90deg, rgba(47, 124, 123, 0.03) 0%, var(--surface) 12%);
}

.msg-conversation-card:hover {
  border-color: var(--primary-accent);
  border-left-color: var(--primary-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  background: linear-gradient(90deg, rgba(47, 124, 123, 0.06) 0%, var(--surface) 12%);
}

.msg-conversation-card .msg-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.msg-conversation-card .msg-avatar.msg-avatar-group {
  background: var(--gradient-gold);
  color: var(--primary-dark);
}

.msg-conversation-card .msg-info {
  flex: 1;
  min-width: 0;
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.msg-conversation-card .msg-name {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1rem;
  line-height: 1.3;
}

.msg-conversation-card .msg-email,
.msg-conversation-card .msg-meta {
  font-size: 0.8rem;
  color: var(--muted-text);
  line-height: 1.3;
  word-break: break-word;
}

.msg-conversation-card .msg-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--primary-accent);
  font-weight: 500;
}

.msg-conversation-card .msg-action svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.msg-conversation-select {
  cursor: pointer;
}

.msg-conversation-select.active {
  border-left-color: var(--primary-accent);
  background: linear-gradient(90deg, rgba(47, 124, 123, 0.08) 0%, var(--surface) 12%);
}

@media (max-width: 768px) {
  .msg-split-layout {
    grid-template-columns: 1fr !important;
  }
  .msg-chat-panel {
    min-height: 350px;
  }
}

.msg-empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(180deg, #f8fafc 0%, var(--surface) 100%);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-color);
}

.msg-empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--border-color);
  margin-bottom: 1rem;
}

.msg-empty-state p {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--muted-text);
}

.msg-empty-state p:first-of-type {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

/* Private / Group Chat Page */
.msg-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.msg-page-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.msg-page-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

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

.msg-chat-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.msg-chat-messages {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fafc;
  flex: 1;
}

.message-bubble {
  max-width: 75%;
  padding: 0.875rem 1.125rem;
  border-radius: 1.125rem;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.message-received {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 0.25rem;
  color: var(--text-main);
}

.message-sent {
  align-self: flex-end;
  background: var(--primary-brand);
  color: white;
  border: none;
  border-bottom-right-radius: 0.25rem;
}

.chat-group-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 31, 35, 0.08);
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}

.message-sent .chat-group-tag { display: none; }

.message-time {
  font-size: 0.7rem;
  margin-top: 0.35rem;
  opacity: 0.9;
  color: inherit;
}

.message-sent .message-time { opacity: 0.9; color: rgba(255,255,255,0.9); }

.msg-chat-input-area {
  padding: 1rem 1.25rem;
  background: white;
  border-radius: var(--radius-lg);
  margin: 0 1rem 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.msg-chat-input-area form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex: 1;
  width: 100%;
}

.msg-chat-input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
  max-height: 120px;
  outline: none;
  transition: var(--transition);
  background: white;
}

.msg-chat-input::placeholder {
  color: var(--muted-text);
}

.msg-chat-input:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(47, 167, 161, 0.15);
}

.msg-send-btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  background: var(--primary-brand);
  color: white;
  border: none;
}

.msg-send-btn:hover {
  background: var(--primary-accent);
  color: white;
}

@media (max-width: 640px) {
  .chat-layout[style*="grid-template-columns: 220px 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* BEE upload cards - interactive hover */
.bee-upload-card:hover {
  border-color: var(--primary-accent) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.bee-upload-card:active {
  transform: translateY(0);
}
@media (max-width: 600px) {
  .bee-upload-options {
    grid-template-columns: 1fr !important;
  }
}
