/* ── AiAgent Pro – overlay-style.css  v3.0 ── */
/* by Marco Andreacchio                        */

.wmpt-container {
    position: fixed;
    z-index: 9998;
    width: 240px;
    background: rgba(10, 10, 18, 0.88);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Posizioni */
.wmpt-pos-bottom-right { bottom: 20px; right: 20px; }
.wmpt-pos-bottom-left  { bottom: 20px; left:  20px; }
.wmpt-pos-top-right    { top:    20px; right: 20px; }
.wmpt-pos-top-left     { top:    20px; left:  20px; }

/* Header con nome agente e badge modalità */
#wmpt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px 5px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

#wmpt-agent-name {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#wmpt-mode-badge {
    font-size: 13px;
    line-height: 1;
    min-width: 20px;
    text-align: right;
    opacity: 0.85;
}

/* Video + canvas sovrapposto */
#wmpt-webcam-wrap {
    position: relative;
    width: 240px;
    height: 180px;
    background: #000;
}

#wmpt-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    display: block;
}

/* Canvas mask: stesso mirror del video */
#wmpt-mask-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform: scaleX(-1);
    pointer-events: none;
    display: block;
}

/* Barra stato */
#wmpt-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(0,0,0,0.3);
}

#wmpt-status {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#wmpt-btn-start {
    background: #1db954;
    color: #fff;
    border: none;
    padding: 4px 11px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 8px;
    transition: background 0.2s, transform 0.1s;
}

#wmpt-btn-start:hover   { background: #17a349; }
#wmpt-btn-start:active  { transform: scale(0.95); }
#wmpt-btn-start:disabled {
    background: #555;
    cursor: wait;
    opacity: 0.7;
}

/* Credits in fondo */
#wmpt-credits {
    text-align: center;
    font-size: 9px;
    color: rgba(255,255,255,0.25);
    padding: 3px 0 4px;
    letter-spacing: 0.03em;
}
