        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 16px;
            line-height: 1.5;
            background: #ffffff;
            color: #334155;
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 25px 50px rgba(0,0,0,0.15);
            overflow: hidden;
        }

        .header {
            background: #51247a;
            color: white;
            padding: 20px;
            text-align: center;
        }

        .header h1 {
            font-size: 2.5rem;
            font-weight: 300;
            margin-bottom: 1rem;
        }

        .header p {
            font-size: 1.1rem;
            opacity: 0.9;
            margin-bottom: 0.5rem;
        }

        .header ul {
            list-style: none;
            margin-top: 1rem;
        }

        .header li {
            margin: 0.5rem 0;
            font-size: 1.1rem;
            opacity: 0.9;
        }

        .content {
            padding: 40px;
        }

        .file-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        .file-upload {
            background: #f8fafc;
            border: 2px dashed #cbd5e1;
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .file-upload:hover {
            border-color: #51247a;
            background: #f1f5f9;
        }

        .file-upload.dragover {
            border-color: #51247a;
            background: #eef2ff;
            transform: scale(1.02);
        }

        .file-upload.uploaded {
            border-color: #10b981;
            background: #ecfdf5;
        }

        .file-upload.error {
            border-color: #ef4444;
            background: #fef2f2;
        }

        .upload-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: #64748b;
        }

        .file-upload.uploaded .upload-icon {
            color: #10b981;
        }

        .file-upload.error .upload-icon {
            color: #ef4444;
        }

        .upload-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .upload-description {
            color: #64748b;
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }

        .upload-btn, .process-btn, .download-btn {
            border: none;
            border-radius: 50px;
            font-family: inherit;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .upload-btn {
            background: #51247a;
            color: white;
            padding: 12px 25px;
            font-size: 1rem;
        }

        .upload-btn:hover {
            transform: translateY(-2px);
        }

        .file-input {
            display: none;
        }

        .file-info {
            margin-top: 1rem;
            padding: 1rem;
            background: rgba(16, 185, 129, 0.1);
            border-radius: 10px;
            color: #059669;
            font-size: 0.9rem;
            display: none;
        }

        .process-btn {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            padding: 18px 50px;
            font-size: 1.2rem;
            display: block;
            margin: 30px auto;
        }

        .process-btn:hover:not(:disabled) {
            transform: translateY(-2px);
        }

        .process-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            background: #6b7280;
        }

        .results-section {
            display: none;
            margin-top: 40px;
        }

        .results-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .results-header h3 {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .results-header p {
            color: #64748b;
            font-size: 1rem;
        }

        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

        .stat-card {
            background: #51247a;
            color: white;
            padding: 25px;
            border-radius: 15px;
            text-align: center;
        }

        .stat-value {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
        }

        .stat-label {
            font-size: 1rem;
            opacity: 0.9;
        }

        .preview-table {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            margin: 30px 0;
        }

        .table-header {
            background: #f8fafc;
            padding: 20px;
            border-bottom: 2px solid #e5e7eb;
            font-weight: 600;
        }

        .table-header h4 {
            font-size: 1.1rem;
            font-weight: 600;
        }

        .table-content {
            max-height: 500px;
            overflow-y: auto;
        }

        .table-row {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1.5fr 1fr 1fr 1fr 1fr;
            gap: 15px;
            padding: 15px 20px;
            border-bottom: 1px solid #f1f5f9;
            align-items: center;
            font-size: 0.9rem;
        }

        .table-row:nth-child(even) {
            background: #f8fafc;
        }

        .table-row.header {
            background: #51247a;
            font-weight: 600;
        }

        .not-found {
            color: #ef4444;
            font-style: italic;
        }

        .download-section {
            text-align: center;
            margin: 40px 0;
            padding: 30px;
            background: #f8fafc;
            border-radius: 15px;
        }

        .download-section h4 {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .download-section p {
            margin-bottom: 1.5rem;
            color: #64748b;
            font-size: 1rem;
        }

        .download-btn {
            background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
            color: white;
            padding: 15px 35px;
            font-size: 1.1rem;
            margin: 0 10px;
        }

        .download-btn:hover {
            transform: translateY(-2px);
        }

        .progress-container {
            display: none;
            margin: 20px 0;
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: #f1f5f9;
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: #51247a;
            width: 0%;
            transition: width 0.3s ease;
        }

        .progress-text {
            text-align: center;
            margin-top: 0.75rem;
            color: #64748b;
            font-size: 0.9rem;
        }

        .status-check {
            margin-top: 0.75rem;
            padding: 0.75rem;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .status-success {
            background: #dcfce7;
            color: #166534;
            border: 1px solid #bbf7d0;
        }

        .status-error {
            background: #fef2f2;
            color: #dc2626;
            border: 1px solid #fecaca;
        }

        .status-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px;
            margin: 0.5rem 0;
            border-radius: 8px;
            background: white;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            font-size: 0.95rem;
        }

        #overallStatus {
            display: none;
            background: #f0f9ff;
            border: 2px solid #3b82f6;
            border-radius: 12px;
            padding: 20px;
            margin: 20px 0;
            text-align: center;
        }

        #overallStatus h3 {
            color: #1d4ed8;
            margin-bottom: 1rem;
            font-size: 1.3rem;
            font-weight: 600;
        }

        .error-section {
            background: #fef2f2;
            border: 2px solid #ef4444;
            border-radius: 12px;
            padding: 20px;
            margin: 20px 0;
            display: none;
        }

        .error-section h3 {
            color: #dc2626;
            margin-bottom: 1rem;
            font-size: 1.3rem;
            font-weight: 600;
        }

        .error-section p {
            color: #dc2626;
            margin-bottom: 1rem;
        }

        .error-section ul {
            color: #dc2626;
            margin-left: 20px;
        }

        .column-detection {
            background: #f8fafc;
            border-radius: 15px;
            padding: 30px;
            margin: 30px 0;
            display: none;
        }

        .detection-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .detection-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }

        .detection-section {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }

        .detection-section h4 {
            color: #51247a;
            margin-bottom: 1rem;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .detected-column {
            background: #dcfce7;
            border: 1px solid #bbf7d0;
            border-radius: 8px;
            padding: 12px;
            margin: 8px 0;
            color: #166534;
            font-weight: 500;
        }

        .detected-column strong {
            color: #15803d;
        }
            /* Link Styles */
a {
    color: #51247a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover {
    color: #3d1b5a;
    text-decoration: underline;
}

a:visited {
    color: #6b2c91;
}

a:focus {
    outline: 2px solid #51247a;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Specific link styles for different contexts */
.header a {
    color: white;
    text-decoration: underline;
}

.header a:hover {
    color: #e0e0e0;
}

.upload-description a {
    color: #51247a;
    font-weight: 600;
}

.upload-description a:hover {
    color: #3d1b5a;
}