/* Enhanced Progress Bar Styles */

/* Progress container */
.progress-enhanced {
    margin-bottom: 30px;
    position: relative;
}

/* Progress track (background line connecting steps) */
.progress-track {
    position: relative;
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    margin: 0 40px;
    top: 24px;
}

.progress-track-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Steps container */
.progress-steps-enhanced {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

/* Individual step */
.progress-step-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

/* Step circle with icon */
.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 3px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    z-index: 2;
}

.step-circle svg {
    width: 22px;
    height: 22px;
    color: #A0AEC0;
    transition: all 0.3s ease;
}

/* Step states */
.progress-step-enhanced.completed .step-circle {
    background: #10B981;
    border-color: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.progress-step-enhanced.completed .step-circle svg {
    color: white;
}

.progress-step-enhanced.current .step-circle {
    background: var(--azul-marino, #2C5282);
    border-color: var(--azul-marino, #2C5282);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
    animation: pulse-current 2s ease-in-out infinite;
}

.progress-step-enhanced.current .step-circle svg {
    color: white;
}

@keyframes pulse-current {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(44, 82, 130, 0.5);
    }
}

/* Hover effect */
.step-circle:hover {
    transform: scale(1.08);
}

.progress-step-enhanced.completed .step-circle:hover {
    background: #059669;
    border-color: #059669;
}

/* Step label */
.step-label-enhanced {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #718096;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 80px;
}

.progress-step-enhanced.completed .step-label-enhanced {
    color: #10B981;
}

.progress-step-enhanced.current .step-label-enhanced {
    color: var(--azul-marino, #2C5282);
    font-weight: 600;
}

/* Tooltip */
.step-tooltip {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1A202C;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.step-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1A202C;
}

.step-circle:hover + .step-tooltip,
.step-circle:focus + .step-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Tooltip status indicator */
.tooltip-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 11px;
}

.tooltip-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.tooltip-status-dot.completed {
    background: #10B981;
}

.tooltip-status-dot.current {
    background: #F6E05E;
}

.tooltip-status-dot.pending {
    background: #A0AEC0;
}

/* Checkmark icon for completed */
.step-checkmark {
    display: none;
}

.progress-step-enhanced.completed .step-checkmark {
    display: block;
}

.progress-step-enhanced.completed .step-icon-default {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .progress-track {
        margin: 0 20px;
        top: 20px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
    }

    .step-circle svg {
        width: 18px;
        height: 18px;
    }

    .step-label-enhanced {
        font-size: 11px;
        max-width: 60px;
    }

    .step-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .progress-track {
        margin: 0 10px;
        top: 16px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
    }

    .step-circle svg {
        width: 14px;
        height: 14px;
    }

    .step-label-enhanced {
        font-size: 9px;
        max-width: 50px;
    }
}

/* Success animation */
@keyframes step-complete {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.progress-step-enhanced.just-completed .step-circle {
    animation: step-complete 0.5s ease;
}
