/* Component-specific styles */

/* Upload Area Components */
.upload-area {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-area:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.upload-area.dragover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.25);
}

.upload-icon {
    transition: transform 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: scale(1.1);
}

/* File Info Component */
.file-info {
    animation: slideInUp 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Button Components */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover:not(:disabled) {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Loading Button States */
.btn-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loading {
    opacity: 1;
}

/* Spinner Animation */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Status Message Components */
.status-message {
    animation: fadeInUp 0.3s ease;
    transition: all 0.3s ease;
}

.status-message:hover {
    transform: translateX(5px);
}

.status-message.error {
    border-left: 4px solid #e53e3e;
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
}

.status-message.success {
    border-left: 4px solid #38a169;
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
}

.status-message.warning {
    border-left: 4px solid #d69e2e;
    background: linear-gradient(135deg, #fef5e7 0%, #fbd38d 100%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table Components */
.preview-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.preview-table:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.preview-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.preview-table tr {
    transition: background-color 0.2s ease;
}

.preview-table tr:hover {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.preview-table td {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

/* Form Input Components */
.form-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border: 2px solid #e2e8f0;
}

.form-input:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Output Configuration Component */
.output-config {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.output-config:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Preview Area Components */
.preview-area {
    animation: slideInUp 0.4s ease;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.preview-content {
    position: relative;
}

.preview-actions {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

/* Conversion Stats */
.conversion-stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    font-weight: 500;
    color: #667eea;
}

.conversion-stats::before {
    content: '✓';
    font-weight: bold;
    color: #38a169;
}

/* Notification Components */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.notification.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notification.success {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.notification.error {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.notification.warning {
    background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Progress Bar Component */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Card Components */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Badge Components */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.success {
    background: rgba(56, 161, 105, 0.1);
    color: #38a169;
}

.badge.error {
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
}

.badge.warning {
    background: rgba(214, 158, 46, 0.1);
    color: #d69e2e;
}

.badge.info {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}
