/* ============================================================
   GLOBAL: Bloqueios de seleção, highlight, arrasto e long-press
   ============================================================ */
* {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}

html, body, button, div {
    -webkit-touch-callout: none !important;
    touch-action: manipulation;
}

body {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   BASE
   ============================================================ */
body {
    background: #0d1117;
    color: #e6edf3;
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

#app {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    text-align: center;
}
header h1 {
    font-size: 26px;
    margin-bottom: 5px;
}
.subtitle {
    margin-top: -5px;
    font-size: 14px;
    color: #8b949e;
}

/* ============================================================
   LIVE STATUS (IA PROCESSANDO, ENVIANDO, ETC)
   ============================================================ */
.live-status {
    background: #1f6feb;
    color: white;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 15px;
    margin-bottom: 15px;
    animation: pulse 1.2s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

/* ============================================================
   STATUS BAR (MIC + CONEXÃO)
   ============================================================ */
.status-bar {
    margin: 20px 0;
    background: #161b22;
    border-radius: 10px;
    padding: 15px;
}
.status {
    margin-bottom: 8px;
}
.status:last-child {
    margin-bottom: 0;
}

.on { color: #3fb950; font-weight: bold; }
.off { color: #f85149; font-weight: bold; }

/* ============================================================
   BOTÃO PTT
   ============================================================ */
.ptt-button {
    width: 100%;
    height: 170px;
    border-radius: 1000px;
    background: #238636;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(63,185,80,0.4);
    transition: transform 0.1s ease, background 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
    -webkit-touch-callout: none;
}

.ptt-button:active {
    transform: scale(0.95);
    background: #2ea043;
}

/* ============================================================
   VU METER
   ============================================================ */
.vu-wrapper {
    width: 100%;
    height: 12px;
    margin: 20px 0;
    background: #161b22;
    border-radius: 6px;
    overflow: hidden;
}
#vu-meter {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #56d364, #2ea043);
    transition: width 0.05s linear;
}

/* ============================================================
   LOGS
   ============================================================ */
.log-box {
    background: #161b22;
    padding: 10px;
    border-radius: 10px;
    margin-top: 25px;
}

.log-box h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.log-box pre {
    font-size: 13px;
    white-space: pre-wrap;
    max-height: 250px;
    overflow-y: auto;
}
