/* Voice Agent Widget CSS */
#voice-agent-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Inter', -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#voice-agent-widget .orb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eee, #ddd);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#voice-agent-widget .orb:hover {
    transform: scale(1.05);
}

#voice-agent-widget .orb-icon {
    font-size: 24px;
    color: #666;
    transition: color 0.3s;
}

/* Expanded State / Active State modifications can be added here if we want it to grow */
#voice-agent-widget .orb.active-mode {
    width: 80px;
    height: 80px;
}

/* States from original CSS */
#voice-agent-widget .orb.listening {
    background: #ffffff;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    animation: breathe 3s infinite ease-in-out;
}
#voice-agent-widget .orb.listening .orb-icon { color: #2563eb; }

#voice-agent-widget .orb.thinking {
    background: #ffffff;
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.6);
    animation: spin-pulse 2s infinite linear;
}
#voice-agent-widget .orb.thinking .orb-icon { color: #9333ea; }

#voice-agent-widget .orb.speaking {
    background: #ffffff;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.6);
}
#voice-agent-widget .orb.speaking .orb-icon { color: #16a34a; }

/* Status Text - Small popup bubble */
#voice-agent-widget .status-container {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    text-align: center;
    max-width: 150px;
}

#voice-agent-widget:hover .status-container,
#voice-agent-widget .orb.listening ~ .status-container,
#voice-agent-widget .orb.thinking ~ .status-container,
#voice-agent-widget .orb.speaking ~ .status-container {
    opacity: 1;
}

/* VAD Ring */
#voice-agent-widget .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    z-index: -1;
    transition: all 0.1s;
    opacity: 0;
}
#voice-agent-widget .orb.listening .ring {
    opacity: 1;
}

@keyframes breathe {
    0% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.8); }
    100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
}

@keyframes spin-pulse {
    0% { box-shadow: 0 0 20px rgba(147, 51, 234, 0.4); }
    50% { box-shadow: 0 0 30px rgba(147, 51, 234, 0.8); }
    100% { box-shadow: 0 0 20px rgba(147, 51, 234, 0.4); }
}
