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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #eef2f6;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

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

.header {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.title-container {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    color: #2c3e50;
    margin: 0;
    font-size: 5em;
    line-height: 1.1;
    position: relative;
    white-space: nowrap;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
}

.subtitle {
    margin: 0;
    margin-top: -0.3em;
    font-size: 1.25em;
    color: #666;
    font-style: italic;
    line-height: 1.2;
    font-weight: normal;
    letter-spacing: 0.02em;
    font-family: 'Fira Sans', sans-serif;
}

.description {
    color: #666;
    font-size: 1.1em;
    margin: 0;
    margin-top: 20px;
}

.form-section {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

input[type="text"], input[type="password"], input[type="file"], select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="password"]:focus, select:focus {
    outline: none;
    border-color: #7b68ee;
}

.file-input {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.file-input input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: block;
    padding: 12px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    text-align: center;
    background: #f9f9f9;
    transition: all 0.3s;
}

.file-input:hover .file-input-label {
    border-color: #7b68ee;
    background: #f0f0ff;
}

.column-mapping {
    display: none;
    margin-top: 20px;
}

.mapping-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.mapping-row span {
    flex: 1;
    font-weight: 600;
}

.mapping-row select {
    flex: 2;
}

.btn {
    background: #7b68ee;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #6a5acd;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #28a745;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #218838;
}

.progress {
    display: none;
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #7b68ee;
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
}

.results {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.log-entry {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.log-entry:last-child {
    border-bottom: none;
}

.warning {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.table-container {
    overflow-x: auto;
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 400px;
    overflow-y: auto;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.preview-table th,
.preview-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.preview-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.preview-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.preview-table td {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

.preview-table td:hover {
    background-color: #f0f0f0;
}

.preview-table td.long-content {
    white-space: normal;
    word-wrap: break-word;
    max-width: 300px;
}

.preview-header {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.debug-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-family: monospace;
    font-size: 12px;
    color: #666;
}

.mapping-preview {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.mapping-preview h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.preview-item {
    margin-bottom: 8px;
    font-size: 13px;
}

.preview-label {
    font-weight: 600;
    color: #555;
    display: inline-block;
    width: 120px;
}

.preview-value {
    color: #333;
    font-family: monospace;
    background: white;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.toggle-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
}

.toggle-btn:hover {
    background: #5a6268;
}

.full-preview {
    margin-top: 15px;
    display: none;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 3em;
    }
    
    .subtitle {
        font-size: 1.1em;
    }
    
    .description {
        font-size: 1em;
    }
    
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 30px 15px;
    }
}