/* Tracking Form */
.tracking-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.tracking-form .form-control {
    width: 50%;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

/* Tracking Progress Bar */
.tracking-progress-bar {
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tracking-progress-bar .row {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-step {
    text-align: center;
    position: relative;
    width: 25%;
}

/* The line connecting the steps */
.progress-step:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 30px; /* Vertically center with the icon */
    right: 50%;
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    z-index: 0; /* Behind the icon */
}

.progress-step.completed:not(:first-child)::before {
    background-color: #0984e3; /* Blue for completed line */
}

.progress-step .progress-icon {
    width: 60px;
    height: 60px;
    background-color: #e0e0e0; /* Default grey */
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    position: relative;
    z-index: 1; /* Above the line */
    border: 4px solid #f7f7f7; /* Gap to see background */
    transition: all 0.3s ease;
}

.progress-step.completed .progress-icon {
    background-color: #0984e3; /* Blue for completed */
}

/* Current state styling */
.progress-step.current .progress-icon {
    background-color: #f39c12; /* Orange for current */
    transform: scale(1.15);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
}

.progress-step .progress-label {
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333; /* Improved contrast */
    font-size: 14px;
}

.progress-step.current .progress-label {
    font-weight: 700;
    color: #f39c12; /* Orange text for current */
}

/* Timeline for Shipment History */
.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: #e0e0e0;
}

.timeline li {
    margin-bottom: 20px;
    position: relative;
    padding-left: 45px;
}

.timeline-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #0984e3;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 3px solid #f7f7f7;
}

.timeline-panel {
    position: relative;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.timeline-title {
    margin-top: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

/* Improve shipment details text contrast */
.card-body p {
    color: #333 !important;
}

.card-body strong {
    color: #222 !important;
}

/* Status badge styling */
.badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Shipment details container */
.shipment-details-area .card {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.shipment-details-area .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    color: #333;
}