:root {
    --bg-color: #0b0d11;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent: #21b36a;
    --accent-hover: #26d47d;
    --danger: #ff5252;
    --text-main: #ffffff;
    --text-muted: #8a96a3;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 0% 0%, #161b22 0%, var(--bg-color) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow: hidden;
}

main {
    display: flex;
    gap: 20px;
    width: 95%;
    max-width: 900px;
    height: 500px;
}

.glass-container {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

h1 {
    margin: 0 0 5px 0;
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* INPUTS & BUTTONS */
.input-group { margin-bottom: 1.5rem; }
input[type="text"] {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}
input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(33, 179, 106, 0.15);
}

button {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
button:hover { background: var(--accent-hover); transform: translateY(-2px); }

.secondary-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    margin-top: 1rem;
}
.danger-btn { background: var(--danger); color: white; margin-top: 2rem; }
.danger-btn:hover { background: #ff7676; }

/* VERIFICATION CODE BOX */
.code-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px dashed var(--accent);
}
#display-code {
    font-family: monospace;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 8px;
    color: var(--accent);
}

.instruction-text { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }
.waiting-text { font-size: 0.8rem; color: var(--accent); margin: 10px 0; }

/* SIDEBAR */
aside {
    width: 300px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}
.sidebar-header h3 { margin: 0; font-size: 1rem; color: var(--text-muted); }
.badge {
    background: var(--accent);
    color: #000;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

#user-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
}
.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.2s;
    margin-bottom: 5px;
}
.user-item:hover { background: rgba(255, 255, 255, 0.05); }
.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-weight: 600;
    font-size: 0.8rem;
}

.hidden { display: none !important; }

/* VISUAL FEEDBACK */
.mic-wave { display: flex; justify-content: center; gap: 8px; height: 30px; align-items: center; margin: 2rem 0; }
.mic-wave .bar { width: 6px; height: 6px; background: var(--accent); border-radius: 3px; animation: waveSound 0.8s infinite alternate ease-in-out; }
.mic-wave .bar:nth-child(2) { animation-delay: 0.2s; }
.mic-wave .bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes waveSound {
    0% { height: 6px; opacity: 0.4; }
    100% { height: 30px; opacity: 1; }
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

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

.error {
    color: var(--danger);
    background: rgba(255, 82, 82, 0.1);
    padding: 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-top: 1rem;
}
