/* Estilos generales */
.siigo-container {
    max-width: 900px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.siigo-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1d2327;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
    font-size: 28px;
}

.siigo-card {
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.siigo-card h2,
.siigo-card h3 {
    margin-top: 0;
    color: #1d2327;
    font-size: 18px;
}

/* Formulario */
.siigo-upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.siigo-input-group {
    margin-bottom: 10px;
}

.siigo-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.siigo-input-group input {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.description {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Drop zone */
.siigo-drop-zone {
    border: 2px dashed #0073aa;
    border-radius: 5px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    background: #f9f9f9;
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.siigo-drop-zone:hover,
.siigo-drop-zone.dragover {
    background: #e8f5ff;
    border-color: #005a8d;
    box-shadow: 0 0 10px rgba(0, 115, 170, 0.1);
}

.siigo-drop-zone .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #0073aa;
    opacity: 0.5;
    margin-bottom: 10px;
}

.siigo-drop-content p {
    margin: 10px 0;
    color: #666;
}

.siigo-drop-content strong {
    color: #333;
    font-weight: 600;
}

/* Información de archivo */
#archivo-info {
    padding: 12px 15px;
    background: #f0f0f0;
    border-left: 3px solid #0073aa;
    border-radius: 3px;
    font-size: 14px;
}

/* Estados */
.siigo-success {
    border-left: 4px solid #46b450;
    background: #f0f6f0;
}

.siigo-success h3 {
    color: #46b450;
}

.siigo-error {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
}

.siigo-error h3 {
    color: #dc3545;
}

.siigo-warning {
    border-left: 4px solid #ff9800;
    background: #fff8f0;
}

/* Spinner */
.siigo-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.siigo-estado-texto {
    text-align: center;
    font-weight: 600;
    color: #0073aa;
    margin: 0;
}

/* Tablas */
table.siigo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

table.siigo-table th,
table.siigo-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table.siigo-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

table.siigo-table tr:hover {
    background: #f9f9f9;
}

/* Mapeo manual */
.siigo-mapeo-item {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-left: 3px solid #0073aa;
    border-radius: 3px;
}

.siigo-mapeo-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0073aa;
    font-size: 14px;
}

.siigo-mapeo-item select {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Estados de validación */
.status-ok {
    color: #46b450;
    font-weight: 600;
}

.status-warning {
    color: #ff9800;
    font-weight: 600;
}

.status-error {
    color: #dc3545;
    font-weight: 600;
}

/* Botones */
.button {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.button-primary {
    background: #0073aa;
    color: white;
}

.button-primary:hover {
    background: #005a8d;
}

.button-large {
    padding: 12px 24px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 600px) {
    .siigo-container {
        margin: 10px;
    }

    .siigo-drop-zone {
        padding: 20px;
    }

    .siigo-title {
        font-size: 24px;
    }

    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 8px;
    }
}
