/* Header Styles */
.header {
  background: var(--hero-blauw);
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

.header-content {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Centered navigation bar for tabs (inside shell) */
.header-nav-bar {
  background: var(--hero-blauw);
  padding: var(--spacing-sm) var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo {
  display: flex;
  align-items: center;
}

.logo-container {
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}

.logo-image {
  height: 56px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-fast);
  margin: -10px -16px;
}

.header-logo:hover .logo-image {
  opacity: 0.9;
}

.header-nav {
  display: flex;
  align-items: center;
}

/* Tab Navigation */
.header-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px;
  border-radius: 25px;
}

.header-tab {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border-radius: 20px;
  transition: all var(--transition-fast);
  height: 40px;
  min-width: 120px;
  justify-content: center;
}

.header-tab:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.header-tab.active {
  background: var(--hero-oranje);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(244, 96, 21, 0.4);
}

.header-tab:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.header-tab:focus.active {
  box-shadow: 0 3px 12px rgba(244, 96, 21, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.tab-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* User Info & Logout */
.user-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hero-oranje);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-initial {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
}

.user-email {
  font-size: var(--font-size-xs);
  color: var(--white);
  font-weight: 400;
  opacity: 0.95;
}

.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--font-size-xs);
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-lg);
  border-radius: var(--radius-md);
  background: transparent;
  border: 2px solid var(--hero-blauw-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  height: 38px;
}

.logout-button:hover {
  background: var(--hero-blauw-light);
  border-color: var(--hero-blauw-light);
  color: var(--white);
}

@media (max-width: 768px) {
  .header-content {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .header-nav-bar {
    padding: var(--spacing-xs) var(--spacing-md);
  }
  
  .user-email {
    display: none;
  }
  
  .user-info {
    gap: var(--spacing-sm);
  }
  
  .logout-button {
    padding: var(--spacing-xs) var(--spacing-md);
  }
  
  .header-tab span {
    display: none;
  }
  
  .header-tab {
    padding: 10px;
    width: 44px;
    min-width: 44px;
    justify-content: center;
  }
  
  .header-tabs {
    gap: 2px;
    padding: 4px;
  }
}

@media (max-width: 480px) {
  .logo-image {
    height: 26px;
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
  }
  
  .avatar-initial {
    font-size: 14px;
  }
  
  .logout-button {
    height: 32px;
    font-size: 13px;
  }
}
/* ===================================
   Settings Panel - Modern UX Design
   =================================== */

.settings-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  animation: slideInLeft 0.4s var(--transition-spring);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Header - Clean white with subtle border */
.sp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px var(--spacing-md);
  border-bottom: 1px solid var(--glass-border);
  background: var(--white);
  flex-shrink: 0;
  min-height: 48px;
}

.sp-header-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--hero-blauw);
  line-height: 1.2;
}

.sp-subtitle {
  display: none;
}

/* Content Area */
.sp-content {
  flex: 0 0 auto;
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Scrollbar styling */
.sp-content::-webkit-scrollbar {
  width: 4px;
}

.sp-content::-webkit-scrollbar-track {
  background: transparent;
}

.sp-content::-webkit-scrollbar-thumb {
  background: var(--hero-grijs-light);
  border-radius: 2px;
}

.sp-content::-webkit-scrollbar-thumb:hover {
  background: var(--hero-grijs-regular);
}

/* Section Styles */
.sp-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid var(--glass-border-light);
  box-shadow: var(--shadow-xs);
}

.sp-section:hover {
  background: var(--gradient-card);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.sp-section-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px var(--spacing-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.sp-section-header:not(.static):hover {
  background: rgba(7, 56, 137, 0.03);
}

.sp-section-header.static {
  cursor: default;
  padding-bottom: var(--spacing-xs);
}

.sp-section-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  transition: all var(--transition-normal);
}

.sp-section-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.sp-section-icon.difficulty-icon {
  background: linear-gradient(135deg, rgba(244, 96, 21, 0.1) 0%, rgba(244, 96, 21, 0.15) 100%);
  color: var(--hero-oranje);
}

.sp-section-header:hover .sp-section-icon.difficulty-icon {
  background: linear-gradient(135deg, rgba(244, 96, 21, 0.15) 0%, rgba(244, 96, 21, 0.2) 100%);
  transform: scale(1.05);
}

.sp-section-icon.instructions-icon {
  background: linear-gradient(135deg, rgba(7, 56, 137, 0.08) 0%, rgba(7, 56, 137, 0.12) 100%);
  color: var(--hero-blauw);
}

.sp-section-header:hover .sp-section-icon.instructions-icon {
  background: linear-gradient(135deg, rgba(7, 56, 137, 0.12) 0%, rgba(7, 56, 137, 0.16) 100%);
  transform: scale(1.05);
}

.sp-section-icon.instructions-icon.has-content {
  background: linear-gradient(135deg, var(--hero-groen) 0%, #2da03a 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(56, 189, 71, 0.3);
}

.sp-section-icon.language-icon {
  background: linear-gradient(135deg, rgba(79, 82, 89, 0.08) 0%, rgba(79, 82, 89, 0.12) 100%);
  color: var(--hero-grijs-bold);
  width: 28px;
  height: 28px;
}

.sp-section-icon.language-icon svg {
  width: 14px;
  height: 14px;
}

.sp-section-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sp-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--hero-grijs-regular);
  letter-spacing: 0;
}

