@import url('./design-tokens.css');
/* Dashboard panel - dark glassmorphism style matching Brain window */

/* === Dashboard Window Container (moved from brain.css — 2026-02 Cleanup) === */
#dashboard-window {
    min-height: 500px;
    max-height: 90vh;
    height: auto !important;
    resize: both;
    z-index: 100 !important;
}

#dashboard-window .brain-content,
#dashboard-window-content {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto !important;
    max-height: none;
    padding: 0;
    flex: 1;
}

#dashboard-window .dashboard-panel {
    overflow: visible;
    min-height: 0;
}

#dashboard-window .dashboard-filter-section,
#dashboard-window .filter-panel {
    overflow: visible;
}

#dashboard-window details[open] {
    animation: dashboardExpand 0.2s ease-out;
}

@keyframes dashboardExpand {
    from { opacity: 0.5; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Dashboard Panel Base === */
.dashboard-panel {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: var(--glass-bg-dark);
  backdrop-filter: blur(var(--glass-blur-md));
  -webkit-backdrop-filter: blur(var(--glass-blur-md));
  padding: 6px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
}

.dashboard-header {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  margin-bottom: 4px;
  color: var(--text-primary);
  padding: 2px 6px;
}

.dashboard-overview > h4, .dashboard-topnodes > h4 {
  margin: 6px 0 3px 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
}

.dashboard-overview-content div {
  margin: 1px 0;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  line-height: 1.4;
}

.dashboard-topnodes-list {
  padding-left: 14px;
  color: var(--text-muted);
  margin: 2px 0;
}

.dashboard-topnodes-list li {
  margin: 2px 0;
  font-size: var(--text-xs);
  line-height: 1.3;
}

.dashboard-topnode-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  background: rgba(var(--color-primary-rgb), 0.12);
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
  color: var(--color-primary-light);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  font-size: var(--text-xs);
  margin: 1px 0;
}

.dashboard-topnode-btn:hover {
  background: rgba(var(--color-primary-rgb), 0.22);
  transform: translateY(-1px);
}

.topnode-degree {
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: var(--text-sm);
  margin-left: 8px;
  min-width: 32px;
  text-align: center;
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
}

/* Compact sections */
.dashboard-overview, .dashboard-topnodes { margin-bottom: 6px; }
.brain-content { padding: 4px 6px; }

/* Skeleton loading placeholders */
.dashboard-skeleton { display: block; margin-top: 6px; }
.skeleton-line { height: 10px; background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 100%); border-radius: var(--radius-xs); margin: 4px 0; position: relative; overflow: hidden; }
.skeleton-line.small { width: 40%; height: 8px; }
.skeleton-line.medium { width: 65%; height: 10px; }
.skeleton-line.large { width: 90%; height: 11px; }
.skeleton-list-item { height: 11px; border-radius: var(--radius-xs); margin: 4px 0; background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 100%); }
.skeleton-shimmer { position: absolute; left: -100%; top: 0; bottom: 0; width: 60%; background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.12), rgba(255,255,255,0.02)); animation: dashboard-shimmer 1.2s infinite; }
@keyframes dashboard-shimmer { 0% { transform: translateX(0%); } 100% { transform: translateX(200%); } }

/* Quick Win: Skeleton Cards */
.summary-kpi-card.loading .kpi-value,
.summary-kpi-card.loading .kpi-trend {
    color: transparent !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.summary-kpi-card.loading .kpi-value::after,
.summary-kpi-card.loading .kpi-trend::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: dashboard-shimmer 1.5s infinite;
}

.summary-kpi-card.loading .kpi-icon {
    filter: grayscale(1) opacity(0.5);
}

/* ============================================
   Brain Spinner Overlay (3D loading indicator)
   ============================================ */
.brain-spinner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 18, 0.88);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    border-radius: 0 0 12px 12px;
    opacity: 0;
    animation: brainSpinnerFadeIn 0.4s ease forwards;
}

@keyframes brainSpinnerFadeIn {
    to { opacity: 1; }
}

.brain-spinner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.brain-spinner-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(34, 197, 94, 0.2) 0%,
        rgba(59, 130, 246, 0.12) 50%,
        rgba(34, 197, 94, 0.04) 100%
    );
    box-shadow:
        0 8px 32px rgba(34, 197, 94, 0.35),
        0 0 48px rgba(59, 130, 246, 0.25),
        inset 0 1px 8px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.35);
    animation: brainSpinnerPulse 2s ease-in-out infinite;
}

/* Pulse ring */
.brain-spinner-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.5);
    animation: brainSpinnerRing 1.5s ease-out infinite;
    pointer-events: none;
}

/* Second pulse ring */
.brain-spinner-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.35);
    animation: brainSpinnerRing 1.5s ease-out infinite 0.5s;
    pointer-events: none;
}

.brain-spinner-canvas-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 10;
    pointer-events: none;
}

.brain-spinner-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.brain-spinner-fallback {
    font-size: 64px;
    animation: brainSpinnerRotate 6s linear infinite;
    filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.6))
            drop-shadow(0 0 32px rgba(59, 130, 246, 0.4));
}

.brain-spinner-status {
    font-size: 14px;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.9);
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
    animation: brainSpinnerTextPulse 2s ease-in-out infinite;
}

@keyframes brainSpinnerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(34,197,94,0.35), 0 0 48px rgba(59,130,246,0.25), inset 0 1px 8px rgba(255,255,255,0.1);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 10px 40px rgba(34,197,94,0.45), 0 0 60px rgba(59,130,246,0.35), inset 0 1px 8px rgba(255,255,255,0.15);
    }
}

@keyframes brainSpinnerRing {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.8); opacity: 0; }
}

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

@keyframes brainSpinnerTextPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Focus styles for accessibility */
.dashboard-topnode-btn:focus { outline: none; }
.dashboard-topnode-btn:focus-visible { box-shadow: 0 0 0 4px rgba(33,133,208,0.14); border-radius: var(--radius-sm); }

/* Modal overlay for non-blocking confirmations */
.dashboard-modal-overlay {
  position: fixed;
  left: 0; top: 0; right:0; bottom:0;
  display:none; align-items:center; justify-content:center;
  background: var(--bg-overlay);
  z-index: 10010;
}

.dashboard-modal-card-inner {
  background: var(--glass-bg-darker);
  color: var(--text-primary);
  padding: 16px;
  border-radius: var(--radius-lg);
  width: 380px;
  box-shadow: var(--shadow-2xl);
  backdrop-filter: blur(var(--glass-blur-md));
  border: 1px solid var(--glass-border);
}

.dashboard-modal-card-inner .modal-title {
  font-weight: var(--weight-bold);
  margin-bottom: 8px;
  color: var(--text-primary);
}

.dashboard-modal-card-inner .modal-body {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.dashboard-modal-card-inner .modal-footer {
  display: flex; gap: var(--spacing-sm); justify-content: flex-end;
}

.dashboard-modal-card-inner .modal-confirm {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--text-primary);
  border: none; padding: 8px 12px; border-radius: var(--radius-md); cursor: pointer;
}

