.timeline {
    position: relative;
    margin: 20px 0;
    padding: 0 0 0 30px; /* space for the line + dots */
    border-left: 2px solid #ccc; /* the vertical line */
}

.timeline-event {
    position: relative;
    margin-bottom: 20px;
}

.timeline-event .dot {
    position: absolute;
    left: -11px; /* centers the dot on the line */
    top: 5px;
    width: 20px;
    height: 20px;
    background: #007BFF;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #007BFF; /* ring around dot */
}

.timeline-event .label {
    margin-left: 20px;
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 4px;
}

.timeline-event.active .dot {
    background: red; /* highlight active event */
}


/*
read more for message logs
 */
.read-more-container {
    position: relative;
    max-height: 200px;
    overflow: hidden;
}

/* Always show the fade gradient */
.read-more-container {
    position: relative;
    max-height: 200px;
    overflow: hidden;
}

/* Only show fade gradient if container has hidden content */
.read-more-container.has-read-more::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 1));
    z-index: 5;
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    text-align: center;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.read-more-container.has-read-more:hover .fade-overlay {
    opacity: 1;
}

.read-more-text {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.filter-bar select.form-select-sm {
    width: auto;
    flex: 0 0 auto;
}

.filter-bar .btn {
    margin-bottom: 0;
}


/*
 Floating labels: lets public/js/canadim.js detect browser autofill (see there)
 */
@keyframes canadimAutofillStart {
    from {}
    to {}
}

.input-group-outline .form-control:-webkit-autofill {
    animation-name: canadimAutofillStart;
    animation-duration: 1ms;
}