.sp-section-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--hero-blauw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-chevron {
  width: 20px;
  height: 20px;
  color: var(--hero-grijs-light);
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
}

.sp-section-header.active .sp-chevron {
  transform: rotate(180deg);
  color: var(--hero-blauw);
}

/* Section Content */
.sp-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.sp-section-content.expanded {
  max-height: 500px;
  padding: 0 var(--spacing-md) var(--spacing-md);
}

.sp-section-desc {
  font-size: 12px;
  color: var(--hero-grijs-bold);
  margin-bottom: var(--spacing-sm);
  font-style: italic;
  padding-left: 2px;
}

/* Difficulty Selector */
.difficulty-selector {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  padding: 0;
}

.difficulty-track-bg {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: var(--hero-grijs-thin);
  border-radius: 2px;
  z-index: 0;
}

.difficulty-track-fill {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: linear-gradient(90deg, var(--hero-blauw) 0%, var(--hero-oranje) 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
  z-index: 0;
  width: 0;
}

.difficulty-track-fill[data-level="2"] {
  width: calc(25% - 7px);
}

.difficulty-track-fill[data-level="3"] {
  width: calc(50% - 14px);
}

.difficulty-track-fill[data-level="4"] {
  width: calc(75% - 21px);
}

.difficulty-track-fill[data-level="5"] {
  width: calc(100% - 28px);
}

.difficulty-option {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--hero-grijs-light);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.difficulty-option:hover {
  border-color: var(--hero-blauw-medium);
  transform: scale(1.15);
}

.difficulty-option.passed {
  border-color: var(--hero-blauw);
  background: var(--hero-blauw);
}

.difficulty-option.selected {
  border-color: var(--hero-oranje);
  background: var(--hero-oranje);
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(244, 96, 21, 0.2);
}

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

.difficulty-option-dot svg {
  width: 14px;
  height: 14px;
  color: white;
}

.difficulty-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-xs);
  font-size: 11px;
  color: var(--hero-grijs-regular);
  font-weight: 500;
}

/* Random Toggle */
.random-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 10px var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  background: var(--white);
  border: 2px dashed var(--hero-grijs-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.random-toggle:hover {
  border-color: var(--hero-blauw);
  background: var(--hero-blauw-hairline);
}

.random-toggle.active {
  border-style: solid;
  border-color: var(--hero-blauw);
  background: linear-gradient(135deg, var(--hero-blauw) 0%, var(--hero-blauw-bold) 100%);
  color: white;
}

.random-toggle-icon {
  font-size: 18px;
  line-height: 1;
}

.random-toggle-text {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--hero-grijs-bold);
  text-align: left;
}

.random-toggle.active .random-toggle-text {
  color: white;
}

.random-toggle-check {
  width: 18px;
  height: 18px;
  color: white;
}

/* Disabled state for difficulty selector when random is active */
.difficulty-selector.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.difficulty-selector.disabled .difficulty-option {
  cursor: not-allowed;
}

/* Scenario Pills */
.sp-section-icon.scenario-icon {
  background: linear-gradient(135deg, rgba(7, 56, 137, 0.08) 0%, rgba(7, 56, 137, 0.12) 100%);
  color: var(--hero-blauw);
}

.sp-section-header:hover .sp-section-icon.scenario-icon {
  background: linear-gradient(135deg, rgba(7, 56, 137, 0.12) 0%, rgba(7, 56, 137, 0.16) 100%);
  transform: scale(1.05);
}

.scenario-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.scenario-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-spring);
  font-family: inherit;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

.scenario-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.scenario-pill:hover {
  border-color: var(--pill-color, var(--hero-blauw));
  background: color-mix(in srgb, var(--pill-color, var(--hero-blauw)) 6%, white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm), 0 4px 12px color-mix(in srgb, var(--pill-color, var(--hero-blauw)) 15%, transparent);
}

.scenario-pill:hover::before {
  opacity: 1;
}

.scenario-pill.active {
  background: linear-gradient(135deg, var(--pill-color, var(--hero-blauw)) 0%, color-mix(in srgb, var(--pill-color, var(--hero-blauw)) 80%, black) 100%);
  border-color: transparent;
  box-shadow: var(--shadow-md), 0 4px 16px color-mix(in srgb, var(--pill-color, var(--hero-blauw)) 35%, transparent);
  transform: translateY(-1px);
}

.scenario-pill.active::before {
  opacity: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.pill-emoji {
  font-size: 18px;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.scenario-pill:hover .pill-emoji {
  transform: scale(1.1);
}

.pill-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--hero-grijs-black);
  transition: color var(--transition-fast);
}

