/* --- Layout Styles for the Complex Desktop Renderer --- */
#network-view-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* --- Panel Styles --- */
#detail-view {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: hidden;
    display: block;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    z-index: 30;
}

#detail-content {
    height: 100%;
    overflow-y: auto;
    transition: opacity 0.15s ease-in-out;
}

#detail-content.content-hiding {
    opacity: 0;
}

#detail-content.feedback-in-progress {
    cursor: not-allowed;
}

/* --- Node Positioning --- */
/* This rule is for the special layout cases that need absolute positioning */
#network-view-content .relative > .node {
    position: absolute;
}

.node-centered-x {
    left: 50%;
    transform: translateX(-50%);
}
.node-centered-x:hover {
    transform: translateX(-50%) translateY(-4px) scale(1.03);
}
.node-centered-x.active {
    transform: translateX(-50%) scale(1.05);
}


/* --- SVG Canvas Positioning --- */
#connector-canvas, #timeline-arrow-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}
#connector-canvas {
    z-index: 1;
}

/* --- Timeline Styles (currently part of this renderer's layout) --- */
#timeline-section {
    margin-top: 4rem;
}

#timeline-outer-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    user-select: none;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding-bottom: 1rem;
}

#timeline-labels-container {
    width: 160px;
    flex-shrink: 0;
    display: grid;
    gap: 0.25rem 0;
}

.timeline-row-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #334155;
    text-align: left;
    padding-left: 0.5rem;
    height: 36px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.timeline-row-label:hover {
    color: #0369a1;
}

#timeline-grid-container {
    position: relative;
    display: grid;
    gap: 0.25rem 0;
    overflow-x: auto;
    flex-grow: 1;
    min-width: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#timeline-grid-container::-webkit-scrollbar {
    display: none;
}

.timeline-header, .timeline-row-track {
    display: grid;
}

.timeline-header {
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-year {
    text-align: center;
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.timeline-year:hover {
    color: #0369a1;
}

.timeline-row-track {
    height: 36px;
}

.timeline-spacer {
    height: 0.75rem;
}

.timeline-item {
    position: relative;
    height: 24px;
    align-self: center;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0 0.5rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    color: white;
    border: 1px solid rgba(0,0,0,0.05);
    width: calc(100% - 4px);
    margin: 0 auto;
    z-index: 2;
    cursor: pointer;
}

.timeline-item.is-process {
    color: #1e293b;
}

.timeline-item.is-highlighted {
    opacity: 1 !important;
    filter: saturate(1) !important;
}

.timeline-item.not-highlighted {
    opacity: 0.5;
    filter: saturate(0.5);
}

.timeline-item.category-highlighted {
    opacity: 1 !important;
    filter: saturate(1) !important;
    outline: 2px solid #334155;
    outline-offset: 2px;
}

.timeline-item.category-faded {
    opacity: 0.3 !important;
    filter: saturate(0) !important;
}

#now-marker {
    position: absolute;
    top: -28px;
    bottom: 0;
    background-color: rgba(239, 68, 68, 0.15);
    border: 2px solid #ef4444;
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    z-index: 3;
    pointer-events: auto;
    cursor: ew-resize;
    opacity: 0;
    transform: translateY(20px);
}

#now-marker.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out, left 0.2s ease-out;
}

#now-marker::before {
    content: 'JETZT';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

#timeline-arrow-svg {
    z-index: 1;
}


.timeline-item.is-pulsing {
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes horizontal-slide-invite {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-15px); }
    75% { transform: translateX(15px); }
}

#now-marker.horizontal-slide-invite {
    animation: horizontal-slide-invite 1.2s ease-in-out 2;
}

