@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette – Modern Executive Medical Theme */
  --bg-gradient-start: #f8fafc;
  --bg-gradient-mid: #f1f5f9;
  --bg-gradient-end: #e2e8f0;

  /* Cards: crisp white with clear shadow for high contrast on light bg */
  --card-bg: #ffffff;
  --card-border: rgba(15, 23, 42, 0.08);
  --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);

  /* Dark cards (header & accent panels) */
  --dark-card-bg: #0f172a;
  --dark-card-border: rgba(255, 255, 255, 0.12);
  --dark-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);

  /* Header glass panel */
  --header-bg: #0f172a;
  --header-border: rgba(255, 255, 255, 0.1);

  /* Accent colours (WCAG 2.2 AA compliant contrast) */
  --primary-accent: #1e3a8a;
  --primary-accent-dark: #0f172a;
  --primary-accent-glow: rgba(30, 58, 138, 0.15);
  --secondary-accent: #2563eb;
  --success-accent: #059669;
  --warning-accent: #d97706;
  --danger-accent: #dc2626;

  /* Content text (High contrast for readability) */
  --text-main: #0f172a; /* Slate 900 */
  --text-muted: #1e293b; /* Slate 800 */
  --text-light: #475569; /* Slate 600 */
  --text-white: #ffffff;

  /* Section divider lines */
  --card-divider: rgba(15, 23, 42, 0.08);

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', sans-serif;

  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

/* Accessibility: Skip-Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--primary-accent);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  z-index: 10000;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* Accessibility: Sichtbarer Tastatur-Fokus nach WCAG 2.4.7 */
:focus-visible {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px !important;
}

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

/* Mindest-Klickfläche für interaktive Elemente nach WCAG 2.5.8 */
button,
.btn,
.nav-tab,
.icon-btn,
input,
select,
textarea {
  min-height: 38px;
}

body {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 300;
  /* Soft, crisp Light Ice-Blue background for high contrast & perfect readability */
  background: linear-gradient(135deg, #dce7f5 0%, #cdddec 40%, #e8f0fa 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  padding: 10px 18px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
}

.app-container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main-viewport {
  display: contents;
}

/* Premium Card Style – crisp white on deep navy background */
.glass-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  padding: 24px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(37, 99, 235, 0.08);
}

.glass-card.dark {
  background: var(--dark-card-bg);
  border: 1px solid var(--dark-card-border);
  box-shadow: var(--dark-card-shadow);
  color: var(--text-white);
}

/* Header – sleek white glass bar */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  border-radius: 16px;
  position: sticky;
  top: 8px;
  z-index: 1000;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: #1e40af !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #1e40af !important;
  letter-spacing: -0.5px;
}

.logo-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(30, 64, 175, 0.1);
  color: #1e40af;
  border: 1px solid rgba(30, 64, 175, 0.2);
}

/* Navigation Tabs – light clean theme */
.nav-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px;
  border-radius: 40px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-tab {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  padding: 5px 13px;
  /* Kompakter Kopfbereich: die Navigation soll Höhe sparen, ohne unlesbar zu werden */
  min-height: 32px;
  color: #475569;
  cursor: pointer;
  border-radius: 30px;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-tab:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}

.nav-tab.active {
  background: #1e40af;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.3);
}

/* Right Header Menu */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 30px;
  color: #047857;
  font-size: 11.5px;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.8s infinite;
}

.icon-btn {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: var(--transition-smooth);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.icon-btn:hover {
  background: #f8fafc;
  color: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.12);
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-family: var(--font-display);
}

/* Layout Grid System (Bento Grid) */
.dashboard-grid {
  display: grid;
  grid-template-columns: 340px 1fr 360px;
  gap: 20px;
  align-items: stretch;
}

/* Welcome Box & Metrics Row */
.welcome-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
}

.welcome-info h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.welcome-info p {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 4px;
}

.metrics-row {
  display: flex;
  gap: 24px;
  align-items: center;
}

