:root {
    --bg-color: #1F2937;
    --text-color: #F9FAFB;
    --primary-color: #10B981;
    --active-color: #EF4444;
    --glass-bg: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none; /* Prevent text selection on hold */
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.app-container {
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

.status.offline { background-color: #6B7280; }
.status.online { background-color: var(--primary-color); }
.status.connected { background-color: #3B82F6; }

.controls {
    background: var(--glass-bg);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    margin-bottom: auto;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.input-group input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: rgba(0,0,0,0.3);
    color: white;
}

.input-group button {
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.main-action {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40vh;
}

#ptt-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 8px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg, #374151, #1F2937);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#ptt-btn .icon { font-size: 3rem; margin-bottom: 10px; }
#ptt-btn .text { font-weight: 800; letter-spacing: 1px; }

#ptt-btn:active:not([disabled]) {
    transform: scale(0.95);
    background: var(--active-color);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 0 50px var(--active-color);
}

#ptt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

#connection-log {
    height: 100px;
    overflow-y: auto;
    font-size: 0.8rem;
    color: #9CA3AF;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 8px;
}
