.voice-assistant-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.voice-assistant-button.chat-active {
    bottom: 140px; /* Adjust to not overlap the follow-up input */
}

.microphone-wrapper {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 80px; /* Scaled down */
    height: 104px; /* Scaled down */
    display: flex;
    align-items: center;
    justify-content: center;
}

.microphone-wrapper:hover {
    transform: scale(1.05);
}

.microphone-icon {
    width: 80px; /* Scaled down */
    height: 104px; /* Scaled down */
    position: relative;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; /* Scaled down */
    height: 128px; /* Scaled down */
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 192, 45, 0) 0%, rgba(251, 192, 45, 0) 50%, rgba(251, 192, 45, 0) 100%);
    transition: all 0.3s ease;
    z-index: -1;
}

.microphone-wrapper.active .icon-glow {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        background: radial-gradient(circle, rgba(251, 192, 45, 0) 0%, rgba(251, 192, 45, 0) 50%, rgba(251, 192, 45, 0) 100%);
    }
    50% {
        background: radial-gradient(circle, rgba(251, 192, 45, 0.3) 0%, rgba(251, 192, 45, 0.2) 50%, rgba(251, 192, 45, 0) 100%);
    }
}

.sound-wave {
    stroke: #0a3d3e;
    stroke-width: 1.5; /* Scaled down */
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-origin: center;
    transition: all 0.3s ease;
}

.microphone-wrapper.active .sound-wave {
    animation: wave-pulse 0.8s ease-in-out infinite;
}

@keyframes wave-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.ripple-container {
    position: absolute;
    top: 38px; /* Adjusted for scale */
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -2;
}

.ripple {
    position: absolute;
    width: 80px; /* Scaled down */
    height: 80px; /* Scaled down */
    border: 1px solid transparent; /* Scaled down */
    border-radius: 50%;
    opacity: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.microphone-wrapper.active .ripple {
    border-color: #fbc02d;
    animation: ripple-animation 2s ease-out infinite;
}

.microphone-wrapper.active .ripple:nth-child(2) {
    animation-delay: 0.5s;
}

.microphone-wrapper.active .ripple:nth-child(3) {
    animation-delay: 1s;
}

@keyframes ripple-animation {
    0% {
        width: 48px; /* Scaled down */
        height: 64px; /* Scaled down */
        opacity: 0.6;
        border-radius: 50%;
    }
    100% {
        width: 112px; /* Scaled down */
        height: 128px; /* Scaled down */
        opacity: 0;
        border-radius: 50%;
    }
}

.status-text {
    font-size: 12px; /* Scaled down */
    font-weight: 500;
    color: #0a3d3e;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.status-text.active {
    color: #fbc02d;
    font-weight: 600;
    background: rgba(10, 61, 62, 0.8);
}

.voice-collapse-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.voice-collapse-btn:hover {
    background: rgba(0,0,0,0.4);
}

.voice-assistant-button.collapsed .microphone-wrapper,
.voice-assistant-button.collapsed .status-text {
    display: none;
}

.voice-assistant-button.collapsed {
    width: 40px;
    height: 40px;
    background: #fbc02d;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.voice-assistant-button.collapsed .voice-collapse-btn {
    background: transparent;
    color: #0a3d3e;
    font-size: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