.metric-bar-group {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.4);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.metric-mini-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-mini-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.metric-mini-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.stats-grid-top {
  display: flex;
  gap: 16px;
}

.stat-bubble {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.stat-bubble-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-bubble-details {
  display: flex;
  flex-direction: column;
}

.stat-bubble-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-bubble-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

/* Left Column: Recruiter/Active Candidate Card */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.candidate-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.card-badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-accent);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.card-badge.approved {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.card-badge.rejected {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-accent);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.candidate-avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-top: 10px;
  margin-bottom: 16px;
}

.candidate-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-family: var(--font-display);
  font-weight: 700;
  border: 3px solid white;
}

.candidate-match-score {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.candidate-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.candidate-specialty {
  font-size: 13px;
  color: var(--primary-accent);
  font-weight: 600;
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  display: inline-block;
}

.candidate-info-list {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 16px;
}

.candidate-info-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.candidate-info-lbl {
  color: var(--text-muted);
}

.candidate-info-val {
  font-weight: 500;
  color: var(--text-main);
  max-width: 180px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.action-btn-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-accent);
  color: white;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

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

.btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger-accent);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.2);
}

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

/* Left Bottom Accordion Info */
.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.accordion-item.open {
  background: rgba(255, 255, 255, 0.8);
}

.accordion-header {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  user-select: none;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.8);
}

.accordion-icon {
  font-size: 12px;
  transition: transform 0.3s;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item.open .accordion-content {
  padding: 0 18px 16px 18px;
  max-height: 250px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.crm-badge-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  width: fit-content;
}

.crm-badge-status.synced {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-accent);
}

.crm-badge-status.unsynced {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-accent);
}

/* Center Column: Detailed Candidate Stats & Workflow Pipeline */
.center-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-action-link {
  font-size: 12px;
  color: var(--primary-accent);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

/* Grid layout for scoring details */
.scoring-card-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.score-summary-big {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  padding-right: 20px;
}

.circular-progress {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-accent) 0deg, rgba(37, 99, 235, 0.1) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.circular-progress::before {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: white;
}

.circular-progress-val {
  position: relative;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
}

.score-summary-lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 500;
}

/* Criteria List style */
.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.criteria-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.criteria-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
}

.criteria-lbl {
  color: var(--text-muted);
}

.criteria-val {
  font-weight: 600;
}

.criteria-bar-bg {
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.criteria-bar-fill {
  height: 100%;
  background: var(--primary-accent);
  border-radius: 3px;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Time Tracker Widget / n8n Workflow Simulator */
.workflow-widget {
  position: relative;
}

.pipeline-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 24px;
  margin-bottom: 12px;
  padding: 0 10px;
}

.pipeline-stepper::before {
  display: none !important;
}

.pipeline-progress-line {
  display: none !important;
}

.pipeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 50px;
}

.step-node {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  transition: var(--transition-smooth);
}

.pipeline-step.active .step-node {
  border-color: var(--primary-accent);
  background: var(--primary-accent);
  color: white;
  box-shadow: 0 0 12px var(--primary-accent-glow);
}

.pipeline-step.completed .step-node {
  border-color: var(--success-accent);
  background: var(--success-accent);
  color: white;
}

.step-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
  white-space: nowrap;
}

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

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

.simulation-control-box {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.simulation-actions {
  display: flex;
  gap: 10px;
}

.upload-zone {
  border: 2px dashed rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
  transition: var(--transition-smooth);
}

.upload-zone:hover {
  background: rgba(37, 99, 235, 0.04);
  border-color: var(--primary-accent);
}

.upload-zone-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.upload-zone-highlight {
  color: var(--primary-accent);
  font-weight: 600;
}

/* Right Column: Live Candidate Queue & Activity Feed */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.queue-header-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-body);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.7);
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-accent);
  background: white;
  box-shadow: 0 0 0 3px var(--primary-accent-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 14px;
}

