body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 10px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

#upload-section {
    margin-bottom: 20px;
}

#controls {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

#current-date {
    margin: 0 15px;
    font-weight: bold;
}

#progress-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#map {
    height: 400px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
}

#controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

#timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 150px;
    padding: 10px 0;
}

.stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 60px;
    position: relative;
    z-index: 2;
    transition: transform 0.2s;
}

/* Add lines before stops (except the first one) */
.stop:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 45px; /* Align with dot */
    right: 100%; /* Position to the left of the stop */
    width: 120px; /* Width of the line */
    height: 2px;
    background-color: #ccc;
    z-index: 1;
}

/* Style for visited lines */
.stop.visited:not(:first-child)::before,
.stop.current:not(:first-child)::before {
    background-color: #4CAF50;
}

/* Hover effect for clickable stops */
.stop:hover:not(.current) {
    transform: scale(1.05);
    cursor: pointer;
}

.status-label {
    font-size: 0.8em;
    color: #777;
    margin-bottom: 5px;
    font-weight: bold;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 5px 0;
}

.stop.visited .dot {
    background-color: #4CAF50;
}

.stop.current .dot {
    border: 3px solid #FF5722;
    box-sizing: border-box;
}

.label, .date {
    margin-top: 3px;
    text-align: center;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover styles for label and date */
.stop:not(.current) .label:hover,
.stop:not(.current) .date:hover {
    color: #4CAF50;
    text-decoration: underline;
}

#prev-day, #next-day {
    flex: 0 0 auto; /* Don't allow buttons to grow or shrink */
    min-width: 120px; /* Set a minimum width for buttons */
}

#current-date {
    flex: 0 0 auto; /* Don't allow to grow or shrink */
    width: 300px; /* Fixed width */
    margin: 0 15px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis for text that overflows */
}
