/* Finance/Resources/timeline.css */

.timeline-container {
    padding: 2rem 1rem 1rem;
}

.timeline-wrapper {
    position: relative;
    height: 50px;
    margin-bottom: 1.5rem;
}

.timeline-track {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #f3f4f6;
    border-radius: 2px;
}

.timeline-track-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
    background-color: #3b82f6; 
}

.timeline-points {
    position: relative;
    display: flex;
    justify-content: space-between;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

/* UPDATED: Increased dot size */
.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1;
    margin-top: -1px; /* Adjusted for new size */
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.5);
}

.timeline-dot.highly-positive { background-color: #166534; }
.timeline-dot.positive { background-color: #22c55e; }
.timeline-dot.negative { background-color: #ef4444; }
.timeline-dot.highly-negative { background-color: #991b1b; }
.timeline-dot.neutral  { background-color: #64748b; }
.timeline-dot.na       { background-color: #9ca3af; }

.timeline-item.selected .timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: translateY(-2px);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #3b82f6;
}

.timeline-item.selected .timeline-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background-color: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    z-index: -1;
}

.timeline-label {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #475569;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.timeline-item.selected .timeline-label {
    font-weight: 600;
    color: #1e293b;
}

.timeline-summary-container {
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    border-left-width: 5px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    transition: border-color 0.3s ease;
}

.timeline-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.timeline-summary-date {
    font-size: 1.125rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.timeline-summary-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #334155;
}

.timeline-summary-container.highly-positive { border-left-color: #166534; }
.timeline-summary-container.highly-positive .timeline-summary-date { color: #14532d; }
.tag.sentiment-highly-positive-bg { background-color: #dcfce7; color: #14532d !important;}

.timeline-summary-container.positive { border-left-color: #22c55e; }
.timeline-summary-container.positive .timeline-summary-date { color: #166534; }

.timeline-summary-container.negative { border-left-color: #ef4444; }
.timeline-summary-container.negative .timeline-summary-date { color: #991b1b; }

.timeline-summary-container.highly-negative { border-left-color: #991b1b; }
.timeline-summary-container.highly-negative .timeline-summary-date { color: #7f1d1d; }
.tag.sentiment-highly-negative-bg { background-color: #fee2e2; color: #7f1d1d !important;}

.timeline-summary-container.neutral { border-left-color: #64748b; }
.timeline-summary-container.neutral .timeline-summary-date { color: #334155; }

.timeline-summary-container.na { border-left-color: #9ca3af; }
.timeline-summary-container.na .timeline-summary-date { color: #475569; }