.scenario-pill:hover .pill-name {
  color: var(--pill-color, var(--hero-blauw));
}

.scenario-pill.active .pill-name {
  color: white;
  font-weight: 700;
}

.scenario-detail {
  margin-top: 12px;
  text-align: center;
}

.detail-desc {
  font-size: 12px;
  color: var(--hero-grijs-bold);
  font-style: italic;
}

/* Textarea */
.sp-textarea {
  width: 100%;
  min-height: 100px;
  padding: var(--spacing-sm);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--hero-grijs-black);
  background: var(--white);
  border: 2px solid var(--hero-grijs-thin);
  border-radius: var(--radius-sm);
  resize: none;
  transition: all 0.2s ease;
}

.sp-textarea:hover {
  border-color: var(--hero-grijs-light);
}

.sp-textarea:focus {
  outline: none;
  border-color: var(--hero-blauw);
  box-shadow: 0 0 0 3px rgba(11, 67, 124, 0.1);
}

.sp-textarea::placeholder {
  color: var(--hero-grijs-light);
}

/* Compact Section (Language) */
.sp-section-compact {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

.sp-section-compact:hover {
  background: transparent;
}

.sp-section-compact .sp-section-header {
  padding: 4px var(--spacing-sm);
}

.sp-section-compact .sp-section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--hero-grijs-black);
  text-transform: none;
  letter-spacing: 0;
}

.sp-language-buttons {
  display: flex;
  gap: var(--spacing-xs);
  padding: 0 var(--spacing-sm);
  margin-bottom: 4px;
}

.sp-lang-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px var(--spacing-sm);
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-spring);
  color: var(--hero-grijs-black);
  box-shadow: var(--shadow-xs);
}

.sp-lang-btn:hover {
  border-color: var(--hero-blauw-thin);
  background: var(--hero-blauw-hairline);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.sp-lang-btn.selected {
  border-color: var(--hero-blauw);
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-sm), 0 2px 8px rgba(7, 56, 137, 0.25);
}

.sp-lang-flag {
  font-size: 16px;
  line-height: 1;
}

.sp-lang-label {
  font-size: 12px;
  font-weight: 700;
  color: inherit;
}

/* Actions */
.sp-actions {
  padding: var(--spacing-sm);
  padding-top: 6px;
  margin-top: auto;
}

.sp-start-btn,
.sp-stop-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.sp-start-btn {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-md), 0 4px 16px rgba(244, 96, 21, 0.3);
  animation: pulseReady 2s ease-in-out infinite;
}

@keyframes pulseReady {
  0%, 100% {
    box-shadow: var(--shadow-md), 0 4px 16px rgba(244, 96, 21, 0.3);
  }
  50% {
    box-shadow: var(--shadow-lg), 0 6px 24px rgba(244, 96, 21, 0.45);
  }
}

.sp-start-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.sp-start-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 8px 24px rgba(244, 96, 21, 0.4);
  filter: brightness(1.05);
  animation: none;
}

.sp-start-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
}

.sp-start-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  animation: none;
  filter: grayscale(0.2);
}

.sp-play-icon {
  width: 22px;
  height: 22px;
  transition: transform var(--transition-fast);
}

.sp-start-btn:hover:not(:disabled) .sp-play-icon {
  transform: scale(1.1);
}

.sp-stop-btn {
  background: var(--white);
  border: 2px solid var(--hero-rood);
  color: var(--hero-rood);
  box-shadow: var(--shadow-sm);
}

.sp-stop-btn:hover {
  background: var(--hero-rood);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 4px 12px rgba(183, 21, 37, 0.25);
}

.sp-stop-btn:active {
  transform: translateY(0);
}

.sp-stop-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.sp-stop-btn:hover .sp-stop-icon {
  transform: scale(1.1);
}

.sp-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Feedback */
.sp-feedback {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  margin-top: var(--spacing-sm);
  font-size: 12px;
  font-weight: 600;
}

.sp-feedback svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sp-feedback-success {
  background: rgba(56, 189, 71, 0.1);
  color: var(--hero-groen);
  border: 1px solid rgba(56, 189, 71, 0.3);
}

.sp-feedback-error {
  background: rgba(183, 21, 37, 0.1);
  color: var(--hero-rood);
  border: 1px solid rgba(183, 21, 37, 0.3);
}

/* Status Bar - Clean minimal style */
.sp-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  padding: 10px var(--spacing-md);
  background: var(--white);
  border-top: 1px solid var(--glass-border);
}

.sp-status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hero-grijs-bold);
  padding: 4px 8px;
  background: var(--hero-grijs-hairline);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.sp-status-item:hover {
  background: var(--hero-blauw-hairline);
  color: var(--hero-blauw);
}

.sp-status-icon {
  font-size: 14px;
  line-height: 1;
}

