/* ===== 流程指示器組件樣式 ===== */

.progress-indicator {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-size: 14px;
}

.progress-step {
    display: flex;
    align-items: center;
    flex-grow: 1;
    text-align: center;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 12px;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    z-index: -1;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ddd;
    color: #fff;
    display: inline-block;
    line-height: 24px;
    font-weight: bold;
    margin-right: 8px;
}

.step-label {
    color: #aaa;
}

/* Active Step */
.progress-step.active .step-number {
    background-color: #007bff; /* Blue */
}

.progress-step.active .step-label {
    color: #000;
    font-weight: bold;
}

/* Completed Step */
.progress-step.completed .step-number {
    background-color: #28a745; /* Green */
}

.progress-step.completed .step-label {
    color: #888;
}

.progress-step.completed::after {
    background-color: #28a745; /* Green line */
}

/* 響應式設計 */
@media (max-width: 768px) {
    .progress-indicator {
        font-size: 12px;
        margin: 15px 0;
    }

    .step-number {
        width: 20px;
        height: 20px;
        line-height: 20px;
        margin-right: 6px;
    }

    .progress-step:not(:last-child)::after {
        top: 10px;
    }
}

@media (max-width: 576px) {
    .progress-indicator {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-step {
        margin-bottom: 10px;
        flex-grow: 0;
    }

    .progress-step:not(:last-child)::after {
        display: none;
    }
}