:root {
    --bg-dark: #0f1113;
    --bg-side: #181a1d;
    --accent: #5865f2;
    --accent-hover: #4752c4;
    --text: #ffffff;
    --text-muted: #b5bac1;
    --danger: #ed4245;
    --success: #23a559;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-dark);
    color: var(--text);
    font-family: 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--bg-side);
    display: flex;
    flex-direction: column;
    border-right: 1px solid #2e3035;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #2e3035;
}

.user-section {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: #2b2d31;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.user-item.speaking {
    outline: 2px solid var(--success);
    box-shadow: 0 0 15px rgba(35, 165, 89, 0.4);
}

.device-controls {
    padding: 15px;
    background: #232428;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.select-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.select-group label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: bold;
}

select, input[type="text"] {
    width: 100%;
    padding: 8px;
    background: #1e1f22;
    border: none;
    color: var(--text);
    border-radius: 4px;
}

.button-group {
    display: flex;
    gap: 8px;
}

button {
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary { background: var(--accent); color: white; flex: 2; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: #4e5058; color: white; flex: 1; }
.btn-secondary:hover { background: #6d6f78; }

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 15px 25px;
    background: var(--bg-dark);
    border-bottom: 1px solid #2e3035;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
}

#chatBox {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg {
    background: #2b2d31;
    padding: 10px 15px;
    border-radius: 8px;
    max-width: 80%;
    align-self: flex-start;
}

.msg.me {
    background: var(--accent);
    align-self: flex-end;
}

.chat-footer {
    padding: 20px;
    display: flex;
    gap: 10px;
    background: var(--bg-dark);
}

#chatInput {
    flex: 1;
    background: #383a40;
    padding: 12px;
}

#sendBtn {
    background: var(--accent);
    color: white;
    padding: 0 25px;
}