/* Shipment Timeline Styles */
.shipment-timeline {
    position: relative;
    padding: 20px 0;
}

.shipment-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50px;
    width: 4px;
    background: var(--border-color);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-badge {
    position: absolute;
    top: 0;
    left: 50px;
    width: 50px;
    height: 50px;
    margin-left: -25px;
    border-radius: 50%;
    text-align: center;
    font-size: 1.4em;
    line-height: 50px;
    color: white;
    z-index: 100;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25), 0 3px 6px rgba(0, 0, 0, 0.3);
}

.timeline-panel {
    position: relative;
    margin-left: 90px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.timeline-panel:before {
    position: absolute;
    top: 15px;
    left: -15px;
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 15px 15px 0;
    border-color: transparent var(--card-bg) transparent transparent;
}

.timeline-title {
    margin-top: 0;
    font-weight: 600;
    color: var(--light-text);
    font-size: 1.1rem;
}

.timeline-body p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.timeline-body .text-muted {
    color: var(--gray-text) !important;
}

/* Latest Event Styles */
.latest-event {
    position: relative;
    padding: 20px;
    background: var(--darker-bg);
    border-radius: 8px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.latest-event h5 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.event-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.6em;
    color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25), 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Event badge colors */
.bg-event-pickup {
    background-color: #845ef7; /* Purple */
}

.bg-event-departure {
    background-color: #4dabf7; /* Blue */
}

.bg-event-arrival {
    background-color: #15aabf; /* Teal */
}

.bg-event-delivery {
    background-color: #20c997; /* Green */
}

.bg-event-customs {
    background-color: #fd7e14; /* Orange */
}

.bg-event-default {
    background-color: #495057; /* Gray */
}

/* Animation for collapse */
.collapse {
    transition: all 0.3s ease;
}

/* Timeline date/time styling */
.timeline-date {
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* Location styling */
.location-info {
    font-size: 0.95rem;
    color: var(--text-color);
}

.location-info strong {
    color: var(--light-text);
}

/* Remarks styling */
.timeline-remarks {
    font-style: italic;
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .shipment-timeline:before {
        left: 30px;
    }
    
    .timeline-badge {
        left: 30px;
    }
    
    .timeline-panel {
        margin-left: 70px;
    }
}
