/* Voice Recording Styles */
.voice-controls {
    position: relative;
}

.voice-btn {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.voice-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.voice-btn:focus {
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

/* Microphone Button */
#micBtn {
    border-color: #6c757d;
    color: #6c757d;
}

#micBtn:hover {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

/* Stop Button */
#stopBtn {
    border-color: #dc3545;
    color: #dc3545;
    animation: pulse 1.5s infinite;
}

#stopBtn:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Loading Button */
#loadingBtn {
    border-color: #ffc107;
    color: #ffc107;
}

/* Spinning animation for loading */
.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Pulse animation for recording button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Disabled input while recording */
.chat-input-container textarea:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .voice-btn {
        width: 35px;
        height: 35px;
    }

    .voice-controls {
        margin-right: 5px !important;
    }
}