.sp-status-divider {
  width: 1px;
  height: 16px;
  background: var(--glass-border);
}

/* ===================================
   Level Mode Styles
   =================================== */

/* Level Mode Toggle */
.level-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--spacing-md);
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: 6px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.level-mode-toggle:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--hero-blauw-thin);
}

.level-mode-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.level-mode-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.level-mode-toggle:hover .level-mode-icon {
  transform: scale(1.05);
}

.level-mode-icon svg {
  width: 18px;
  height: 18px;
}

.level-mode-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.level-mode-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--hero-grijs-regular);
}

.level-mode-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--hero-blauw);
}

/* Toggle Switch */
.level-mode-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.level-mode-switch.loading {
  opacity: 0.6;
  pointer-events: none;
}

.switch-track {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--hero-grijs-light);
  border-radius: 14px;
  transition: background 0.3s ease;
}

.level-mode-switch.active .switch-track {
  background: linear-gradient(135deg, var(--hero-groen) 0%, #2da03a 100%);
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.level-mode-switch.active .switch-thumb {
  transform: translateX(24px);
}

/* Level Mode Description */
.level-mode-description {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--hero-grijs-hairline);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-sm);
}

.level-mode-desc-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--hero-blauw);
}

.level-mode-desc-icon svg {
  width: 100%;
  height: 100%;
}

.level-mode-description span:last-child {
  font-size: 11px;
  color: var(--hero-grijs-bold);
  line-height: 1.4;
}

/* Level Progress Grid */
.level-progress-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: var(--spacing-sm);
}

.level-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-xs) 4px;
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-spring);
  font-family: inherit;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

.level-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, transparent 50%);
  pointer-events: none;
}

.level-card:hover:not(.locked) {
  border-color: var(--hero-blauw-thin);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-sm);
}

.level-card.selected {
  border-color: var(--hero-oranje);
  background: linear-gradient(180deg, rgba(244, 96, 21, 0.08) 0%, rgba(244, 96, 21, 0.04) 100%);
  box-shadow: var(--shadow-sm), 0 0 0 2px rgba(244, 96, 21, 0.15);
}

.level-card.current:not(.selected) {
  border-color: var(--hero-blauw);
  background: linear-gradient(180deg, rgba(7, 56, 137, 0.06) 0%, rgba(7, 56, 137, 0.02) 100%);
}

.level-card.completed {
  border-color: var(--hero-groen);
  background: linear-gradient(180deg, rgba(56, 189, 71, 0.08) 0%, rgba(56, 189, 71, 0.03) 100%);
}

.level-card.locked {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--hero-grijs-hairline);
  filter: grayscale(0.3);
}

.level-card-header {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  justify-content: center;
  position: relative;
}

.level-card-icon {
  font-size: 16px;
  line-height: 1;
}

.level-card-number {
  font-size: 9px;
  font-weight: 600;
  color: var(--hero-grijs-regular);
  display: none;
}

.level-card-lock {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: var(--hero-grijs-regular);
}

.level-card-lock svg {
  width: 100%;
  height: 100%;
}

.level-card-check {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: var(--hero-groen);
}

.level-card-check svg {
  width: 100%;
  height: 100%;
}

.level-card-name {
  font-size: 9px;
  font-weight: 700;
  color: var(--hero-grijs-black);
  margin-top: 2px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.level-card.locked .level-card-name {
  color: var(--hero-grijs-regular);
}

.level-card-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
}

.progress-dots {
  display: flex;
  gap: 3px;
}

.progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hero-grijs-thin);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-inset);
}

.progress-dot.completed {
  background: var(--hero-groen);
  box-shadow: 0 0 4px rgba(56, 189, 71, 0.4);
}

.level-card.locked .progress-dot {
  background: var(--hero-grijs-light);
  box-shadow: none;
}

.progress-text {
  font-size: 8px;
  font-weight: 600;
  color: var(--hero-grijs-regular);
}

/* Scenario Pill Completed State */
.scenario-pill.completed {
  position: relative;
}

.scenario-pill.completed::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  background: var(--hero-groen);
  border-radius: 50%;
  border: 2px solid white;
}

.pill-check {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  background: var(--hero-groen);
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-check svg {
  width: 8px;
  height: 8px;
  color: white;
}

.scenario-pill.completed::after {
  display: none;
}

/* Scenario Level Hint */
.scenario-level-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--hero-blauw);
  background: var(--hero-blauw-hairline);
  padding: 4px 10px;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .settings-panel {
    border-radius: var(--radius-lg);
  }
  
  .sp-header {
    padding: var(--spacing-md);
  }
  
  .sp-title {
    font-size: 18px;
  }
  
  .level-progress-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
  
  .level-card {
    padding: 6px 4px;
  }
  
  .level-card-icon {
    font-size: 14px;
  }
  
  .level-card-name {
    font-size: 8px;
  }
}
/* Tavus Embed Styles - Full width for Teams conversations */
.tavus-embed {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  animation: fadeInScale var(--transition-slow) ease;
  animation-delay: 100ms;
  animation-fill-mode: both;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Header - Matches SettingsPanel styling for consistency */
.embed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px var(--spacing-md);
  border-bottom: 1px solid var(--glass-border);
  background: var(--white);
  flex-shrink: 0;
  min-height: 48px;
}

