/* application-status.css */
:root {
    --completed-color: #28a745;
    --current-color: #ffc107;
    --muted-color: #e9ecef;
    --muted-text: #777;
    --label-color: #333;
}

/* container */
.app-progress {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}

/* bar wrapper */
.progress-bar {
    position: relative;
    height: 8px;
    background: var(--muted-color);
    border-radius: 6px;
    margin-top: 36px;
    overflow: visible;
}

/* fill (completed area) - width controlled by inline style var --progress */
.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress); /* example: "36%" */
    background: linear-gradient(90deg, #28a745 0%, #2ecc71 100%);
    border-radius: 6px;
    transition: width 600ms ease;
    z-index: 1;
}

/* center box above the bar showing current step */
.progress-box {
    position: absolute;
    left: var(--progress);
    top: -62px;
    transform: translateX(-50%);
    background: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(11, 22, 40, 0.06);
    min-width: 160px;
    max-width: 260px;
    text-align: center;
    z-index: 4;
    pointer-events: none; /* display-only */
}

.progress-box-title {
    display: block;
    font-size: 14px;
    color: var(--label-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-box-sub {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* step list under the bar */
/* step list under the bar */
.steps-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 12px 0 0 0;
    padding: 0;
    list-style: none;
    gap: 0; /* no gap, flex distributes evenly */
    overflow-x: hidden; /* no scroll */
    width: 100%;
}

/* each step evenly distributed */
.step-item {
    flex: 1 1 auto; /* allow equal growth/shrink */
    text-align: center;
    padding: 4px;
    cursor: default;
    box-sizing: border-box;
}

/* each step */
.step-item {
    flex: 1 1 0;
    text-align: center;
    min-width: 80px;
    box-sizing: border-box;
    padding: 4px;
    cursor: default;
}

/* dot (circle) */
.step-dot {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    font-weight: 800;
    font-size: 13px;
    color: #555;
    box-sizing: border-box;
}

/* label text */
.step-label {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted-text);
    max-width: 100px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* completed step styles */
.step-item.completed .step-dot {
    background: var(--completed-color);
    border-color: var(--completed-color);
    color: #fff;
}
.step-item.completed .step-label {
    color: var(--completed-color);
    font-weight: 700;
}

/* current step styles */
.step-item.current .step-dot {
    background: var(--current-color);
    border-color: #d4a800;
    color: #222;
}
.step-item.current .step-label {
    color: #b8860b;
    font-weight: 800;
}

/* upcoming step styles */
.step-item.upcoming .step-dot {
    background: #fff;
    border-color: #ddd;
    color: #999;
}
.step-item.upcoming .step-label {
    color: #999;
    font-weight: 500;
}

/* responsive tweaks */
@media (max-width: 720px) {
    .step-label {
        display: none;
    } /* hide long labels on small screens */
    .step-item {
        min-width: 64px;
    }
    .progress-box {
        min-width: 120px;
        font-size: 13px;
    }
}
