/* voice-chat.css */
.voice-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.voice-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0066ff;
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.voice-chat-toggle:hover {
    transform: scale(1.1);
}

.voice-chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    height: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
}

.voice-chat-popup.active {
    display: block;
    animation: slideUp 0.3s ease;
}

.voice-chat-header {
    padding: 15px;
    background: #f5f5f5;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.voice-chat-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.voice-chat-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 60px);
}

.voice-chat-control {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: none;
    background: #0066ff;
    color: white;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Button states */
.voice-chat-control[data-state="listening"] {
    background: #ff3366;
}

.voice-chat-control[data-state="thinking"] {
    background: #ffaa00;
}

.voice-chat-control[data-state="speaking"] {
    background: #00cc66;
}

.button-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

/* Animation for listening state */
.voice-chat-control[data-state="listening"] .button-animation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}