/* Стили голосовых сообщений и кружков */

#chat-window .chat-footer .voice-toggle {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

#chat-window .chat-footer .voice-toggle img{
    max-width: none;
    width: 36px;
    height: 36px;
}

/* Модалка записи голоса */
.voice-recording-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200000;
}

.voice-recording-modal.hidden {
    display: none;
}

.voice-recording-modal-content {
    background: rgba(36,49,65,1.0);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    min-width: 300px;
    color: white;
}

#circle-send-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

#circle-recording-modal.is-locked .circle-recording-panel {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.55), 0 22px 70px rgba(0, 0, 0, 0.45);
}

.voice-recording-modal-content .modal-header {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.voice-recording-modal-content .modal-body {
    font-size: 2rem;
    color: #007bff;
}

/* Кружки */
.circle-recording-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-recording-modal.hidden {
    display: none;
}

.circle-recording-panel {
    width: 100%;
    max-width: 34rem;
    padding: 2rem 1.6rem 9rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    z-index: 9999999;
}

#circle-send-btn img{
    width: 40px;
    height: 40px;
}

.circle-recording-preview {
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    object-fit: cover;
    background: #000;
    aspect-ratio: 1/1;
    height: auto;
}

.circle-recording-timer {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

.circle-recording-hint {
    color: rgba(255,255,255,0.8);
    font-size: 1.3rem;
}

.circle-recording-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 8rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0 1.2rem;
}

#circle-toggle-flash-btn.is-active {
    background: #f59e0b;
    color: #fff;
}

.circle-recording-actions button {
    max-width: 4rem;
    border: none;
    border-radius: 20%;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 1.8rem;
}

.circle-recording-actions .hidden {
    display: none;
}

#mobile-voice-toggle.is-circle-mode {
    background: #8b5cf6;
    color: #fff;
}

.voice-toggle {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
