/* Global Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Step Indicator */
.step-indicator-wrapper {
    position: fixed;
    top: 6rem;
    /* top-24 */
    left: 2rem;
    /* left-8 */
    z-index: 9999;
    pointer-events: none;
}

.step-indicator-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* gap-3 */
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 1rem;
    /* px-4 py-2 */
    border-radius: 9999px;
    /* rounded-full */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.step-counter {
    font-size: 0.75rem;
    /* text-xs */
    font-family: monospace;
    color: rgba(255, 255, 255, 0.6);
}

.step-current-num {
    color: #3b82f6;
    font-weight: 700;
}

.step-divider {
    height: 1rem;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.step-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-item {
    display: flex;
    align-items: center;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}

.step-label.active {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.step-label.upcoming {
    color: rgba(255, 255, 255, 0.2);
}

.step-label.completed {
    color: rgba(255, 255, 255, 0.4);
}

.step-arrow {
    font-size: 10px;
    margin: 0 0.25rem;
    transition: color 0.3s;
}

.step-arrow.active {
    color: #3b82f6;
}

.step-arrow.inactive {
    color: rgba(255, 255, 255, 0.1);
}

/* Sticky Action Bar */
.sticky-bar-wrapper {
    position: fixed;
    bottom: 2rem;
    /* bottom-8 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    max-width: 36rem;
    /* max-w-xl */
    pointer-events: none;
}

@media (max-width: 768px) {
    .sticky-bar-wrapper {
        display: none !important;
    }
}

/* Override animation transform for this specific element to handle centering */
@keyframes fadeInUpCentered {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.sticky-bar-wrapper.fade-in-up {
    animation: fadeInUpCentered 0.5s ease-out forwards;
}

.sticky-bar-content {
    margin: 0 1rem;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(24px);
    /* backdrop-blur-xl */
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    /* rounded-2xl */
    padding: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    pointer-events: auto;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.action-btn {
    padding: 0.5rem;
    border-radius: 0.75rem;
    /* rounded-xl */
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.action-btn.enabled {
    color: rgba(255, 255, 255, 0.8);
}

.action-btn.enabled:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.action-btn.disabled {
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
}

.btn-text {
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
}

@media (max-width: 640px) {
    .btn-text {
        display: none;
    }
}

.bar-divider {
    height: 1.5rem;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.status-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.saved-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.5s;
}

.saved-text {
    font-size: 0.75rem;
    color: rgba(52, 211, 153, 0.8);
    /* emerald-400/80 */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.continue-btn {
    background-color: #ffffff;
    color: #000000;
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
}

.continue-btn:hover {
    transform: scale(1.05);
}

.continue-btn:active {
    transform: scale(0.95);
}