.queue-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.03);
  padding: 3px;
  border-radius: 12px;
  gap: 2px;
  margin-bottom: 12px;
}

.queue-tab {
  flex: 1;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 9px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  text-align: center;
}

.queue-tab.active {
  background: white;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Candidate Queue List */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

.queue-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 14px 16px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-sizing: border-box;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

.queue-item:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  border-color: rgba(30, 64, 175, 0.2);
}

.queue-item.active {
  background: #f0f4ff;
  border-color: var(--primary-accent);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.12);
}

.queue-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.queue-item-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.queue-item-details {
  flex: 1;
  min-width: 0;
}

.queue-item-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.queue-item-specialty {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.queue-item-status-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.queue-item-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--primary-accent);
}

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

.status-indicator-dot.pending {
  background: var(--warning-accent);
}

.status-indicator-dot.approved {
  background: var(--success-accent);
}

.status-indicator-dot.rejected {
  background: var(--danger-accent);
}

/* Onboarding Task / Log Style Card */
.activity-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.activity-count {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 250px;
  flex: 1;
  padding-right: 6px;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.activity-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

.activity-item.success .activity-icon-wrap {
  color: var(--success-accent);
  background: rgba(16, 185, 129, 0.15);
}

.activity-item.info .activity-icon-wrap {
  color: var(--secondary-accent);
  background: rgba(14, 165, 233, 0.15);
}

.activity-item.warning .activity-icon-wrap {
  color: var(--warning-accent);
  background: rgba(245, 158, 11, 0.15);
}

.activity-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-text {
  font-size: 12px;
  color: var(--text-white);
  line-height: 1.4;
}

.activity-time {
  font-size: 10px;
  color: var(--text-light);
}

/* Tabs: Secondary Content Screens */
.screen-content {
  display: none !important;
  grid-column: 1 / -1;
  animation: fadeIn 0.4s ease-out;
}

.screen-content.active {
  display: block !important;
}

#screen-ema-inbound.active {
  display: flex !important;
  flex-direction: column;
}

.settings-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.text-input {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--font-body);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
}

.text-input:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px var(--primary-accent-glow);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.1);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-accent);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* System Logs Console Style */
.console-log {
  background: #0f172a;
  color: #38bdf8;
  font-family: monospace;
  font-size: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  height: 250px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.console-line {
  line-height: 1.4;
}

.console-line::before {
  content: "> ";
  color: var(--primary-accent);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background: var(--dark-card-bg);
  border: 1px solid var(--dark-card-border);
  backdrop-filter: blur(12px);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  font-weight: 500;
  animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-icon {
  color: var(--success-accent);
}

/* Keyframe Animations */
@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

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

.spin-anim {
  animation: spin 0.9s linear infinite;
}

.spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  vertical-align: middle;
}

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

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

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

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

/* Layout Grids */
.inbox-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: stretch;
}

.candidate-card-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  position: relative;
}

.candidate-actions-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: stretch;
}

