/*
 * Tooleros UI — Estilos compartidos para todas las herramientas
 * Se carga UNA sola vez por página, sin importar cuántas herramientas estén activas.
 */

/* --- Contenedor principal --- */
.tlr-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    color: #374151;
    max-width: 650px;
    margin: 0 auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
}

/* --- Caja de configuración global --- */
.tlr-global-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

/* --- Títulos internos --- */
.tlr-title {
    margin-top: 0;
    color: #0f172a;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Etiquetas de campo --- */
.tlr-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #475569;
    font-size: 14px;
}

/* --- Inputs, selects y textareas --- */
.tlr-input {
    width: 100%;
    padding: 5px 15px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px;
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: #ffffff !important;
}
.tlr-input:focus {
    outline: none;
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* --- Botón principal de acción --- */
.tlr-btn-main {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #0284c7, #0369a1);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(2, 132, 199, 0.2);
}
.tlr-btn-main:hover {
    box-shadow: 0 6px 12px rgba(2, 132, 199, 0.3);
    transform: translateY(-1px);
    color: #ffffff;
}
.tlr-btn-main:active {
    transform: translateY(1px);
}
.tlr-btn-main:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* --- Botón secundario (añadir ítem) --- */
.tlr-btn-add {
    width: 100%;
    padding: 12px;
    background: #f1f5f9;
    color: #475569;
    border: 1px dashed #94a3b8;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    font-size: 14px;
}
.tlr-btn-add:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #64748b;
}

/* --- Caja de resultado --- */
.tlr-result-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    margin-top: 20px;
    display: none;
}
.tlr-result-card.is-visible {
    display: block;
}

/* --- Botón copiar dentro del resultado --- */
.tlr-copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.tlr-copy-btn:hover {
    background: #f3f4f6;
    color: #000000;
}
.tlr-copy-btn.copied {
    background: #22c55e;
    color: #ffffff;
    border-color: #16a34a;
}

/* --- Separador de reseña individual (herramienta bulk) --- */
.tlr-resena-box {
    position: relative;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid #cbd5e1;
}

/* --- Mensaje de estado (error / cargando / éxito) --- */
.tlr-status-msg {
    font-weight: 600;
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    min-height: 20px;
}
.tlr-status-msg.is-error   { color: #ef4444; }
.tlr-status-msg.is-loading { color: #0284c7; }
.tlr-status-msg.is-success { color: #16a34a; }
