/* Voice Input Styles */
.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.voice-btn {
    position: absolute;
    right: -80px;
    top: 50%;
    margin-top: -30px;
    width: 60px;
    /* Fixed size to avoid huge button */
    height: 60px;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    padding: 0;
    transition: all 0.3s ease;
    opacity: 0.7;
    z-index: 20;
    /* Ensure clickable */
    font-size: 1rem;
    /* Reset font size for icon */
    animation: pulse-idle 2.5s ease-in-out infinite;
}

.voice-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    /* Subtle accent bg */
    opacity: 1;
    transform: scale(1.1);
    animation: none;
}

.voice-btn svg {
    width: 50%;
    height: 50%;
    stroke-width: 1.5;
}

.voice-btn.recording {
    background: #fff;
    color: #000;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes pulse-idle {
    0% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
        box-shadow: 0 0 15px 0 rgba(255, 255, 255, 0.3);
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}