* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Syne', 'Inter', sans-serif;
    background: #0f0f23;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* Animated Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Floating Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #6366f1;
    top: -200px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    bottom: -150px;
    left: -100px;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    z-index: 100;
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo container */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.logo-img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    border-radius: 12px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 10;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.logo-img.error {
    display: none;
}

.logo-img.error + .logo-icon {
    display: flex;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 240px;
    height: 240px;
    font-size: 80px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.logo-text {
    margin-left: 260px;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text p {
    font-size: 0.7rem;
    color: #8888aa;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    animation: blink 1s infinite;
}

.status-dot.connected {
    background-color: #10b981;
    animation: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Steps */
.steps-container {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 0 2rem;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 3rem;
}

.steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(99, 102, 241, 0.2);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #1a1a2e;
    border: 2px solid #2d2d44;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 700;
    transition: all 0.3s;
}

.step.active .step-number {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.step.completed .step-number {
    background: #10b981;
    border-color: #10b981;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #8888aa;
}

.step.active .step-label {
    color: #a78bfa;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.card-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-header p {
    color: #8888aa;
}

.card-body {
    padding: 2rem;
}

.card-footer {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* ========== DROPZONE DESIGN ========== */
.dropzone {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(15, 15, 35, 0.9));
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 28px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.dropzone::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #a78bfa, #6366f1);
    border-radius: 28px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.dropzone:hover::before {
    opacity: 1;
}

.dropzone:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dropzone.drag-over {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    transform: scale(1.02);
}

.dropzone.loading {
    cursor: wait;
    border-color: #a78bfa;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(99, 102, 241, 0.05));
}

.dropzone.success {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
}

.dropzone.celebration {
    animation: celebration 0.8s ease;
}

.dropzone.error {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    animation: shake 0.5s ease;
}

/* Uploaded / persistent success state */
.dropzone.uploaded {
    border-color: #10b981;
    border-style: solid;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
    cursor: default;
}

.dropzone.uploaded .dropzone-title {
    color: #10b981;
    font-size: 1rem;
    font-family: 'DM Mono', monospace;
    word-break: break-all;
}

.dropzone.uploaded .dropzone-icon {
    font-size: 2.8rem;
}

.ready-pill {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    animation: pillPulse 2s infinite ease-in-out;
}

@keyframes pillPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

@keyframes celebration {
    0% { transform: scale(1); }
    20% { transform: scale(1.05); background: rgba(16, 185, 129, 0.2); }
    40% { transform: scale(1); }
    60% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.dropzone-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.dropzone-icon {
    font-size: 4rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.dropzone.success .dropzone-icon {
    animation: bounceSuccess 0.6s ease;
}

.success-checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.dropzone.success .success-checkmark {
    animation: checkmarkPop 0.5s ease forwards;
}

.dropzone.success .dropzone-icon {
    opacity: 0;
    transform: scale(0.5);
}

@keyframes bounceSuccess {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes checkmarkPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.dropzone-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.dropzone-subtitle {
    font-size: 0.85rem;
    color: #8888aa;
}

.dropzone.success .dropzone-title {
    color: #10b981;
}

.dropzone.error .dropzone-title {
    color: #ef4444;
}

/* Progress indicator */
.progress-indicator {
    margin-top: 1rem;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: none;
}

.dropzone.loading .progress-indicator {
    display: block;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #a78bfa);
    border-radius: 10px;
    animation: progressPulse 1s infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* File Info Bar */
.file-info-bar {
    margin-top: 1.5rem;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease;
}

.file-info-bar.hidden {
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
}

.file-info-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-left: 4px solid #10b981;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.file-icon {
    font-size: 1.5rem;
}

.file-name {
    font-weight: 600;
    color: #10b981;
}

.file-size {
    font-size: 0.75rem;
    color: #8888aa;
}

.file-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.file-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #8888aa;
}

.file-stat-value {
    color: #a78bfa;
    font-weight: 600;
}

.remove-file-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-file-btn:hover {
    background: #ef4444;
    color: white;
}

/* Upload Feedback Messages */
.upload-success-message {
    margin-top: 1rem;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid #10b981;
    border-radius: 12px;
    text-align: center;
    animation: slideDownFade 0.4s ease;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-success-message .success-title {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upload-success-message .success-details {
    font-size: 0.8rem;
    color: #8888aa;
}

.upload-success-message .ready-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: #10b981;
    border-radius: 20px;
    font-size: 0.7rem;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.invalid-file-message {
    margin-top: 1rem;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border: 1px solid #ef4444;
    border-radius: 12px;
    text-align: center;
    animation: slideDownFade 0.4s ease;
}

.invalid-file-message .error-title {
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.invalid-file-message .error-details {
    font-size: 0.8rem;
    color: #8888aa;
}

.invalid-file-message .supported-formats {
    margin-top: 8px;
    font-size: 0.7rem;
    color: #a78bfa;
}

/* Big Checkmark Animation */
.success-checkmark-big {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100px;
    height: 100px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.success-checkmark-big.show {
    animation: bigCheckmarkPop 0.6s ease forwards;
}

@keyframes bigCheckmarkPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Grids */
.engine-grid, .language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.engine-card, .lang-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #2d2d44;
    border-radius: 20px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.engine-card::before, .lang-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.engine-card:hover::before, .lang-card:hover::before {
    left: 100%;
}

.engine-card:hover, .lang-card:hover {
    border-color: #6366f1;
    transform: translateY(-4px);
}

.engine-card.selected, .lang-card.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.engine-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.engine-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.7rem;
    color: #a78bfa;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #a78bfa;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #2d2d44;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
}

/* Model Cards */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.model-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #2d2d44;
    border-radius: 16px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    position: relative;
}

.model-card.selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.model-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.model-desc {
    font-size: 0.75rem;
    color: #888;
}

.model-check {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #10b981;
    font-size: 1rem;
    display: none;
}

.model-card.selected .model-check {
    display: block;
}

/* Progress Section */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.4);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #8888aa;
}

.stat-card.success .stat-value { color: #10b981; }
.stat-card.danger .stat-value { color: #ef4444; }

.progress-bar {
    height: 8px;
    background: #2d2d44;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #a78bfa);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Log Container */
.log-container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.log-header {
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #2d2d44;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-content {
    height: 150px;
    overflow-y: auto;
    padding: 1rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
}

.log-entry {
    padding: 4px 0;
    border-left: 2px solid transparent;
    padding-left: 8px;
    margin-bottom: 4px;
}

.log-entry.success {
    border-left-color: #10b981;
    color: #10b981;
}

.log-entry.error {
    border-left-color: #ef4444;
    color: #ef4444;
}

.log-entry.info {
    border-left-color: #a78bfa;
    color: #a78bfa;
}

.log-entry.warning {
    border-left-color: #f59e0b;
    color: #f59e0b;
}

/* Results Table */
.results-container {
    margin-top: 1.5rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.export-buttons {
    display: flex;
    gap: 0.5rem;
}

.table-wrapper {
    overflow-x: auto;
    max-height: 400px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #1a1a2e;
    padding: 12px;
    text-align: left;
    position: sticky;
    top: 0;
    font-weight: 600;
    color: #a78bfa;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #2d2d44;
}

/* Batch Cards */
.batch-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-left: 3px solid #6366f1;
    font-size: 11px;
    transition: all 0.2s;
}

.batch-card:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(4px);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(99, 102, 241, 0.2);
    color: #a78bfa;
    border: 1px solid #6366f1;
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #2d2d44;
    color: #8888aa;
}

.btn-outline:hover {
    border-color: #6366f1;
    color: #a78bfa;
}

.btn-small {
    padding: 6px 16px;
    font-size: 0.8rem;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 8px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1a1a2e;
    border: 1px solid #6366f1;
    border-radius: 12px;
    padding: 12px 20px;
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 1000;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    max-width: 350px;
    word-wrap: break-word;
}

.toast.show {
    transform: translateX(0);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* Responsive */
@media (max-width: 768px) {
    .steps-container {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem 2rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .progress-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-header h2 {
        font-size: 1.3rem;
    }

    .engine-grid, .language-grid, .model-grid {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .export-buttons {
        width: 100%;
    }

    .export-buttons button {
        flex: 1;
    }

    .logo-img {
        width: 150px;
        height: 150px;
    }

    .logo-text {
        margin-left: 160px;
    }

    .logo-img.error + .logo-icon {
        width: 150px;
        height: 150px;
        font-size: 50px;
    }

    .toast {
        max-width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .toast.show {
        transform: translateX(0);
    }

    .dropzone {
        padding: 2rem 1rem;
    }

    .dropzone-title {
        font-size: 1rem;
    }

    .file-info-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .file-stats {
        justify-content: center;
    }
}

/* Focus visible for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Smooth transitions */
.dashboard-card,
.engine-card,
.lang-card,
.model-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}