/* Lumise AI V2 — UI (F4) */

.laiv2-root { position: fixed; z-index: 2147483000; }

/* Botón flotante */
.laiv2-fab {
    position: fixed; right: 20px; bottom: 20px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 18px; border: 0; border-radius: 999px;
    background: linear-gradient(135deg,#7c3aed,#ec4899);
    color: #fff; font-weight: 600; font-size: 14px;
    box-shadow: 0 10px 25px rgba(124,58,237,.35);
    cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}
.laiv2-fab:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(124,58,237,.45); }
.laiv2-fab:disabled { opacity: .65; cursor: not-allowed; }
.laiv2-fab.laiv2-busy .laiv2-fab-ic { animation: laiv2-spin 1s linear infinite; display: inline-block; }
.laiv2-fab-tx { letter-spacing: .3px; }

/* Backdrop + modal */
.laiv2-backdrop {
    position: fixed; inset: 0; background: rgba(15,15,20,.55);
    display: flex; align-items: center; justify-content: center;
    padding: 16px; z-index: 2147483001;
}
.laiv2-modal {
    background: #fff; color: #111;
    width: 100%; max-width: 520px; border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    overflow: hidden; display: flex; flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.laiv2-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid #eee;
    background: linear-gradient(135deg,#faf5ff,#fdf2f8);
}
.laiv2-title { font-weight: 700; font-size: 15px; }
.laiv2-x { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: #666; padding: 0 4px; }
.laiv2-x:hover { color: #111; }

.laiv2-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.laiv2-label { font-size: 12px; font-weight: 600; color: #444; margin-top: 4px; }
.laiv2-prompt {
    width: 100%; box-sizing: border-box;
    padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px;
    font: 14px/1.4 inherit; resize: vertical; min-height: 90px;
    background: #fafafa;
}
.laiv2-prompt:focus { outline: 2px solid #a78bfa; background: #fff; }
.laiv2-size {
    padding: 8px 10px; border: 1px solid #ddd; border-radius: 8px;
    background: #fff; font-size: 14px;
}

.laiv2-status { min-height: 20px; font-size: 13px; margin-top: 4px; }
.laiv2-idle    { color: transparent; }
.laiv2-info    { color: #4338ca; }
.laiv2-success { color: #047857; }
.laiv2-error   { color: #b91c1c; }

.laiv2-foot {
    display: flex; justify-content: flex-end; gap: 8px;
    padding: 12px 18px; border-top: 1px solid #eee; background: #fafafa;
}
.laiv2-btn {
    padding: 9px 16px; border-radius: 8px; border: 1px solid transparent;
    font-size: 14px; font-weight: 600; cursor: pointer;
}
.laiv2-btn:disabled { opacity: .6; cursor: not-allowed; }
.laiv2-btn-primary {
    background: linear-gradient(135deg,#7c3aed,#ec4899); color: #fff;
}
.laiv2-btn-primary:hover:not(:disabled) { filter: brightness(1.05); }
.laiv2-btn-ghost {
    background: #fff; color: #444; border-color: #ddd;
}
.laiv2-btn-ghost:hover { background: #f3f4f6; }

@keyframes laiv2-spin { to { transform: rotate(360deg); } }
