@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #F2E9E4; /* Color de fondo general */
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: #C9ADA7;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.step h1, .dnd-column h2 {
    color: #1a253c;
    border-bottom: 2px solid #eef2f5;
    padding-bottom: 10px;
    margin-top: 0;
}

.dnd-column h2 {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 15px;
}

.step p {
    color: #5a677d;
    line-height: 1.6;
}

input[type="file"] {
    display: block;
    margin-top: 20px;
    padding: 10px;
    border: 2px dashed #cdd5e0;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

input[type="file"]:hover {
    border-color: #4A4E69;
}

button {
    background-color: #4A4E69;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 20px;
}

button:hover {
    opacity: 0.9;
}

/* --- Estilos Drag and Drop --- */
#dnd-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    background-color: #C9ADA7;
    padding: 20px;
    border-radius: 5px;
}

.dnd-column {
    width: 50%;
    background-color: #f8fafc;
    border-radius: 5px;
    padding: 15px;
    border: 1px solid #eef2f5;
}

.dnd-items-container {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.csv-item {
    padding: 8px 12px;
    background-color: #F2E9E4;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: grab;
    user-select: none;
    transition: opacity 0.2s;
    display: flex;
    flex-direction: column;
}

.csv-item-header {
    font-weight: 700;
    color: #22223B; /* Color de etiquetas CSV */
}

.csv-item-preview {
    font-size: 0.8em;
    color: #777;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.csv-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.db-target {
    padding: 10px;
    border: 2px dashed #cdd5e0;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background-color 0.2s, border-color 0.2s;
}

.db-target.drag-over {
    background-color: #eef2f5;
    border-color: #4A4E69;
}

.db-target-label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    color: #4A4E69;
}

.csv-pill {
    display: inline-block;
    padding: 4px 8px;
    background-color: #C9ADA7;
    color: white;
    border-radius: 12px;
    margin-right: 5px;
    margin-top: 5px;
    font-size: 0.9em;
    cursor: pointer;
}

.csv-pill:hover::after {
    content: ' (clic para quitar)';
    font-weight: normal;
    font-size: 0.9em;
}

/* --- Fin Estilos Drag and Drop --- */

/* --- Estilos Resumen Final --- */
#summary-container {
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-height: 350px;
    overflow-y: auto;
    background-color: #fdfdfd;
}

#summary-container h4 {
    padding: 12px 15px;
    margin: 0;
    background-color: #f1f1f1;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
}

#summary-list {
    padding: 0;
}

.summary-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eef2f5;
    line-height: 1.6;
    font-size: 0.95em;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: #333;
}

.summary-item.invalid {
    color: #c00;
}

.summary-item.invalid strong {
    color: #c00;
}

#csv-column {
    background-color: #9A8C98;
}