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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #0f0f12;
    color: #e0e0e0;
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

header { text-align: center; margin-bottom: 40px; }
header h1 { font-size: 2.8rem; color: #00ccff; }
header p { color: #888; font-size: 1.1rem; }

.upload-section, .mapping-section, .results, .preview-section {
    background: #1a1a20;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid #333;
}

h2 { color: #00ccff; margin-bottom: 15px; font-size: 1.5rem; }

.toggle-btn {
    background: none;
    border: none;
    color: #00ccff;
    font-size: 1.2rem;
    cursor: pointer;
}

.stats-box {
    margin-top: 15px;
    padding: 12px;
    background: #25252b;
    border-radius: 8px;
}

.preview-table-container {
    max-height: 400px;
    overflow: auto;
    display: none;
}

.preview-table-container.show { display: block; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #25252b;
}

th, td {
    padding: 8px 12px;
    border: 1px solid #444;
    text-align: left;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

th { background: #1f1f25; }

input[type="file"] {
    width: 100%;
    padding: 12px;
    background: #25252b;
    border: 2px dashed #444;
    border-radius: 8px;
    color: #ddd;
}

.mapping-section label { display: block; margin: 10px 0; color: #ccc; }

.field-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.field-row label { flex: 1; }

select {
    background: #25252b;
    color: #eee;
    border: 1px solid #444;
    padding: 8px 12px;
    border-radius: 6px;
    width: 100%;
}

.btn {
    padding: 14px 32px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
}

.primary { background: #00ccff; color: #000; }
.success { background: #00cc66; color: #000; }

.hidden { display: none; }

#stats {
    background: #25252b;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    line-height: 1.8;
}

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

th, td {
    padding: 8px 12px;
    border: 1px solid #444;
    text-align: left;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

th { 
    background: #1f1f25; 
    position: sticky;
    top: 0;
}