/* Responsive Rules */
@media (max-width: 1200px) {

  .dashboard-grid,
  .inbox-grid,
  .simulator-grid {
    grid-template-columns: 1fr;
  }

  .left-column,
  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .header {
    flex-direction: column;
    gap: 16px;
    border-radius: var(--radius-lg);
  }

  .left-column,
  .right-column,
  .candidate-card-grid,
  .candidate-actions-grid {
    grid-template-columns: 1fr;
  }

  .welcome-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ====================================================
   Bewerbermappe Editor Workspace
   ==================================================== */
.mappe-editor-grid {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 24px;
  align-items: stretch;
  margin-top: 16px;
}

.mappe-editor-form {
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.mappe-editor-form .accordion-item.open .accordion-content {
  max-height: none !important;
  padding: 12px 4px 16px 4px;
  overflow: visible;
}

.mappe-editor-preview {
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.table-builder-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.4);
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(37, 99, 235, 0.08);
  transition: var(--transition-smooth);
}

.table-builder-row:hover {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(255, 255, 255, 0.8);
}

.table-builder-row input,
.table-builder-row textarea {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: white;
}

.table-builder-row input:focus,
.table-builder-row textarea:focus {
  outline: none;
  border-color: var(--primary-accent);
}

.table-builder-row .icon-btn {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.table-builder-row .icon-btn:hover {
  background: #ef4444;
  color: white;
}

@media (max-width: 1200px) {
  .mappe-editor-grid {
    grid-template-columns: 1fr;
  }
}

/* Privacy Consent Tab Custom Styling */
.privacy-item-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: rgba(37, 99, 235, 0.2);
}

.privacy-item-card.active {
  border-color: var(--primary-accent);
  background: rgba(37, 99, 235, 0.03);
  box-shadow: 0 0 0 1px var(--primary-accent);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.status-tag.pending {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-tag.approved {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-tag.relevant {
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.status-tag.info {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.status-tag.neutral {
  background: rgba(148, 163, 184, 0.12);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.text-toggle-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: white;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}


/* EMA Inbound Chat Thread Styling */
.inbound-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.inbound-channel-badge:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.inbound-channel-badge.active {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white;
  border-color: #1e40af;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
  font-weight: 700;
}

/* CRM-Status-Filter (Neu / In Manatal / B2B-Leads / Unbekannt) –
   bewusst ANDERS als die Postfach-Badges: kleiner, kantiger, farbcodiert */
.inbound-crm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8fafc;
  color: #64748b;
  transition: var(--transition-smooth);
}
.inbound-crm-badge:hover {
  filter: brightness(0.95);
}
.inbound-crm-badge[data-crm="neu"] { color: #047857; border-color: rgba(16, 185, 129, 0.35); }
.inbound-crm-badge[data-crm="crm"] { color: #1d4ed8; border-color: rgba(37, 99, 235, 0.35); }
.inbound-crm-badge[data-crm="b2b"] { color: #0f766e; border-color: rgba(13, 148, 136, 0.35); }
.inbound-crm-badge[data-crm="unbekannt"] { color: #b45309; border-color: rgba(245, 158, 11, 0.35); }
.inbound-crm-badge.active {
  background: #334155;
  color: #ffffff;
  border-color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.inbound-crm-badge[data-crm="neu"].active { background: #047857; border-color: #047857; }
.inbound-crm-badge[data-crm="crm"].active { background: #1d4ed8; border-color: #1d4ed8; }
.inbound-crm-badge[data-crm="b2b"].active { background: #0f766e; border-color: #0f766e; }
.inbound-crm-badge[data-crm="unbekannt"].active { background: #92400e; border-color: #92400e; }

.chat-bubble {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.chat-bubble.inbound {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top-left-radius: 4px;
  color: var(--text-main);
}

.chat-bubble.system-event {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.05), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  max-width: 90%;
  margin: 6px auto;
  color: #4c1d95;
  font-size: 12px;
}

.chat-bubble.system-event.approved {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.25);
  color: #047857;
}

.chat-thread-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: none;
}

#inbound-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.inbound-thread-header {
  flex-shrink: 0;
  background: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 18px 24px;
}

.inbound-thread-scrollable {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: white;
  padding: 20px 24px;
}

/* ========================================================================== */
/* Inbound Orchestrator Pipeline Stepper & Inspector Styling */
/* ========================================================================== */

.pipeline-stepper-wrapper {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.pipeline-stepper-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pipeline-stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  position: relative;
}

@media (max-width: 900px) {
  .pipeline-stepper {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 550px) {
  .pipeline-stepper {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pipeline-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 8px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  position: relative;
  transition: all 0.2s ease;
}

.pipeline-step-item.status-passed {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.25);
}

.pipeline-step-item.status-passed .pipeline-step-icon {
  background: #10b981;
  color: white;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
}

.pipeline-step-item.status-pending {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.25);
}

.pipeline-step-item.status-pending .pipeline-step-icon {
  background: #f59e0b;
  color: white;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
}

.pipeline-step-item.status-ai {
  background: rgba(124, 58, 237, 0.05);
  border-color: rgba(124, 58, 237, 0.25);
}

.pipeline-step-item.status-ai .pipeline-step-icon {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  color: white;
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.3);
}

.pipeline-step-item.status-filtered {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.25);
}

.pipeline-step-item.status-filtered .pipeline-step-icon {
  background: #ef4444;
  color: white;
}

.pipeline-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-bottom: 6px;
}

.pipeline-step-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.pipeline-step-subtitle {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}

/* Anonymized Tag Highlighting */
.anonymized-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(168, 85, 247, 0.15));
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

/* Mistral Inspector Card */
.mistral-inspector-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
}

.mistral-inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.mistral-inspector-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────
   Großformatiges Dokument-Modal (Lebensläufe, Zeugnisse, Urkunden)
   ───────────────────────────────────────────────────────────── */
#dokument-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#dokument-modal-card {
  background: white;
  border-radius: 16px;
  width: 95vw !important;
  max-width: 1560px !important;
  height: 94vh !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#dokument-modal-card.modal-maximized {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
}

/* ----------------------------------------------------
   Thread Segmented Toggle & KI-Zusammenfassung Styles
   ---------------------------------------------------- */
.thread-segmented-toggle {
  display: inline-flex;
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
}

.btn-thread-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-thread-tab:hover {
  color: #0f172a;
}

.btn-thread-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.ai-summary-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.ai-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.ai-summary-item {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  padding: 12px 14px;
}

.ai-summary-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.ai-summary-value {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.ai-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
}

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

.ai-action-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(59, 130, 246, 0.06));
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-left: 4px solid #7c3aed;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 18px;
}

/* ====================================================
   VOLLBILD-MODUS (Native OS & Viewport-Fallback)
   ==================================================== */
html.fullscreen-mode,
body.fullscreen-mode {
  padding: 0 !important;
  margin: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
}

body.fullscreen-mode .app-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  gap: 12px !important;
}

body.fullscreen-mode .header {
  border-radius: 12px !important;
  padding: 10px 18px !important;
}

/* Inbound-Bereich nutzt im Vollbild den maximalen Platz */
body.fullscreen-mode #screen-ema-inbound {
  height: calc(100vh - 65px) !important;
}

body.fullscreen-mode .inbound-main-grid {
  height: calc(100vh - 84px) !important;
  max-height: calc(100vh - 84px) !important;
}

body.fullscreen-mode #inbound-conv-list {
  max-height: calc(100vh - 225px) !important;
}

body.fullscreen-mode .chat-thread-container {
  max-height: none !important;
}

/* Freigabe-Center Warteschlange im Vollbild vergrößern */
body.fullscreen-mode .queue-list {
  max-height: calc(100vh - 220px) !important;
}


/* ---------------------------------------------------------------------------
   Hover-Effekte, die früher per Inline-Handler (onmouseover/onmouseout) gesetzt
   wurden. !important ist nötig, weil die Elemente ihre Grundfarbe als
   Inline-Style tragen. Inline-Handler sind wegen der CSP nicht mehr erlaubt.
   --------------------------------------------------------------------------- */
.hover-hellblau:hover { background: #e0ebff !important; }
.hover-gelb:hover { background: #fde68a !important; }
.hover-modal-close:hover { background: rgba(0, 0, 0, 0.07) !important; color: #ef4444 !important; }
.hover-logo:hover { background: rgba(37, 99, 235, 0.1) !important; }
.hover-karte:hover { border-color: var(--primary-accent) !important; background: #f0f9ff !important; }
.hover-loeschen:hover { opacity: 1 !important; color: #ef4444 !important; background: rgba(239, 68, 68, 0.1) !important; }