.embed-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--hero-blauw);
  margin: 0;
  line-height: 1.2;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xs);
}

.status-badge.inactive {
  background: var(--white);
  color: var(--hero-grijs-bold);
  border: 1px solid var(--glass-border);
}

.status-badge.active {
  background: linear-gradient(135deg, rgba(56, 189, 71, 0.12) 0%, rgba(56, 189, 71, 0.08) 100%);
  color: var(--hero-groen);
  border: 1px solid rgba(56, 189, 71, 0.25);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.active .status-dot {
  animation: pulse 2s infinite;
  background: var(--hero-groen);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.3);
  }
}

.embed-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  background: linear-gradient(180deg, var(--white) 0%, var(--hero-grijs-hairline) 100%);
  min-height: 0;
}

.tavus-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.embed-placeholder,
.embed-active-placeholder {
  text-align: center;
  max-width: 450px;
  padding: var(--spacing-xl);
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  color: var(--hero-blauw-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  border: 2px dashed var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.placeholder-icon svg {
  width: 40px;
  height: 40px;
  transition: transform var(--transition-normal);
}

.embed-placeholder:hover .placeholder-icon {
  border-color: var(--hero-blauw-thin);
  box-shadow: var(--shadow-md);
}

.embed-placeholder:hover .placeholder-icon svg {
  transform: scale(1.1);
}

.active-icon {
  color: var(--hero-oranje);
  background: linear-gradient(135deg, rgba(244, 96, 21, 0.1) 0%, rgba(244, 96, 21, 0.05) 100%);
  border-color: var(--hero-oranje-light);
  border-style: solid;
  animation: rotateGlow 8s linear infinite;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
    box-shadow: var(--shadow-sm), 0 0 20px rgba(244, 96, 21, 0.15);
  }
  50% {
    box-shadow: var(--shadow-md), 0 0 30px rgba(244, 96, 21, 0.25);
  }
  100% {
    transform: rotate(360deg);
    box-shadow: var(--shadow-sm), 0 0 20px rgba(244, 96, 21, 0.15);
  }
}

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

.placeholder-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--hero-blauw);
  margin-bottom: var(--spacing-xs);
}

.placeholder-description {
  color: var(--hero-grijs-bold);
  font-size: var(--font-size-xs);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.placeholder-description strong {
  color: var(--hero-oranje);
  font-weight: 700;
}

.placeholder-description code {
  background: var(--hero-blauw-hairline);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--hero-blauw);
}

.placeholder-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xs);
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hero-grijs-bold);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.feature:hover {
  background: var(--hero-grijs-hairline);
}

.feature svg {
  color: var(--hero-groen);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 2px;
  background: rgba(56, 189, 71, 0.1);
  border-radius: var(--radius-sm);
}

.session-config {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-top: var(--spacing-lg);
  border: 1px solid var(--hero-grijs-thin);
}

.config-item {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--hero-grijs-hairline);
}

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

.config-label {
  font-size: var(--font-size-xs);
  color: var(--hero-grijs-regular);
}

.config-value {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--hero-blauw);
  text-transform: none;
}




/* Analyse Page Styles */
.analyse-page {
  height: 100%;
  overflow-y: auto;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Loading & Error States */
.analyse-loading,
.analyse-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  height: 100%;
  color: var(--hero-grijs-regular);
}

.analyse-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--hero-grijs-thin);
  border-top-color: var(--hero-oranje);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.analyse-error svg {
  width: 48px;
  height: 48px;
  color: var(--hero-rood);
}

.analyse-error p {
  font-size: var(--font-size-sm);
  color: var(--hero-rood);
}

/* Header */
.analyse-header {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.analyse-header-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.embed-tabs {
  display: flex;
  gap: 4px;
  background: var(--hero-grijs-thin);
  padding: 4px;
  border-radius: 20px;
}

.embed-tab {
  padding: 6px 16px;
  border: none;
  background: transparent;
  color: var(--hero-grijs-bold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border-radius: 16px;
  transition: all var(--transition-fast);
}

.embed-tab:hover {
  color: var(--hero-blauw);
  background: rgba(255, 255, 255, 0.5);
}

.embed-tab.active {
  background: var(--hero-oranje);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(244, 96, 21, 0.3);
}

.analyse-title {
  font-size: var(--font-size-lg);
  color: var(--hero-blauw);
  margin: 0;
}

.analyse-subtitle {
  color: var(--hero-grijs-regular);
  font-size: var(--font-size-xs);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  transition: all var(--transition-fast);
}

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

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

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-icon.sessions {
  background: rgba(11, 67, 124, 0.1);
  color: var(--hero-blauw);
}

.stat-icon.stars {
  background: rgba(255, 189, 13, 0.15);
  color: var(--hero-geel);
}

.stat-icon.success {
  background: rgba(56, 189, 71, 0.1);
  color: var(--hero-groen);
}

.stat-icon.passed {
  background: rgba(244, 96, 21, 0.1);
  color: var(--hero-oranje);
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--hero-grijs-black);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--hero-grijs-regular);
  margin-top: 4px;
}

