/* Essential Custom Styles for Tailwind Integration */

/* Custom animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Page Management */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: slideIn 0.3s ease-in-out;
}

/* Amount Selection State */
.amount-option.selected {
    border-color: #6c5ce7 !important;
    background-color: #6c5ce7 !important;
    color: white !important;
}

/* Loading State for Submit Button */
.submit-button.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

/* Error States */
input.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* Processing Steps Active State */
.step-item.active .step-icon {
    background: #28a745 !important;
    color: white !important;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .spinner {
        animation: none;
        border: 4px solid #6c5ce7;
        border-top-color: transparent;
    }
}