.dashboard-modal-card-inner .modal-cancel {
  background: var(--glass-bg-light);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 6px 10px; border-radius: var(--radius-md); cursor: pointer;
}

/* Cooldown badge */
.dashboard-ai-cooldown { font-weight:600; color:#ffb86b; font-size: 11px; }
.dashboard-ai-toggle { margin: 6px 0; font-size: 12px; }

/* Recommendations Tab - Enhanced Info Badges */
.meta-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Quick Win: Premium Badge */
.premium-badge {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.premium-container {
    position: relative;
}

.premium-overlay-hint {
    font-size: 10px;
    color: #ffd700;
    opacity: 0.8;
    margin-top: 4px;
    display: block;
}

/* Quick Win: Real-time Indicator */
.rt-indicator {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 8px #22c55e;
    animation: rt-pulse 2s infinite;
}

@keyframes rt-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.profit-positive { color: #22c55e !important; }
.profit-negative { color: #ef4444 !important; }

/* Quick Win: Export Button */
.export-snippet-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    float: right;
    margin-top: -24px;
}

.export-snippet-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.shortcut-link {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.shortcut-link:hover {
    color: var(--color-primary-light);
}

/* Quick Win: Confidence Score */
.confidence-score {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.7;
}

.conf-dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    display: inline-block;
}

.conf-value {
    color: #34d399;
    font-weight: 700;
}

/* --- Expert Improvements: Navigation & Header --- */

.nav-search-container {
    padding: 8px 12px 12px 12px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 30px 6px 10px;
    color: white;
    font-size: 11px;
    outline: none;
    transition: all 0.2s;
}

.nav-search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.2);
}

.nav-search-icon {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 11px;
    pointer-events: none;
}

.side-nav-list li a {
    display: flex;
    align-items: center;
}

.health-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-left: auto;
    flex-shrink: 0;
}

.health-dot.green { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
.health-dot.yellow { background: #eab308; box-shadow: 0 0 6px rgba(234, 179, 8, 0.5); }
.health-dot.red { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.5); }

.header-brain-mini {
    width: 44px;
    height: 44px;
    margin-right: 12px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    cursor: help;
    display: flex;
    align-items: center;
    justify-content: center;
}

.investor-access-info {
    font-size: 10px;
    color: var(--text-muted);
    text-align: right;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: 15px;
}

.active-user {
    color: var(--color-primary-light);
    font-weight: 700;
}

.last-seen {
    font-style: italic;
    opacity: 0.6;
}

/* Pitch Readiness Score */
.readiness-score-container {
    margin: 20px 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.readiness-circular-progress {
    width: 60px;
    height: 60px;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 3.8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease 0s;
}

.percentage {
    fill: white;
    font-family: var(--font-sans);
    font-size: 8px;
    font-weight: 700;
    text-anchor: middle;
}

.readiness-info {
    display: flex;
    flex-direction: column;
}

.readiness-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.readiness-status {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary-light);
}

/* AI Analyst Floating Widget */
.ai-advisor-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: var(--glass-bg-darker);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(var(--color-primary-rgb), 0.3);
    border-radius: 12px;
    z-index: 95000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-advisor-header {
    background: linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.2), transparent);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ai-advisor-header .ai-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary-light);
}

.ai-advisor-header .ai-minimize {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.ai-advisor-content {
    padding: 15px;
    height: 200px;
    overflow-y: auto;
    font-size: 12px;
    color: var(--text-secondary);
}

.ai-message.bot {
    background: rgba(var(--color-primary-rgb), 0.08);
    padding: 10px;
    border-radius: 8px 8px 8px 0;
    border-left: 2px solid var(--color-primary);
}

.ai-advisor-input {
    padding: 10px;
    background: rgba(0,0,0,0.2);
    display: flex;
    gap: 8px;
}

.ai-advisor-input input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 6px 10px;
    color: white;
    font-size: 11px;
}

.ai-advisor-input button {
    background: rgba(var(--color-primary-rgb), 0.2);
    border: none;
    color: var(--color-primary-light);
    width: 28px;
    border-radius: 4px;
    cursor: not-allowed;
}

/* Quick Win: Tooltip Z-Index & Style */
.unit-metric {
    position: relative;
}

.unit-metric:hover .metric-tooltip {
    display: block;
    opacity: 1;
}

.metric-tooltip {
    display: none;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg-darker);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    width: 180px;
    z-index: var(--z-tooltip); /* Token: design-tokens.css */
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    pointer-events: none;
    backdrop-filter: blur(10px);
    text-align: center;
}

.metric-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--glass-border) transparent transparent transparent;
}

/* Enhanced native tooltips for info badges */
.meta-badge[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 20, 30, 0.98);
  color: rgba(255, 255, 255, 0.95);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  z-index: var(--z-dropdown);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: tooltipFadeIn 0.2s ease;
}

.meta-badge[title]:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(15, 20, 30, 0.98);
  pointer-events: none;
  z-index: var(--z-dropdown);
  animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Recommendation card compact styling */
.recommendation-card {
  position: relative;
  overflow: visible; /* Allow tooltips to overflow */
}

/* Primary action button - clear visual distinction */
.action-btn.primary {
  font-family: var(--ui-font, Arial, Helvetica, sans-serif);
  position: relative;
  overflow: hidden;
}

.action-btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  transition: left 0.5s ease;
}

.action-btn.primary:hover::before {
  left: 100%;
}

/* Secondary button - subtle style */
.action-btn.secondary {
  font-family: var(--ui-font, Arial, Helvetica, sans-serif);
}

