/* Shared CSS for all conversion pages - Enhanced UI/UX */

.upload-area {
    border: 2px dashed #7d64ff;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(125, 100, 255, 0.1), transparent);
    transition: left 0.5s;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover, .upload-area.dragover {
    background: linear-gradient(135deg, #f0f0ff 0%, #f8f9fa 100%);
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.upload-area i {
    transition: transform 0.3s;
}

.upload-area:hover i {
    transform: scale(1.1);
}

.step-area {
    display: none;
    margin: 2rem auto;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading-container {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.file-info-card {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.file-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    text-align: left;
}

.file-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.file-size {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Step Indicators */
.step-indicators {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
}

.step-indicators::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.step-indicator {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.3s;
    position: relative;
}

.step-indicator.active .step-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.step-indicator.completed .step-circle {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.step-indicator.completed .step-circle::after {
    content: '✓';
    font-size: 1.2rem;
}

.step-label {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
    text-align: center;
}

.step-indicator.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* Progress Bar */
.progress-container {
    margin: 2rem 0;
}

/* Sticky progress on mobile */
@media (max-width: 768px) {
    .progress-container {
        position: sticky;
        top: 0;
        z-index: 100;
        background: white;
        padding: 1rem;
        margin: 0;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .loading-container {
        padding-top: 0.5rem;
    }
}

.progress-wrapper {
    background: var(--gray-100);
    border-radius: 12px;
    height: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.progress-bar-enhanced {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    border-radius: 12px;
    transition: width 0.3s ease-out;
    animation: progressShine 2s infinite;
    position: relative;
    overflow: hidden;
}

@keyframes progressShine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.progress-bar-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.progress-percent {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.progress-time {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Status Message */
.status-message {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 12px;
    margin: 1.5rem 0;
}

.status-message h4 {
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.status-message .status-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.status-message p {
    color: var(--gray-600);
    margin: 0;
}

/* Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error State */
.error-state {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.error-state i {
    color: #ef4444;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-state h4 {
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.error-state p {
    color: #991b1b;
    margin-bottom: 1.5rem;
}

/* Success State */
.success-animation {
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Buttons */
.btn {
    margin-bottom: 15px;
    transition: all 0.3s;
    border-radius: 8px;
    font-weight: 500;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* Payment Modal Styles - Import from pdf-to-word.html */
/* (Payment modal CSS will be included in each page's inline styles) */

/* Responsive */
@media (max-width: 768px) {
    .step-indicators {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-indicators::before {
        display: none;
    }
    
    .file-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .file-details {
        text-align: center;
    }
    
    .loading-container {
        padding: 1.5rem;
    }
    
    .file-info-card {
        padding: 1rem;
    }
    
    /* Mobile: Compact status message */
    .status-message {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .status-message h4 {
        font-size: 1rem;
    }
    
    .status-message p {
        font-size: 0.875rem;
    }
    
    /* Mobile: Progress info smaller */
    .progress-info {
        margin-top: 0.5rem;
    }
    
    .progress-percent {
        font-size: 1rem;
    }
    
    .progress-time {
        font-size: 0.8125rem;
    }
}

/* Hide Google reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

