* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #e4e4e7;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.logo-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    font-size: 1rem;
    color: #a1a1aa;
    font-weight: 400;
}

/* Workflow Steps */
.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step.completed .step-number {
    background: #22c55e;
    border-color: #22c55e;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #374151;
    border: 2px solid #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border-color: #ffd700;
    color: #1a1a2e;
}

.step-label {
    font-size: 0.875rem;
    color: #a1a1aa;
    font-weight: 500;
}

.step.active .step-label {
    color: #ffd700;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: #374151;
    margin-bottom: 1.5rem;
}

/* Upload Sections */
.upload-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.upload-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.section-desc {
    color: #a1a1aa;
    margin-bottom: 1.5rem;
}

.hidden {
    display: none !important;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #4b5563;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #e4e4e7;
    margin-bottom: 0.25rem;
}

.upload-subtext {
    color: #6b7280;
    margin-bottom: 1rem;
}

.btn-browse {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-browse:hover {
    background: rgba(255, 215, 0, 0.2);
}

/* File List */
.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-icon {
    font-size: 1.5rem;
}

.file-name {
    font-weight: 500;
    color: #22c55e;
}

.file-size {
    font-size: 0.875rem;
    color: #6b7280;
}

.btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: transform 0.2s ease;
}

.btn-remove:hover {
    transform: scale(1.2);
}

/* Buttons */
.btn-next, .btn-download {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #1a1a2e;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.btn-next:disabled {
    background: #4b5563;
    color: #9ca3af;
    cursor: not-allowed;
}

.btn-next:not(:disabled):hover,
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.btn-back {
    background: transparent;
    border: 1px solid #4b5563;
    color: #a1a1aa;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    border-color: #ffd700;
    color: #ffd700;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-group .btn-back {
    flex: 0 0 auto;
}

.btn-group .btn-next {
    flex: 1;
    margin-top: 0;
}

/* Processing */
.processing {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #374151;
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Results */
.results {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.results h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #22c55e;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card.warning {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.stat-card.warning .stat-value {
    color: #f59e0b;
}

.stat-label {
    font-size: 0.875rem;
    color: #a1a1aa;
    margin-top: 0.25rem;
}

/* Unmatched Section */
.unmatched-section {
    margin-top: 1.5rem;
    text-align: left;
}

.unmatched-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 1rem;
}

.unmatched-table-wrapper {
    max-height: 200px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.unmatched-table {
    width: 100%;
    border-collapse: collapse;
}

.unmatched-table th,
.unmatched-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.unmatched-table th {
    background: rgba(245, 158, 11, 0.1);
    font-weight: 600;
    font-size: 0.875rem;
    color: #f59e0b;
    position: sticky;
    top: 0;
}

.unmatched-table td {
    font-size: 0.875rem;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn-download-unmatched {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1a1a2e;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-download-unmatched:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.download-icon {
    font-size: 1.25rem;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    .logo-text h1 {
        font-size: 1.75rem;
    }
    
    .workflow-steps {
        flex-wrap: wrap;
    }
    
    .step-connector {
        width: 30px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
}
