/* Voice Chat Page Styles */

body {
    height: 100vh;
    overflow: hidden;
}

.container {
    height: calc(100vh - 49px);
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
}

h1 {
    margin-bottom: 16px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.main-layout {
    display: flex;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.left-panel {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card.chat-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.card-title {
    flex-shrink: 0;
}

.form-group {
    flex: 1;
}

.btn-mic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-mic.active {
    background: #00d4ff;
    color: #000;
}

.btn-mic.muted {
    background: #ff4757;
    color: #fff;
}

.status-bar {
    display: flex;
    gap: 20px;
    align-items: center;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
}

.status-dot.connected {
    background: #2ed573;
}

.status-dot.disconnected {
    background: #ff4757;
}

.status-dot.connecting {
    background: #ffa502;
    animation: pulse 1s infinite;
}

.agent-state {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agent-state.initializing {
    background: #ffa502;
    color: #000;
}

.agent-state.listening {
    background: #2ed573;
    color: #000;
}

.agent-state.thinking {
    background: #00d4ff;
    color: #000;
    animation: pulse 0.5s infinite;
}

.agent-state.speaking {
    background: #a55eea;
    color: #fff;
}

.voice-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.audio-visualizer {
    flex: 1;
    height: 60px;
    background: #0f0f23;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 20px;
}

.audio-bar {
    width: 4px;
    height: 20px;
    background: #00d4ff;
    border-radius: 2px;
    transition: height 0.1s;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #0f0f23;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    min-height: 0;
}

.message {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 85%;
}

.message.user {
    background: #00d4ff;
    color: #000;
    margin-left: auto;
}

.message.agent {
    background: #333;
    color: #eee;
}

.message.system {
    background: transparent;
    color: #666;
    font-size: 12px;
    text-align: center;
    max-width: 100%;
}

.message.user.spoken {
    background: #0099cc;
}

.message.agent.spoken {
    background: #444;
}

.message-type {
    font-size: 10px;
    opacity: 0.6;
    margin-left: 8px;
}

.message-sender {
    font-size: 11px;
    color: inherit;
    opacity: 0.7;
    margin-bottom: 4px;
}

.message-text {
    word-wrap: break-word;
}

.chat-input {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.chat-input input {
    flex: 1;
}

.form-group.full-width {
    flex: none;
    width: 100%;
}
