/* Общие окна голосового модуля: доска ученика (board.php) и кабинет учителя (admin/room.php) */

/* Плашка отказа в правах доступа (пункт 5) */
.voice-permission-denied-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(4px);
}

.voice-permission-denied-modal {
    background: white;
    border-radius: 16px;
    padding: 30px 28px;
    max-width: 480px;
    width: 92%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.voice-permission-denied-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.voice-permission-denied-title {
    font-size: 22px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 12px;
}

.voice-permission-denied-text {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 22px;
}

.voice-permission-denied-text strong {
    color: #1976d2;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.voice-permission-denied-btn {
    padding: 12px 28px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.voice-permission-denied-btn:hover {
    background: #43a047;
}

/* Уведомление о потере связи с голосом (пункт 14) */
.voice-disconnected-bar {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9800;
    color: white;
    padding: 10px 18px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    animation: vdb-slide-in 0.3s ease;
}

@keyframes vdb-slide-in {
    from { transform: translate(-50%, -20px); opacity: 0; }
    to   { transform: translate(-50%, 0); opacity: 1; }
}

.voice-disconnected-bar button {
    background: white;
    color: #ff9800;
    border: none;
    border-radius: 16px;
    padding: 4px 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
}
