.tecz-csv-container {
    max-width: 950px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tecz-csv-header {
    background: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.tecz-csv-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.tecz-csv-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.tecz-csv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.tecz-csv-panel {
    padding: 20px;
}

.tecz-csv-panel:first-child {
    border-right: 1px solid #e2e8f0;
}

.tecz-csv-upload-panel {
    background: #f8fafc;
}

.tecz-form-group {
    margin-bottom: 15px;
}

.tecz-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

.tecz-help-text {
    display: block;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: #64748b;
}

#tecz-schema-template {
    width: 100%;
    background: #0f172a;
    color: #38bdf8;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.85rem;
    resize: vertical;
    box-sizing: border-box;
    min-height: 300px;
}

#tecz-schema-template:focus {
    outline: none;
    border-color: #3b82f6;
}

input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #0f172a;
    box-sizing: border-box;
}

input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tecz-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tecz-dropzone:hover, .tecz-dropzone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.tecz-dropzone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.tecz-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.tecz-icon {
    width: 40px;
    height: 40px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.tecz-dropzone:hover .tecz-icon {
    color: #3b82f6;
}

.tecz-upload-text {
    font-size: 0.9rem;
    color: #334155;
}

.tecz-upload-text strong {
    color: #3b82f6;
}

.tecz-file-info {
    margin-top: 10px;
    padding: 10px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0369a1;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tecz-mt-20 {
    margin-top: 20px;
}

.tecz-action-box {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tecz-btn {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.tecz-btn:hover:not(:disabled) {
    background: #2563eb;
}

.tecz-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.tecz-btn-primary {
    width: 100%;
}

.tecz-status-msg {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px;
    border-radius: 4px;
}

.tecz-status-success {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.tecz-status-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

@media (max-width: 768px) {
    .tecz-csv-grid {
        grid-template-columns: 1fr;
    }
    .tecz-csv-panel:first-child {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}