﻿/* Progress Tracker - Flexbox Layout */
.progress-tracker {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding-left: 15px;
}

/* Step layout */
.step {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

/* Circle styles */
.circle {
    width: 30px;
    height: 30px;
    background-color: #007bff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    z-index: 2;
    flex-shrink: 0;
    position: relative;
}

/* Day label */
.day-label {
    font-weight: bold;
    margin-left: 20px;
    width: 100px;
    min-width: 80px;
}

/* Details */
.details {
    margin-left: 20px;
    font-size: 14px;
    color: #555;
    flex: 1;
}

/* Dynamic line connecting the steps */
.line {
    width: 2px;
    background-color: #007bff;
    position: absolute;
    top: 30px; /* Positioned from the middle of the circle */
    left: 14px; /* Align with the center of the circle */
    z-index: 1;
}

/* Responsive lines between steps */
.step:not(:last-child)::after {
    content: '';
    width: 2px;
    background-color: #007bff;
    position: absolute;
    top: 50%; /* Start from the center of the current circle */
    left: 14px; /* Align with the center of the circle */
    height: calc(100% + 30px); /* Dynamic height calculation */
    z-index: 1;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .circle {
        width: 25px;
        height: 25px;
    }

    .day-label {
        margin-left: 10px;
        width: auto;
    }

    .details {
        margin-left: 10px;
        font-size: 12px;
    }

    .step:not(:last-child)::after {
        height: calc(100% + 20px); /* Shorter lines on smaller screens */
    }
}

@media (max-width: 480px) {
    .circle {
        width: 20px;
        height: 20px;
    }

    .day-label {
        margin-left: 5px;
    }

    .details {
        font-size: 10px;
    }

    .step:not(:last-child)::after {
        height: calc(100% + 15px); /* Even shorter lines for very small screens */
    }
}