.stat-stars {
  display: flex;
  gap: 2px;
}

.stat-stars .star {
  font-size: 14px;
  color: var(--hero-grijs-thin);
}

.stat-stars .star.filled {
  color: var(--hero-geel);
}

.stat-progress {
  margin-top: auto;
}

.progress-bar {
  height: 6px;
  background: var(--hero-grijs-hairline);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hero-groen), #4ade80);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Filter Bar */
.filter-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--hero-grijs-regular);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  height: 38px;
  padding: 0 var(--spacing-md);
  padding-right: var(--spacing-xl);
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  color: var(--hero-grijs-black);
  background: var(--hero-grijs-hairline);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234f5259' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-select:hover {
  background-color: var(--hero-grijs-thin);
}

.filter-select:focus {
  outline: none;
  border-color: var(--hero-blauw);
  background-color: var(--white);
}

/* Sessions List */
.sessions-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.no-sessions {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xxl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--hero-grijs-regular);
}

.no-sessions svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.no-sessions p {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--hero-grijs-bold);
}

.no-sessions span {
  font-size: var(--font-size-xs);
}

/* Session Card */
.session-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-fast);
}

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

.session-card.expanded {
  box-shadow: var(--shadow-lg);
}

.session-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: var(--spacing-md);
}

.session-main {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex: 1;
  flex-wrap: wrap;
}

.session-scenario {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: color-mix(in srgb, var(--scenario-color) 15%, transparent);
  border-radius: var(--radius-md);
  min-width: 120px;
}

.scenario-icon {
  font-size: 18px;
}

.scenario-name {
  font-weight: 600;
  font-size: var(--font-size-xs);
  color: var(--hero-grijs-black);
}

.session-level {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--hero-grijs-bold);
  font-size: var(--font-size-xs);
}

.level-icon {
  font-size: 16px;
}

.session-stars {
  display: flex;
  gap: 2px;
}

.session-stars .star {
  font-size: 16px;
  color: var(--hero-grijs-thin);
  transition: color var(--transition-fast);
}

.session-stars .star.filled {
  color: var(--hero-geel);
}

.session-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
}

.session-badge svg {
  width: 14px;
  height: 14px;
}

.session-badge.passed {
  background: rgba(56, 189, 71, 0.1);
  color: var(--hero-groen);
}

.session-badge.failed {
  background: rgba(183, 21, 37, 0.1);
  color: var(--hero-rood);
}

.session-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.session-date {
  font-size: 13px;
  color: var(--hero-grijs-regular);
}

.chevron-icon {
  width: 20px;
  height: 20px;
  color: var(--hero-grijs-light);
  transition: transform var(--transition-fast);
}

.session-card.expanded .chevron-icon {
  transform: rotate(180deg);
}

/* Session Details */
.session-details {
  padding: 0 var(--spacing-md) var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  border-top: 1px solid var(--hero-grijs-hairline);
  padding-top: var(--spacing-md);
  animation: fadeIn var(--transition-fast) ease;
}

.detail-section {
  background: var(--hero-grijs-hairline);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
}

.detail-section.positive {
  background: rgba(56, 189, 71, 0.08);
  border-left: 3px solid var(--hero-groen);
}

.detail-section.critical {
  background: rgba(255, 189, 13, 0.1);
  border-left: 3px solid var(--hero-geel);
}

.detail-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--hero-blauw);
  margin-bottom: var(--spacing-sm);
}

.detail-title svg {
  width: 18px;
  height: 18px;
}

.detail-section.positive .detail-title {
  color: var(--hero-groen);
}

.detail-section.critical .detail-title {
  color: var(--hero-oranje-bold);
}

.detail-text {
  font-size: var(--font-size-xs);
  color: var(--hero-grijs-bold);
  line-height: 1.6;
}

.leerpunten-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.leerpunten-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
  font-size: var(--font-size-xs);
  color: var(--hero-grijs-bold);
  line-height: 1.5;
}

.leerpunten-list li::before {
  content: '💡';
  flex-shrink: 0;
}

/* Conversation Link */
.conversation-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--hero-blauw);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  width: fit-content;
}

