/* Enhanced microphone button styles */
.mic-button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s;
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mic-button:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

.mic-button.recording {
    background-color: #dc3545;
    animation: pulse 1.5s infinite;
}

.mic-button.processing {
    background-color: var(--primary-color);
}

.mic-button.error {
    background-color: #dc3545;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.speech-status {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1001;
}

.speech-status.show {
    opacity: 1;
}
