/* Voice/Mic button styles for frameless chat interface */

/* Mic button - subtle, inside input, left of send button */
.mic-button {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-secondary, #6B7280);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: color 0.2s ease;
}

.mic-button:hover {
    color: var(--text-primary, #1A1A1A);
    opacity: 1;
    background: transparent;
}

.mic-button i,
.mic-button .material-icons {
    font-size: 20px;
    line-height: 1;
}

/* Recording state */
.mic-button.recording {
    color: #EF4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Recording status - hidden in new design */
#recording-status {
    display: none;
}

/* Hide mic on mobile */
@media (max-width: 768px) {
    .mic-button {
        display: none !important;
    }

    #message {
        padding-right: 18px !important;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .mic-button {
        -webkit-tap-highlight-color: transparent;
    }
}