.conversation-link:hover {
  background: var(--hero-blauw-bold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.conversation-link svg {
  width: 18px;
  height: 18px;
}

.conversation-link .external-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .analyse-page {
    padding: var(--spacing-md);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-group {
    min-width: 100%;
  }

  .session-main {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .session-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .session-meta {
    width: 100%;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--hero-grijs-hairline);
  }
}

@media (max-width: 480px) {
  .stat-card {
    padding: var(--spacing-sm);
  }

  .stat-value {
    font-size: 24px;
  }

  .session-scenario {
    min-width: auto;
  }
}

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

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


.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b437c 0%, #073058 50%, #03153f 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(244, 96, 21, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.login-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  padding: 48px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-header {
  margin-bottom: 32px;
}

.login-logo {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 28px auto;
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  color: #0b437c;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 16px;
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
}

.login-content {
  /* No margin needed - button is the last element */
}

.login-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #0b437c 0%, #073058 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(11, 67, 124, 0.3);
}

.login-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #f46015 0%, #c65b00 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 96, 21, 0.4);
}

.login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.microsoft-icon {
  width: 20px;
  height: 20px;
}

.login-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.login-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 8px;
  font-size: 14px;
}

.login-footer {
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
}

.login-footer p {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
}

/* Removed decorative bar at bottom of card */

@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px;
  }
  
  .login-title {
    font-size: 24px;
  }
  
  .login-subtitle {
    font-size: 14px;
  }
}
/* App Layout - Full viewport, no scroll */
.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--gradient-surface);
}

.main-content {
  flex: 1;
  padding: var(--spacing-md);
  width: 100%;
  min-height: 0; /* Important for flex children */
}

.content-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: var(--spacing-lg);
  animation: fadeInUp var(--transition-slow) ease;
  height: 100%;
}

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

@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .main-content {
    padding: var(--spacing-sm);
  }
}

/* Footer - Compact */
.footer {
  background: var(--hero-blauw);
  padding: var(--spacing-xs) var(--spacing-xl);
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--white);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--hero-oranje-light);
  transform: translateY(-1px);
}

.link-icon {
  font-size: 14px;
}

.footer-divider {
  color: var(--hero-blauw-medium);
  font-weight: 300;
}

/* Loading State */
.loading-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--gradient-surface);
}

.loading-container p {
  color: var(--hero-grijs-bold);
  font-size: 15px;
  margin: 0;
  font-weight: 500;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--hero-grijs-thin);
  border-top-color: var(--hero-oranje);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: var(--shadow-sm);
}

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

/* Shared Navigation Bar */
.shared-nav-bar {
  background: var(--white);
  padding: 12px var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: calc(-1 * var(--spacing-md));
  margin-bottom: var(--spacing-sm);
  flex-shrink: 0;
  border-bottom: 1px solid var(--glass-border);
}

.shared-nav-tabs {
  display: flex;
  gap: 6px;
  background: var(--hero-grijs-hairline);
  padding: 5px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-inset);
}

.shared-nav-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 26px;
  border: none;
  background: transparent;
  color: var(--hero-grijs-bold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-spring);
  min-width: 120px;
  position: relative;
}

.shared-nav-tab:hover {
  color: var(--hero-blauw);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.shared-nav-tab.active {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-sm), 0 2px 8px rgba(244, 96, 21, 0.25);
}

.shared-nav-tab:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--hero-blauw-soft);
}

.shared-nav-tab:focus.active {
  box-shadow: var(--shadow-sm), 0 2px 8px rgba(244, 96, 21, 0.25), 0 0 0 2px var(--hero-blauw-soft);
}

.nav-tab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .shared-nav-bar {
    padding: 6px var(--spacing-md);
  }
  
  .shared-nav-tab {
    padding: 8px 12px;
    min-width: auto;
  }
  
  .shared-nav-tab span {
    display: none;
  }
  
  .shared-nav-tab {
    min-width: 40px;
  }
}

