
:root {
    --bg-dark: #0b1520;
    --bg-card: #122031;
    --teal-clinical: #00f2fe;
    --blue-clinical: #0072ff;
    --amber-clinical: #ff9f43;
    --text-light: #e2e8f0;
}

.brain-preview-container {
    background: var(--bg-card);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: var(--text-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.brain-header { margin-bottom: 15px; }

.brain-title {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.brain-title i {
    color: var(--teal-clinical);
    animation: pulseBrain 2s infinite;
}

.brain-subtitle {
    font-size: 0.9rem;
    color: #8fa0b5;
    margin: 5px 0 0 0;
}

#brain-canvas-root {
    width: 100%;
    height: 380px;
    background: var(--bg-dark);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Estilos de los Nodos del Grafo */
.node { cursor: grab; transition: stroke 0.2s; }
.node:active { cursor: grabbing; }

.node-patient { fill: #0d9488; stroke: var(--teal-clinical); stroke-width: 2px; }
.node-problem { fill: #1d4ed8; stroke: #3b82f6; stroke-width: 1.5px; }
.node-shared { fill: #d97706; stroke: var(--amber-clinical); stroke-width: 2px; }

.link-strong { stroke: rgba(0, 242, 254, 0.4); stroke-width: 2px; }
.link-weak { stroke: rgba(255, 159, 67, 0.5); stroke-width: 1.5px; stroke-dasharray: 4,4; }

.node-label {
    fill: #fff;
    font-size: 11px;
    font-weight: 500;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.brain-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.85rem;
}

.legend-item { display: flex; align-items: center; gap: 6px; color: #8fa0b5; }

@keyframes pulseBrain {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}
