:root {
    --primary: #C1272D;
    --primary-dark: #a01f24;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #FF9800;
    --secondary: #6C757D;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 3rem;
}

header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--primary);
}

.logo-container {
    font-size: 1.75rem;
    font-weight: 600;
}

.logo-lingua {
    color: var(--primary);
}

.logo-terms {
    color: var(--gray-600);
}

.container {
    max-width: 1000px;
}

/* Stepper */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.step.completed .step-number {
    background: var(--success);
    color: white;
}

.step.completed .step-number::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step-line {
    width: 100px;
    height: 2px;
    background: var(--gray-200);
    margin: 0 1rem;
}

.step.completed + .step-line {
    background: var(--success);
}

/* Step Content */
.step-content {
    display: none;
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Upload Zone */
.upload-zone {
    border: 3px dashed var(--gray-300);
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: var(--gray-50);
}

.upload-zone:hover {
    border-color: var(--primary);
    background: white;
}

.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    transform: scale(1.02);
}

.upload-content i {
    transition: transform 0.3s;
}

.upload-zone:hover .upload-content i {
    transform: translateY(-5px);
}

/* File Preview */
.file-preview .card {
    border: 2px solid var(--success);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.1);
}

/* Config Presets */
.config-preset {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.config-preset:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.config-preset.active {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.preset-radio {
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s;
}

.config-preset.active .preset-radio {
    border-color: var(--primary);
}

.config-preset.active .preset-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

/* Processing Steps */
.processing-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.processing-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: var(--gray-50);
    color: var(--gray-600);
}

.processing-step.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.processing-step.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    font-weight: 500;
}

.processing-step i,
.processing-step .spinner-border {
    font-size: 1.25rem;
}

/* Success Icon */
.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s;
}

.success-icon i {
    font-size: 3rem;
    color: white;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Stat Cards */
.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Progress Bar */
.progress {
    background: var(--gray-200);
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
}

/* Form Controls */
.form-select-lg,
.form-control {
    border-radius: 0.5rem;
    border: 2px solid var(--gray-200);
}

.form-select-lg:focus,
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-range::-webkit-slider-thumb {
    background: var(--primary);
}

.form-range::-moz-range-thumb {
    background: var(--primary);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Cards */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .stepper {
        padding: 1rem;
    }
    
    .step-line {
        width: 50px;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-content {
        padding: 1.5rem;
    }
    
    .upload-zone {
        padding: 2rem 1rem;
    }
}