/* Hero Huisstijl CSS Variables */
/* Officieel Hero Interim Professionals Kleurenpalet */
:root {
  /* === PRIMAIRE KLEUREN === */
  --hero-blauw: #073889;           /* PMS 295 - Hoofdmerk kleur */
  --hero-oranje: #f46015;          /* PMS 1665 - Accent kleur */
  
  /* === BLAUW TINTEN === */
  --hero-blauw-black: #03153f;
  --hero-blauw-bold: #0065cc;
  --hero-blauw-medium: #4197cb;
  --hero-blauw-light: #00a8f5;
  --hero-blauw-thin: #9ecae2;
  --hero-blauw-soft: #d3e6f0;
  --hero-blauw-hairline: #e9f3f8;
  
  /* === ORANJE TINTEN === */
  --hero-oranje-black: #4c1b00;
  --hero-oranje-bold: #944100;
  --hero-oranje-medium: #c85800;
  --hero-oranje-light: #f79c44;
  --hero-oranje-thin: #fde1b6;
  
  /* === GRIJS TINTEN === */
  --hero-grijs-black: #242629;
  --hero-grijs-bold: #4f5259;
  --hero-grijs-regular: #9496a1;
  --hero-grijs-light: #b8c2c7;
  --hero-grijs-thin: #dfe3e5;
  --hero-grijs-hairline: #f5f5f9;
  --white: #ffffff;
  
  /* === FUNCTIONELE KLEUREN === */
  --hero-groen: #38bd47;
  --hero-groen-black: #002b0d;
  --hero-groen-bold: #006621;
  --hero-groen-light: #91d98c;
  --hero-groen-thin: #d7ead7;
  --hero-geel: #ffca05;
  --hero-rood: #b71525;
  
  /* Font Families */
  --font-heading: 'Exo', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 14px;
  --font-size-sm: 16px;
  --font-size-md: 22px;
  --font-size-lg: 26px;
  
  /* Button Sizes */
  --button-small: 32px;
  --button-medium: 40px;
  --button-large: 48px;
  --button-xl: 56px;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows - Refined for modern look */
  --shadow-xs: 0 1px 2px rgba(7, 56, 137, 0.04);
  --shadow-sm: 0 2px 4px rgba(7, 56, 137, 0.06);
  --shadow-md: 0 4px 12px rgba(7, 56, 137, 0.08);
  --shadow-lg: 0 8px 24px rgba(7, 56, 137, 0.12);
  --shadow-xl: 0 12px 32px rgba(7, 56, 137, 0.16);
  
  /* Inset shadows for depth */
  --shadow-inset: inset 0 1px 2px rgba(7, 56, 137, 0.06);
  --shadow-inset-lg: inset 0 2px 4px rgba(7, 56, 137, 0.08);
  
  /* Glass morphism effects */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-bg-light: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(7, 56, 137, 0.08);
  --glass-border-light: rgba(7, 56, 137, 0.05);
  --backdrop-blur: blur(12px);
  --backdrop-blur-sm: blur(8px);
  
  /* Gradient presets */
  --gradient-primary: linear-gradient(135deg, var(--hero-blauw) 0%, var(--hero-blauw-bold) 100%);
  --gradient-accent: linear-gradient(135deg, var(--hero-oranje) 0%, var(--hero-oranje-medium) 100%);
  --gradient-surface: linear-gradient(180deg, var(--white) 0%, var(--hero-grijs-hairline) 100%);
  --gradient-card: linear-gradient(135deg, var(--white) 0%, rgba(233, 243, 248, 0.5) 100%);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body, #root {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--hero-grijs-black);
  background: linear-gradient(135deg, var(--hero-blauw-hairline) 0%, var(--hero-blauw-soft) 100%);
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--hero-blauw);
  line-height: 1.2;
}

a {
  color: var(--hero-blauw-bold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--hero-oranje);
}

/* Button Base Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--font-size-sm);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

/* Button Sizes - Compact */
.btn-sm {
  height: 28px;
  padding: 0 var(--spacing-sm);
  font-size: 12px;
}

.btn-md {
  height: 34px;
  padding: 0 var(--spacing-md);
  font-size: 13px;
}

.btn-lg {
  height: 40px;
  padding: 0 var(--spacing-lg);
  font-size: 14px;
}

.btn-xl {
  height: 46px;
  padding: 0 var(--spacing-xl);
  font-size: 16px;
}

/* Solid Buttons */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 4px 12px rgba(7, 56, 137, 0.25);
  filter: brightness(1.05);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.btn-secondary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 4px 12px rgba(244, 96, 21, 0.3);
  filter: brightness(1.05);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

/* Outline Buttons */
.btn-outline {
  background: transparent;
  border: 2px solid var(--hero-blauw);
  color: var(--hero-blauw);
}

.btn-outline:hover:not(:disabled) {
  background: var(--hero-blauw);
  color: var(--white);
}

/* Ghost Buttons */
.btn-ghost {
  background: transparent;
  color: var(--hero-blauw);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--hero-blauw-hairline);
}

/* Form Elements - Compact */
.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--hero-grijs-black);
  margin-bottom: 4px;
  font-size: 13px;
}

.form-input,
.form-select {
  width: 100%;
  height: 36px;
  padding: 0 var(--spacing-sm);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--hero-grijs-black);
  background: var(--white);
  border: 1px solid var(--hero-grijs-thin);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:hover,
.form-select:hover {
  border-color: var(--hero-grijs-light);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--hero-blauw);
  box-shadow: 0 0 0 3px rgba(7, 56, 137, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23073889' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-md) center;
  padding-right: var(--spacing-xl);
  cursor: pointer;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

.text-secondary {
  color: var(--hero-oranje);
}

.text-muted {
  color: var(--hero-grijs-regular);
}

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Feedback Messages - Compact */
.feedback {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  margin-top: var(--spacing-xs);
}

.feedback-success {
  background: rgba(56, 189, 71, 0.1);
  color: var(--hero-groen);
  border: 1px solid var(--hero-groen);
}

.feedback-error {
  background: rgba(183, 21, 37, 0.1);
  color: var(--hero-rood);
  border: 1px solid var(--hero-rood);
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn var(--transition-normal) ease forwards;
}

.slide-in {
  animation: slideIn var(--transition-normal) ease forwards;
}




