/* =========================================
   APPLICATION.CSS - Progress Tracker Component
   Fully Cleaned & Integrated
========================================= */

/* Container */
.app-progress {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--gap-lg);
    box-sizing: border-box;
}

.status-card {
    margin-bottom: var(--gap-lg);
    text-align: center;
}

.status-pill {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 16px;
}

/* Progress Bar */
.progress-bar {
    position: relative;
    height: 8px;
    background: var(--muted);
    border-radius: 6px;
    margin-top: 86px;
    overflow: visible;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress);
    background: linear-gradient(90deg, #28a745 0%, #2ecc71 100%);
    border-radius: 6px;
    transition: width 0.6s ease;
    z-index: 1;
}

/* Floating Step Info Box */
.progress-box {
    position: absolute;
    left: var(--progress);
    top: -62px;
    transform: translateX(-50%);
    background: var(--card);
    color: var(--text);
    padding: 8px 12px;
    border-radius: var(--sradius);
    box-shadow: var(--shadow-sm);
    min-width: 160px;
    max-width: 260px;
    text-align: center;
    z-index: 4;
    pointer-events: none;
}

.progress-box-title {
    font-size: 14px;
    color: var(--text);
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.progress-box-sub {
    font-size: 12px;
    color: var(--white);
    margin-top: 4px;
    font-weight: 600;
}

/* Status Row */
.status-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    list-style: none;
    margin-top: 12px;
    padding: 0;
    width: 100%;
    gap: 0;
    overflow-x: hidden;
}

/* Step Item */
.step-item {
    flex: 1 1 auto;
    text-align: center;
    min-width: 80px;
    box-sizing: border-box;
    cursor: default;
    padding: 4px;
}

/* Step Dot */
.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: var(--card);
    line-height: 30px;
    font-size: 13px;
    font-weight: 800;
    color: #555;
    display: inline-block;
}

/* Step Label */
.step-label {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted-2);
    max-width: 100px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Step States */
.step-item.completed .step-dot {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.step-item.completed .step-label {
    color: var(--success);
    font-weight: 700;
}

.step-item.current .step-dot {
    background: var(--warning);
    border-color: #d4a800;
    color: #222;
}

.step-item.current .step-label {
    color: #b8860b;
    font-weight: 800;
}

.step-item.upcoming .step-dot {
    background: var(--card);
    border-color: #ddd;
    color: #999;
}

.step-item.upcoming .step-label {
    color: #999;
    font-weight: 500;
}

/* -------------------------
   Mobile Responsive
------------------------- */
@media (max-width: 720px) {
    .step-label {
        display: none;
    }

    .step-item {
        min-width: 55px;
    }

    .progress-box {
        min-width: 110px;
        font-size: 12px;
        padding: 6px 10px;
    }

    .progress-box-sub {
        font-size: 11px;
    }

    .step-dot {
        width: 26px;
        height: 26px;
        font-size: 12px;
        line-height: 26px;
    }
}

@media (max-width: 480px) {
    .progress-box {
        top: -54px;
        min-width: 100px;
    }

    .app-progress {
        padding: 8px;
    }

    .progress-bar {
        margin-top: 28px;
    }
}