/* Card description - better readability */
.card-description {
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* Reason line - subtle info style */
.card-reason {
  border-left: 2px solid var(--glass-border);
  padding-left: 8px;
}

/* Benefit tooltip - enhanced styling */
.benefit-tooltip {
  pointer-events: none !important;
  text-align: left;
}

.benefit-tooltip strong {
  color: rgba(var(--color-secondary-rgb), 1);
  font-weight: 700;
  font-size: 10px;
  display: block;
  margin-bottom: 3px;
}

/* Action button wrapper for tooltip positioning */
.action-btn-wrapper {
  position: relative;
  display: flex;
}

/* Enhanced tooltip arrow with glow */
.benefit-tooltip-arrow {
  filter: drop-shadow(0 2px 4px rgba(var(--color-secondary-rgb), 0.3))
          drop-shadow(0 0 8px rgba(var(--color-secondary-rgb), 0.2));
}

/* Dismiss button tooltip (native) */
.action-btn.secondary[title] {
  position: relative;
}

/* Make sure action buttons have proper z-index */
.card-actions {
  position: relative;
  z-index: 1;
}

.dashboard-ai-note { font-size: 11px; margin-top: 4px; color: #bfbfbf; line-height: 1.3; }
.dashboard-ai-status { font-size: 11px; color: #bfbfbf; margin-top: 4px; }
/* Recommendation spinner */
.rec-loading { display:flex; align-items:center; gap:6px; color:#b0b0b0; font-size: 12px; }
.rec-spinner { display:inline-block; width:12px; height:12px; border-radius:50%; border:2px solid rgba(255,255,255,0.12); border-top-color: rgba(255,255,255,0.7); animation: rec-spin 900ms linear infinite; }
@keyframes rec-spin { to { transform: rotate(360deg); } }
.rec-cached-note { font-size:11px; color:#999; margin-bottom:4px; }
.dashboard-rec-list { font-size: 12px; }
.dashboard-rec-list li { margin: 3px 0; }

/* Timeline widget */
.widget.timeline-chart { margin-top: 6px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,0.06); }
.widget.timeline-chart svg { height: 50px; }
.widget { margin: 6px 0; }
.widget .header-title { font-size: 12px; margin: 4px 0; font-weight: 600; }

/* Generic widget tooltip (used by widgets) */
.widget-tooltip { background: rgba(0,0,0,0.78); color: #fff; padding: 6px 8px; border-radius: var(--radius-sm); font-size:12px; z-index: 11000; }

/* When dashboard is embedded inside brain-content, make widgets visually match */
.brain-content .widget { background: transparent; color: var(--txt, #eaeaea); padding: 6px 0; margin: 6px 0; border-radius: var(--radius-xs); }
.brain-content .widget .header-title { font-size: 0.88rem; color: var(--txt, #eaeaea); padding-left: 6px; margin: 0 0 6px 0; }
.brain-content .widget svg { background: transparent; }

/* Tab Navigation */
.dashboard-tab-nav {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: 8px;
    padding: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dashboard-tab {
    flex: 1;
    background: rgba(70,130,200,0.08);
    border: 1px solid rgba(70,130,200,0.2);
    color: #a8d5ff;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.dashboard-tab:hover {
    background: rgba(70,130,200,0.15);
    transform: translateY(-1px);
    opacity: 0.85;
}

.dashboard-tab.active {
    background: linear-gradient(135deg, rgba(70,130,200,0.4) 0%, rgba(100,160,230,0.35) 100%);
    border: 2px solid rgba(70,130,200,0.8);
    color: #fff;
    box-shadow: 0 3px 12px rgba(70,130,200,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
    opacity: 1;
    font-weight: 700;
    transform: translateY(-1px);
}

/* Tab Content */
.dashboard-tab-content {
    position: relative;
}

.dashboard-pane {
    display: none;
}

.dashboard-pane.active {
    display: block;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom Scrollbar for Dashboard Pane */


.dashboard-pane.active::-webkit-scrollbar-track {
    background: var(--glass-bg-light);
    border-radius: var(--radius-xs);
}

.dashboard-pane.active::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xs);
}

.dashboard-pane.active::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Filter Toolbar */
.dashboard-filter-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: transparent;
    border-bottom: none;
    margin-bottom: 0;
}

/* ════════════════════════════════════════════════════════
   Analyse-Filter v3.0 — .af-* Klassen
   Feb 2026: Redesign: Suche offen · Chips · Accordion
   ════════════════════════════════════════════════════════ */

/* Suchleiste */
.af-search-bar {
    padding: 8px 8px 4px;
    background: rgba(20,20,30,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.af-search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(40,45,60,0.9);
    border: 1px solid rgba(70,130,200,0.3);
    border-radius: 8px;
    padding: 0 8px;
    gap: 6px;
    transition: border-color 0.2s;
}

.af-search-wrapper:focus-within {
    border-color: rgba(70,130,200,0.7);
    box-shadow: 0 0 0 2px rgba(70,130,200,0.15);
}

.af-search-icon {
    font-size: 14px;
    opacity: 0.6;
    flex-shrink: 0;
}

.af-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #d0e8ff;
    font-size: 13px;
    padding: 8px 0;
    min-width: 0;
}

.af-search-input::placeholder {
    color: rgba(160, 200, 255, 0.4);
}

.af-search-clear {
    background: none;
    border: none;
    color: rgba(160,200,255,0.5);
    cursor: pointer;
    font-size: 12px;
    padding: 4px;
    border-radius: 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}

.af-search-clear:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.af-search-matches {
    font-size: 11px;
    color: rgba(100,180,255,0.8);
    padding: 3px 2px 0;
    min-height: 16px;
}

/* Status-Zeile */
.af-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px 5px 10px;
    gap: 8px;
    background: rgba(15,15,25,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.af-status-text {
    font-size: 11px;
    color: rgba(160,200,255,0.65);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.af-reset-btn {
    background: none;
    border: 1px solid rgba(70,130,200,0.25);
    border-radius: 6px;
    color: rgba(120,180,255,0.7);
    font-size: 11px;
    padding: 3px 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
}

.af-reset-btn:hover {
    background: rgba(70,130,200,0.15);
    border-color: rgba(70,130,200,0.5);
    color: #fff;
}

/* Sektionen */
.af-section {
    padding: 8px 8px 4px;
}

.af-section-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(160,200,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
    padding: 0 2px;
}

/* Schnellfilter-Chip-Grid */
.af-chips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.af-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(50,60,80,0.6);
    border: 1px solid rgba(70,130,200,0.2);
    border-radius: 8px;
    color: rgba(180,210,255,0.8);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 34px;
}

.af-chip:hover {
    background: rgba(70,130,200,0.2);
    border-color: rgba(70,130,200,0.45);
    color: #fff;
    transform: translateY(-1px);
}

.af-chip.active {
    background: linear-gradient(135deg, rgba(70,130,200,0.45) 0%, rgba(100,160,230,0.4) 100%);
    border: 1px solid rgba(70,130,200,0.75);
    color: #fff;
    box-shadow: 0 0 10px rgba(70,130,200,0.4);
    font-weight: 700;
}

.af-chip .filter-badge {
    font-size: 10px;
    padding: 1px 5px;
}

/* Tri-State Farbvarianten — analog zu den alten .dashboard-filter-btn.tri-state */
.af-chip.filter-level-2.active  { border-color: rgba(0,200,100,0.7);  background: rgba(0,200,100,0.25);  box-shadow: 0 0 10px rgba(0,200,100,0.35); }
.af-chip.filter-level-3.active  { border-color: rgba(255,200,0,0.7);   background: rgba(255,200,0,0.2);   box-shadow: 0 0 10px rgba(255,200,0,0.35); }
.af-chip.filter-user.active     { border-color: rgba(0,255,136,0.7);  background: rgba(0,255,136,0.2);  box-shadow: 0 0 10px rgba(0,255,136,0.35); }
.af-chip.filter-system.active   { border-color: rgba(255,136,0,0.7);  background: rgba(255,136,0,0.2);  box-shadow: 0 0 10px rgba(255,136,0,0.35); }

/* Wertfilter-Accordion */
.af-accordion {
    border: 1px solid rgba(70,130,200,0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(20,25,40,0.5);
}

.af-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 10px;
    background: rgba(30,40,60,0.7);
    border: none;
    cursor: pointer;
    color: rgba(180,215,255,0.85);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    transition: background 0.15s;
}

.af-accordion-header:hover {
    background: rgba(50,70,100,0.7);
}

.af-accordion-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.af-accordion-arrow {
    font-size: 11px;
    opacity: 0.7;
    transition: transform 0.2s;
}

.af-accordion-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(18,22,35,0.6);
}

/* Slider-Gruppen im Accordion */
.af-slider-group {
    background: rgba(30,35,55,0.7);
    border: 1px solid rgba(70,130,200,0.15);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.af-slider-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(180,215,255,0.8);
}

.af-slider-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(180,215,255,0.75);
    cursor: pointer;
}

.af-slider-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.af-slider-val {
    flex-shrink: 0;
    min-width: 30px;
    text-align: center;
}

.af-operator {
    flex-shrink: 0;
    font-size: 11px;
    padding: 3px 5px;
}

/* Presets-Zeile */
.af-presets-row {
    display: flex;
    gap: 5px;
    padding: 6px 8px 8px;
}

.af-preset-btn {
    flex: 1;
    background: rgba(40,50,70,0.6);
    border: 1px solid rgba(70,130,200,0.2);
    border-radius: 7px;
    color: rgba(160,200,255,0.75);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    white-space: nowrap;
}

.af-preset-btn:hover {
    background: rgba(70,130,200,0.2);
    border-color: rgba(70,130,200,0.45);
    color: #fff;
}

/* dashboard-degree-filter-container im Akkordeon → kein extra Offset */
.af-accordion-body .dashboard-degree-filter-container {
    margin-top: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.dashboard-filter-row {
    display: flex;
    gap: var(--spacing-xs);
    width: 100%;
    margin-bottom: 4px;
}

.dashboard-filter-btn {
    flex: 1;
    background: rgba(70,130,200,0.08);
    border: 1px solid rgba(70,130,200,0.2);
    color: #a8d5ff;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
    opacity: 0.65;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.dashboard-filter-btn.full-width {
    width: 100%;
}

/* Größere Emojis für bessere Sichtbarkeit */
.filter-emoji {
    font-size: 18px;
    display: inline-block;
    line-height: 1;
}

.dashboard-filter-btn:hover {
    background: rgba(70,130,200,0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    opacity: 0.85;
}

.dashboard-filter-btn.active {
    background: linear-gradient(135deg, rgba(70,130,200,0.45) 0%, rgba(100,160,230,0.4) 100%);
    border: 2px solid rgba(70,130,200,0.8);
    color: #fff;
    box-shadow: 0 0 16px rgba(70,130,200,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
    opacity: 1;
    font-weight: 700;
    transform: scale(1.02);
}

.dashboard-filter-btn.active .filter-emoji {
    font-size: 20px;
}

/* Filter Banner */
.dashboard-filter-banner {
    background: linear-gradient(135deg, rgba(70,130,200,0.2) 0%, rgba(100,160,230,0.2) 100%);
    border: 1px solid rgba(70,130,200,0.4);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 10px;
    color: #d0e8ff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 8px rgba(70,130,200,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Tri-State Entity Type Filter - User State (Green) */
.dashboard-filter-btn.tri-state.filter-user.active {
    background: linear-gradient(135deg, rgba(0,255,136,0.35) 0%, rgba(0,200,100,0.3) 100%);
    border: 2px solid rgba(0,255,136,0.7);
    box-shadow: 0 0 16px rgba(0,255,136,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Tri-State Entity Type Filter - System State (Orange) */
.dashboard-filter-btn.tri-state.filter-system.active {
    background: linear-gradient(135deg, rgba(255,136,0,0.35) 0%, rgba(255,100,0,0.3) 100%);
    border: 2px solid rgba(255,136,0,0.7);
    box-shadow: 0 0 16px rgba(255,136,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Tri-State Level Filter - Level 1 State (Blue) */
.dashboard-filter-btn.tri-state.filter-level-1.active {
    background: linear-gradient(135deg, rgba(70,130,200,0.35) 0%, rgba(50,110,180,0.3) 100%);
    border: 2px solid rgba(70,130,200,0.7);
    box-shadow: 0 0 16px rgba(70,130,200,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Tri-State Level Filter - Level 2 State (Green) */
.dashboard-filter-btn.tri-state.filter-level-2.active {
    background: linear-gradient(135deg, rgba(0,200,100,0.35) 0%, rgba(0,160,80,0.3) 100%);
    border: 2px solid rgba(0,200,100,0.7);
    box-shadow: 0 0 16px rgba(0,200,100,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Tri-State Level Filter - Level 3+ State (Yellow) */
.dashboard-filter-btn.tri-state.filter-level-3.active {
    background: linear-gradient(135deg, rgba(255,200,0,0.35) 0%, rgba(255,170,0,0.3) 100%);
    border: 2px solid rgba(255,200,0,0.7);
    box-shadow: 0 0 16px rgba(255,200,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Tri-State Value Filter - Importance State (Green) */
.dashboard-filter-btn.tri-state.filter-importance.active {
    background: linear-gradient(135deg, rgba(0,255,0,0.35) 0%, rgba(0,200,0,0.3) 100%);
    border: 2px solid rgba(0,255,0,0.7);
    box-shadow: 0 0 16px rgba(0,255,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Tri-State Value Filter - Confidentiality State (Red) */
.dashboard-filter-btn.tri-state.filter-confidentiality.active {
    background: linear-gradient(135deg, rgba(255,0,0,0.35) 0%, rgba(200,0,0,0.3) 100%);
    border: 2px solid rgba(255,0,0,0.7);
    box-shadow: 0 0 16px rgba(255,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Advanced Filter Container */
.dashboard-advanced-filter-container {
    display: none;
    flex-direction: column;
    gap: var(--space-3);
    padding: 12px;
    background: rgba(20,20,30,0.8);
    border: 1px solid rgba(70,130,200,0.3);
    border-radius: var(--radius-sm);
    margin-top: 4px;
}

/* Filter Group */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: 10px;
    background: rgba(30,30,40,0.6);
    border: 1px solid rgba(70,130,200,0.25);
    border-radius: var(--radius-xs);
}

.filter-group-header {
    font-size: 11px;
    font-weight: 700;
    color: #b0d8ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Filter Checkbox */
.filter-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #4a9eff;
    margin: 0;
}

.filter-checkbox:hover {
    filter: brightness(1.2);
}

.filter-group-header label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

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

.filter-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.filter-operator {
    padding: 4px 8px;
    background: rgba(40,40,50,0.8);
    border: 1px solid rgba(70,130,200,0.3);
    border-radius: 3px;
    color: #d0e8ff;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-operator option {
    background: rgba(30,30,40,0.95);
    color: #d0e8ff;
    padding: 4px 8px;
}

.filter-operator:hover {
    background: rgba(50,50,60,0.9);
    border-color: rgba(100,160,230,0.5);
}

.filter-operator:focus {
    outline: none;
    border-color: rgba(100,160,230,0.7);
    box-shadow: 0 0 8px rgba(70,130,200,0.4);
}

/* Degree Filter Container (in toolbar area) */
.dashboard-degree-filter-container {
    padding: 12px;
    background: rgba(30,30,40,0.6);
    border: 1px solid rgba(70,130,200,0.25);
    border-radius: var(--radius-xs);
    margin-top: 12px;
}

/* Degree Filter Container (in distribution section - legacy) */
.degree-filter-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: rgba(30,30,40,0.6);
    border: 1px solid rgba(70,130,200,0.25);
    border-radius: var(--radius-xs);
    margin-bottom: 12px;
}

.degree-filter-label {
    font-size: 11px;
    font-weight: 600;
    color: #a8d5ff;
}

/* Slider Container */
.dashboard-slider-container {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(30,30,40,0.7);
    border: 1px solid rgba(70,130,200,0.3);
    border-radius: var(--radius-xs);
    margin-top: 2px;
}

.dashboard-slider-label {
    font-size: 10px;
    font-weight: 600;
    color: #a8d5ff;
    text-align: center;
}

.dashboard-slider {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-xs);
    background: rgba(30,40,60,0.8);
    border: 1px solid rgba(70,130,200,0.4);
    outline: none;
    opacity: 0.9;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.dashboard-slider:hover {
    opacity: 1;
    background: rgba(40,50,70,0.9);
    border-color: rgba(100,160,230,0.6);
    box-shadow: 0 0 6px rgba(70,130,200,0.3);
}

/* Webkit (Chrome, Safari, Edge) - Track */
.dashboard-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-xs);
    background: linear-gradient(90deg,
        rgba(70,130,200,0.2) 0%,
        rgba(70,130,200,0.3) 50%,
        rgba(100,160,230,0.4) 100%);
    border: 1px solid rgba(70,130,200,0.3);
}

/* Webkit - Thumb */
.dashboard-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(100,160,230,1) 0%,
        rgba(70,130,200,0.95) 100%);
    border: 2px solid rgba(255,255,255,0.8);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(70,130,200,0.9),
                0 2px 4px rgba(0,0,0,0.4);
    transition: all 0.2s;
}

.dashboard-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(100,160,230,1),
                0 3px 6px rgba(0,0,0,0.5);
}

/* Firefox - Track */
.dashboard-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-xs);
    background: linear-gradient(90deg,
        rgba(70,130,200,0.2) 0%,
        rgba(70,130,200,0.3) 50%,
        rgba(100,160,230,0.4) 100%);
    border: 1px solid rgba(70,130,200,0.3);
}

/* Firefox - Thumb */
.dashboard-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(100,160,230,1) 0%,
        rgba(70,130,200,0.95) 100%);
    border: 2px solid rgba(255,255,255,0.8);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(70,130,200,0.9),
                0 2px 4px rgba(0,0,0,0.4);
    transition: all 0.2s;
}

.dashboard-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(100,160,230,1),
                0 3px 6px rgba(0,0,0,0.5);
}

.dashboard-slider-value {
    font-size: 11px;
    font-weight: 700;
    color: #d0e8ff;
    text-align: center;
    padding: 2px 6px;
    background: rgba(70,130,200,0.2);
    border-radius: 3px;
    min-width: 32px;
    display: inline-block;
    margin: 0 auto;
}

/* Node value display in filtered list */
.node-value {
    font-size: 9px;
    padding: 2px 5px;
    background: rgba(0,255,0,0.2);
    border: 1px solid rgba(0,255,0,0.4);
    border-radius: 3px;
    color: #dfd;
    font-weight: 600;
}

/* Combined filter badges */
.node-value.combined {
    display: flex;
    gap: var(--spacing-xs);
    background: none;
    border: none;
    padding: 0;
}

.imp-badge {
    font-size: 9px;
    padding: 2px 5px;
    background: rgba(0,255,0,0.2);
    border: 1px solid rgba(0,255,0,0.4);
    border-radius: 3px;
    color: #dfd;
    font-weight: 600;
}

.conf-badge {
    font-size: 9px;
    padding: 2px 5px;
    background: rgba(255,0,0,0.2);
    border: 1px solid rgba(255,0,0,0.4);
    border-radius: 3px;
    color: #fdd;
    font-weight: 600;
}

.degree-badge {
    font-size: 9px;
    padding: 2px 5px;
    background: rgba(0,221,255,0.2);
    border: 1px solid rgba(0,221,255,0.4);
    border-radius: 3px;
    color: #dff;
    font-weight: 600;
}

/* Filter Count Badges */
.filter-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 2px 6px;
    margin-left: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    vertical-align: middle;
}

.dashboard-filter-btn.active .filter-badge {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
    font-weight: 800;
    font-size: 13px;
}

/* Filtered Node List */
.dashboard-node-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.dashboard-node-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(70,130,200,0.08);
    border: 1px solid rgba(70,130,200,0.15);
    border-radius: var(--radius-xs);
    transition: all 0.2s ease;
}

.dashboard-node-item:hover {
    background: rgba(70,130,200,0.2);
    border-color: rgba(70,130,200,0.4);
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(70,130,200,0.3);
}

.dashboard-node-item .node-name {
    color: #a8d5ff;
    font-size: 11px;
    font-weight: 500;
    flex: 1;
}

.dashboard-node-item .node-degree {
    color: rgba(168,213,255,0.7);
    font-size: 9px;
    font-weight: 600;
    background: rgba(70,130,200,0.15);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* Analysis Section - COMPACT VERSION */
.dashboard-section {
    margin-bottom: 6px;  /* Reduced from 12px */
    padding: 4px 6px;    /* Reduced from 8px */
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-xs);  /* Reduced from 6px */
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
}

.dashboard-section.collapsed {
    padding-bottom: 4px;
    background: rgba(255,255,255,0.01);
}

.dashboard-section-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #a8d5ff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    position: relative;
    padding-right: 20px; /* Space for collapse indicator */
}

.dashboard-section-title:hover {
    color: #c0e0ff;
}

.dashboard-section-content {
    transition: all 0.3s ease;
}

.collapse-indicator {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

/* Metric Display - COMPACT VERSION */
.dashboard-metric {
    margin: 3px 0;      /* Reduced from 6px */
    padding: 4px;       /* Reduced from 6px */
    background: rgba(255,255,255,0.03);
    border-radius: 3px;
    border-left: 2px solid rgba(70,130,200,0.5);  /* Reduced from 3px */
}

.dashboard-metric .metric-label {
    font-size: 9px;     /* Reduced from 10px */
    color: #999;
    text-transform: uppercase;
    margin-bottom: 1px; /* Reduced from 2px */
    line-height: 1.1;
}

.dashboard-metric .metric-value {
    font-size: 13px;    /* Reduced from 16px */
    color: #fff;
    font-weight: 700;
    margin-bottom: 1px; /* Reduced from 2px */
    line-height: 1.2;
}

.dashboard-metric .metric-info {
    font-size: 9px;     /* Reduced from 10px */
    color: #b0b0b0;
    font-style: italic;
    line-height: 1.1;
}

/* NEW: Compact detail text for additional info */
.dashboard-metric .metric-detail {
    font-size: 8px;
    color: #888;
    margin-top: 2px;
    line-height: 1.1;
}

/* Stat Display (simpler version for overview) */
.dashboard-stat {
    margin: 4px 0;
    padding: 4px 6px;
    background: rgba(255,255,255,0.02);
    border-radius: 3px;
    font-size: 11px;
    color: #d0d0d0;
}

/* Degree Distribution Buckets */
.dashboard-distribution-bucket {
    display: grid;
    grid-template-columns: 60px 1fr 80px;
    gap: var(--spacing-sm);
    align-items: center;
    margin: 4px 0;
    font-size: 11px;
}

.bucket-label {
    color: #999;
    font-weight: 600;
}

.bucket-bar-container {
    background: var(--glass-bg-light);
    border-radius: 3px;
    height: 16px;
    overflow: hidden;
    position: relative;
}

.bucket-bar {
    background: linear-gradient(90deg, rgba(70,130,200,0.6), rgba(70,130,200,0.9));
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 6px rgba(70,130,200,0.4);
}

.bucket-value {
    color: #d0d0d0;
    text-align: right;
    font-weight: 600;
}

/* Action Button - LARGER & PROMINENT VERSION */
.dashboard-action-btn {
    margin-top: 8px;
    padding: 8px 16px;
    background: rgba(70,130,200,0.25);
    border: 1px solid rgba(70,130,200,0.5);
    color: #d0e8ff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dashboard-action-btn:hover {
    background: rgba(70,130,200,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70,130,200,0.3);
    border-color: rgba(70,130,200,0.7);
}

/* Performance Info - COMPACT VERSION */
.dashboard-perf {
    margin-top: 4px;    /* Reduced from 8px */
    padding: 3px 4px;   /* Reduced from 4px 6px */
    text-align: center;
    font-size: 8px;     /* Reduced from 9px */
    color: #777;
    font-style: italic;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Analysis Content Scrolling */
.dashboard-analysis-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}



.dashboard-analysis-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
    border-radius: 3px;
}

.dashboard-analysis-content::-webkit-scrollbar-thumb {
    background: rgba(70,130,200,0.3);
    border-radius: 3px;
}

.dashboard-analysis-content::-webkit-scrollbar-thumb:hover {
    background: rgba(70,130,200,0.5);
}

/* ========================================
   STATUS DASHBOARD TAB STYLES
   ======================================== */

/* Status Dashboard Container - Compact */
.status-dashboard {
    padding: 8px;
    color: #e0e0e0;
}

/* Status Section - Compact */
.status-section {
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(var(--glass-blur-md));
    -webkit-backdrop-filter: blur(var(--glass-blur-md));
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-heading {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ========================================
   COLLAPSIBLE SECTIONS
   ======================================== */

.status-section.expanded .collapsible-content {
    display: block !important;
}

.collapsible-heading {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.collapsible-heading:hover {
    color: #4fc3f7;
}

.collapse-icon {
    display: inline-block;
    font-size: 10px;
    min-width: 12px;
    transition: transform 0.2s ease;
}

.section-summary {
    margin-left: 12px;
    font-size: 15px;
    color: #4fc3f7;
    font-weight: 700;
    display: inline;
    letter-spacing: 0.3px;
}

.status-section.expanded .section-summary {
    display: none;
}

.collapsible-content {
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.status-section:not(.expanded) .collapsible-content {
    opacity: 0;
    pointer-events: none;
}

.status-section.expanded .collapsible-content {
    opacity: 1;
    pointer-events: auto;
}

/* Recommendations sections also use collapsible functionality */
.recommendations-section:not(.expanded) .collapsible-content {
    opacity: 0;
    pointer-events: none;
}

.recommendations-section.expanded .collapsible-content {
    opacity: 1;
    pointer-events: auto;
}

/* Priority section headers in recommendations tab */
.recommendations-section .priority-section-header {
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.recommendations-section .priority-section-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}

.recommendations-section .priority-section-header:active {
    transform: translateX(0);
}

/* ========================================
   PROFILE COMPLETENESS - ENTITY STATS GRID
   ======================================== */

.profile-completeness-content {
    padding: 2px 0;
}

.entity-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

/* 3-column variant for Profile Completeness */
.entity-stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.entity-stat-card {
    background: var(--glass-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.entity-stat-card:hover {
    background: var(--glass-bg-light);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.entity-stat-card.user-entities {
    border-color: rgba(33, 150, 243, 0.3);
}

.entity-stat-card.user-entities:hover {
    border-color: rgba(33, 150, 243, 0.5);
    background: rgba(33, 150, 243, 0.08);
}

.entity-stat-card.total-entities {
    border-color: rgba(156, 39, 176, 0.3);
}

.entity-stat-card.total-entities:hover {
    border-color: rgba(156, 39, 176, 0.5);
    background: rgba(156, 39, 176, 0.08);
}

.entity-stat-card.filled-data {
    border-color: rgba(76, 175, 80, 0.3);
}

.entity-stat-card.filled-data:hover {
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(76, 175, 80, 0.08);
}

/* Profile Completeness Color Coding */
.entity-stat-card.completeness-very-low {
    border-color: rgba(244, 67, 54, 0.4);  /* Red - 0-25% */
    background: rgba(244, 67, 54, 0.08);
}

.entity-stat-card.completeness-very-low:hover {
    border-color: rgba(244, 67, 54, 0.6);
    background: rgba(244, 67, 54, 0.12);
}

.entity-stat-card.completeness-low {
    border-color: rgba(255, 152, 0, 0.4);  /* Orange - 26-50% */
    background: rgba(255, 152, 0, 0.08);
}

.entity-stat-card.completeness-low:hover {
    border-color: rgba(255, 152, 0, 0.6);
    background: rgba(255, 152, 0, 0.12);
}

.entity-stat-card.completeness-medium {
    border-color: rgba(255, 235, 59, 0.4);  /* Yellow - 51-75% */
    background: rgba(255, 235, 59, 0.08);
}

.entity-stat-card.completeness-medium:hover {
    border-color: rgba(255, 235, 59, 0.6);
    background: rgba(255, 235, 59, 0.12);
}

.entity-stat-card.completeness-high {
    border-color: rgba(76, 175, 80, 0.4);  /* Green - 76-100% */
    background: rgba(76, 175, 80, 0.08);
}

.entity-stat-card.completeness-high:hover {
    border-color: rgba(76, 175, 80, 0.6);
    background: rgba(76, 175, 80, 0.12);
}

.entity-card-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.entity-card-label {
    font-size: 10px;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.entity-card-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.entity-card-sublabel {
    font-size: 9px;
    color: #808080;
}

/* ========================================
   YOUR 12 LIFE AREAS - PROGRESS BAR (Compact)
   ======================================== */

.progress-bar-container {
    margin-bottom: 12px;
}

.progress-bar {
    position: relative;
    height: 24px;
    background: var(--glass-bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(70, 130, 200, 0.8) 0%,
        rgba(70, 130, 200, 0.95) 50%,
        rgba(100, 160, 230, 1) 100%
    );
    border-radius: var(--radius-lg);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(70, 130, 200, 0.5);
}

.progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* ========================================
   LIFE AREAS BADGE GRID (12 badges) - Compact
   ======================================== */

/* Life Areas Grid */
.life-areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Life Area Badge - Premium Design */
.life-area-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px 6px 8px;
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur-md));
    -webkit-backdrop-filter: blur(var(--glass-blur-md));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hover Effects - Premium Glow */
.life-area-badge:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    background: var(--glass-border);
    border-width: 2px;
}

/* Status Colors - Enhanced */
.life-area-badge.completed {
    border-color: rgba(76, 175, 80, 0.6);
    background: rgba(76, 175, 80, 0.1);
}

.life-area-badge.completed:hover {
    border-color: rgba(76, 175, 80, 1);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
}

.life-area-badge.in-progress {
    border-color: rgba(33, 150, 243, 0.6);
    background: rgba(33, 150, 243, 0.1);
}

.life-area-badge.in-progress:hover {
    border-color: rgba(33, 150, 243, 1);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.4);
}

.life-area-badge.not-started {
    border-color: rgba(244, 67, 54, 0.6);
    background: rgba(244, 67, 54, 0.1);
}

.life-area-badge.not-started:hover {
    border-color: rgba(244, 67, 54, 1);
    box-shadow: 0 8px 24px rgba(244, 67, 54, 0.4);
}

/* Status Icon - Top-left Corner */
.badge-status-icon {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 14px;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Progress Ring - Around Icon */
.badge-progress-ring {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.badge-progress-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent calc(var(--progress) * 3.6deg),
        var(--glass-border) calc(var(--progress) * 3.6deg),
        var(--glass-border) 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: 1;
}

/* Color the progress ring based on status */
.life-area-badge.completed .badge-progress-ring::before {
    background: conic-gradient(
        from 0deg,
        #4caf50 0deg,
        #4caf50 calc(var(--progress) * 3.6deg),
        rgba(76, 175, 80, 0.2) calc(var(--progress) * 3.6deg),
        rgba(76, 175, 80, 0.2) 360deg
    );
}

.life-area-badge.in-progress .badge-progress-ring::before {
    background: conic-gradient(
        from 0deg,
        #2196f3 0deg,
        #2196f3 calc(var(--progress) * 3.6deg),
        rgba(33, 150, 243, 0.2) calc(var(--progress) * 3.6deg),
        rgba(33, 150, 243, 0.2) 360deg
    );
}

.life-area-badge.not-started .badge-progress-ring::before {
    background: conic-gradient(
        from 0deg,
        #f44336 0deg,
        #f44336 calc(var(--progress) * 3.6deg),
        rgba(244, 67, 54, 0.2) calc(var(--progress) * 3.6deg),
        rgba(244, 67, 54, 0.2) 360deg
    );
}

/* Area Icon - Larger & Centered */
.badge-area-icon {
    font-size: 26px;
    z-index: 2;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.life-area-badge:hover .badge-area-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Badge Name - Readable */
.badge-name {
    font-size: 10px;
    font-weight: 600;
    color: #e0e0e0;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Progress Percentage - LARGE & BOLD */
.badge-progress {
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Color progress text based on status */
.life-area-badge.completed .badge-progress {
    color: #4caf50;
}

.life-area-badge.in-progress .badge-progress {
    color: #2196f3;
}

.life-area-badge.not-started .badge-progress {
    color: #f44336;
}

/* Visual Progress Bar - Bottom */
.badge-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.badge-progress-fill {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 12px 0;
}

/* Color progress bar based on status */
.life-area-badge.completed .badge-progress-fill {
    background: linear-gradient(90deg, #4caf50, #66bb6a);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

.life-area-badge.in-progress .badge-progress-fill {
    background: linear-gradient(90deg, #2196f3, #42a5f5);
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.6);
}

.life-area-badge.not-started .badge-progress-fill {
    background: linear-gradient(90deg, #f44336, #ef5350);
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.6);
}

/* ========================================
   INTERVIEW ACTIVITY CARDS - Compact
   ======================================== */

.interview-cards {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.interview-card {
    display: flex;
    flex-direction: column;
    padding: 10px;
    max-width: 280px;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(var(--glass-blur-md));
    -webkit-backdrop-filter: blur(var(--glass-blur-md));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.interview-card:hover {
    background: var(--glass-bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 28px;
    margin-bottom: 6px;
    text-align: center;
}

.card-title {
    font-size: 11px;
    font-weight: 600;
    color: #b0b0b0;
    text-align: center;
    margin-bottom: 6px;
}

.card-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
}

/* Interview Activity - Completed vs In Progress Display - Compact */
.card-value .interview-counts {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 6px;
}

.card-value .completed-count {
    color: #4CAF50;
    font-size: 24px;
    font-weight: 800;
}

.card-value .completed-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 400;
    margin-left: 3px;
}

.card-value .separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 6px;
    font-size: 18px;
}

.card-value .inprogress-count {
    color: #FFC107;
    font-size: 20px;
    font-weight: 700;
}

.card-value .inprogress-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 400;
    margin-left: 3px;
}

/* Total available count (second line) - Compact */
.card-value .total-available {
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    gap: 3px;
}

.card-value .total-label {
    font-weight: 400;
}

.card-value .total-count {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.card-value .total-text {
    font-weight: 400;
}

.card-progress {
    margin-bottom: 8px;
}

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

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg,
        rgba(70, 130, 200, 0.8),
        rgba(100, 160, 230, 1)
    );
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-action-btn {
    padding: 5px 10px;
    background: rgba(70, 130, 200, 0.2);
    border: 1px solid rgba(70, 130, 200, 0.4);
    color: #d0e8ff;
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.card-action-btn:hover {
    background: rgba(70, 130, 200, 0.35);
    border-color: rgba(70, 130, 200, 0.6);
    transform: scale(1.02);
}

/* ========================================
   CHAT STATISTICS - Compact
   ======================================== */

.chat-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

/* Most Active Chats - Compact Version */
.most-active-container {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 280px;
    overflow-y: auto;
}

.most-active-title {
    font-size: 12px;
    font-weight: 600;
    color: #b0b0b0;
    margin: 0 0 8px 0;
}

.most-active-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.most-active-list li.most-active-item {
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-xs);
    margin-bottom: 3px;
    font-size: 10px;
    color: #d0d0d0;
    border-left: 2px solid rgba(70, 130, 200, 0.5);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.most-active-list li.most-active-item:hover {
    background: var(--glass-bg-light);
    border-left-color: rgba(70, 130, 200, 0.9);
    transform: translateX(2px);
}

/* Rank Badge - Compact */
.rank-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(70, 130, 200, 0.3), rgba(70, 130, 200, 0.5));
    color: #fff;
    font-weight: 700;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 2px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Expertaizer Name - Compact */
.expertaizer-name {
    color: var(--accent-color, #4fc3f7) !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.expertaizer-name:hover {
    color: #6dd5ff !important;
    text-shadow: 0 0 6px rgba(79, 195, 247, 0.4);
}

/* Expertaizer Title - Compact */
.expertaizer-title {
    color: #888;
    font-size: 9px;
    font-style: italic;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chat Info Container - Inline */
.chat-info {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.info-item {
    font-size: 9px;
    color: #aaa;
    background: rgba(255, 255, 255, 0.04);
    padding: 1px 4px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.info-item.last-chat {
    color: #8bc34a;
}

/* ========================================
   ACHIEVEMENTS - Grouped with Prominent Progress
   ======================================== */

/* Achievement Groups */
.achievement-group {
    margin-bottom: 16px;
}

.achievement-group-header {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    padding: 6px 10px;
    margin-bottom: 8px;
    border-radius: var(--radius-xs);
    background: var(--glass-bg-light);
    border-left: 3px solid;
}

/* Group color themes */
.achievement-group-green .achievement-group-header {
    border-left-color: #4caf50;
    background: rgba(76, 175, 80, 0.12);
}

.achievement-group-blue .achievement-group-header {
    border-left-color: #2196f3;
    background: rgba(33, 150, 243, 0.12);
}

.achievement-group-purple .achievement-group-header {
    border-left-color: #9c27b0;
    background: rgba(156, 39, 176, 0.12);
}

.achievement-group-orange .achievement-group-header {
    border-left-color: #ff9800;
    background: rgba(255, 152, 0, 0.12);
}

.achievement-group-cyan .achievement-group-header {
    border-left-color: #00bcd4;
    background: rgba(0, 188, 212, 0.12);
}

.achievement-group-gold .achievement-group-header {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.12);
}

.achievement-group-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

/* Achievement Badges */
.achievement-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(var(--glass-blur-md));
    -webkit-backdrop-filter: blur(var(--glass-blur-md));
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    opacity: 0.5;
    position: relative;
}

.achievement-badge.unlocked {
    opacity: 1;
    border-color: rgba(255, 193, 7, 0.5);
    background: rgba(255, 193, 7, 0.08);
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.3);
}

.achievement-badge:hover {
    transform: scale(1.03);
}

.achievement-icon {
    font-size: 32px;
    margin-bottom: 6px;
}

.achievement-title {
    font-size: 11px;
    font-weight: 700;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 4px;
}

.achievement-desc {
    font-size: 9px;
    color: #999;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 8px;
}

/* NEW: Prominent Progress Display */
.achievement-progress-container {
    width: 100%;
    margin-top: 6px;
}

.achievement-progress-text {
    font-size: 16px;
    font-weight: 700;
    color: #4fc3f7;
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.achievement-badge.unlocked .achievement-progress-text {
    color: #ffc107;
}

.achievement-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--glass-border);
    border-radius: 3px;
    overflow: hidden;
}

.achievement-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #2196f3);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.achievement-badge.unlocked .achievement-progress-fill {
    background: linear-gradient(90deg, #ffc107, #ff9800);
}

.no-achievements {
    text-align: center;
    padding: 15px;
    color: #888;
    font-size: 11px;
    font-style: italic;
}

/* ========================================
   LOADING & ERROR STATES - Compact
   ======================================== */

.loading-indicator {
    text-align: center;
    padding: 30px 15px;
    color: #999;
    font-size: 12px;
}

.error-message {
    text-align: center;
    padding: 20px 15px;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: var(--radius-md);
}

.error-message h4 {
    color: #f44336;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.error-message p {
    color: #d0d0d0;
    margin: 0 0 16px 0;
    font-size: 13px;
}

.error-message button {
    padding: 8px 16px;
    background: rgba(70, 130, 200, 0.3);
    border: 1px solid rgba(70, 130, 200, 0.5);
    color: #d0e8ff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.error-message button:hover {
    background: rgba(70, 130, 200, 0.5);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

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

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

    .interview-card {
        max-width: 100%;
    }

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

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

/* Mobile */
@media (max-width: 480px) {
    .status-dashboard {
        padding: 8px;
    }

    .status-section {
        padding: 12px;
    }

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

    .life-areas-grid {
        grid-template-columns: 1fr;
    }

    .achievement-group-grid {
        grid-template-columns: 1fr;
    }

    .status-heading {
        font-size: 14px;
    }
}

/* ========================================
   INTERVIEWS MODAL STYLES
   ======================================== */



.interviews-modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-xs);
}

.interviews-modal::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.3);
    border-radius: var(--radius-xs);
    transition: background 0.2s;
}

.interviews-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 195, 247, 0.5);
}

/* Interview list item hover animation */
.interview-list-item {
    position: relative;
}

.interview-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #4fc3f7;
    border-radius: var(--radius-xs) 0 0 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.interview-list-item:hover::before {
    opacity: 1;
}

/* ========================================
   Filter Combinator & Text Search Styles
   Extracted from dashboard-components.js inline styles
   ======================================== */

/* Text Search Container */
.dashboard-text-search-container {
    margin-top: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: none;
}

.dashboard-text-search-wrapper {
    display: flex;
    gap: 6px;
    align-items: center;
}

.dashboard-text-search-input {
    flex: 1;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    outline: none;
    transition: all 0.2s ease;
}

.dashboard-text-search-input:focus {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.dashboard-text-search-clear {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

.dashboard-text-search-clear:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: rgba(239, 68, 68, 1);
}

.dashboard-text-search-matches {
    margin-top: 6px;
    padding: 4px 8px;
    font-size: 10px;
    color: rgba(59, 130, 246, 0.9);
    text-align: center;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 4px;
    display: none;
}

/* Combined Filters Section */
.dashboard-advanced-filters-section {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: block;
}

.dashboard-advanced-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    cursor: pointer;
    user-select: none;
}

.dashboard-advanced-filters-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-advanced-filters-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dashboard-advanced-filters-content {
    display: none;
}

.combinator-description {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    font-style: italic;
    line-height: 1.4;
}

/* Combinator Filter Rows */
[class^="combinator-filter-"] {
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

[class^="combinator-filter-"]:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.combinator-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.combinator-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.combinator-label {
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.combinator-state-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 28px;
    margin-top: 4px;
}

.combinator-result-display {
    margin-top: 12px;
    padding: 10px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    font-size: 11px;
    color: rgba(59, 130, 246, 1);
    font-weight: 600;
    text-align: center;
}

.combinator-active-count {
    margin-top: 6px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.combinator-clear-all-btn {
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: rgba(239, 68, 68, 1);
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.combinator-clear-all-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.4);
}

#active-filter-count-badge {
    display: none;
    padding: 2px 6px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    font-size: 9px;
    color: rgba(59, 130, 246, 1);
}

/* Recommendations Header */
.recommendations-header {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.recommendations-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* Recommendations Priority Sections */
.recommendations-section {
    margin: 16px 0;
}





/* --- STARTUP DNA RADAR --- */
/* Styles moved to mgmt-summary.css for Hero integration */

.readiness-score-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 20px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.readiness-score-svg { width: 130px; height: 130px; transform: rotate(-90deg); filter: drop-shadow(0 0 10px rgba(0, 162, 255, 0.2)); }
.readiness-score-bg { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 6; }
.readiness-score-progress { fill: none; stroke: url(#readinessGradient); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 283; transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
.readiness-score-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.readiness-score-number { font-size: 24px; font-weight: 800; color: #fff; text-shadow: 0 0 15px rgba(0, 162, 255, 0.5); }
.readiness-score-label { font-size: 10px; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 1.5px; margin-top: -2px; }

