

/* Start:/local/modules/video/install/css/room.css?175371991113153*/
/* Vision Video Room - Telemost Style CSS */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #1a1a1a;
    color: #000000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 100vh;
}

.video-room-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Верхняя панель */
.top-bar {
    background: rgba(0,0,0,0.8);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
}

.room-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #000000;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 4px;
}

.room-info p {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: #000000;
    background: rgba(255,255,255,0.8);
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 4px;
}

.top-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-icon {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    color: #000000;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.2);
}

/* Основное содержимое */
.main-content {
    flex: 1;
    display: flex;
    position: relative;
    overflow: auto;
    min-height: 0;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 120px);
    }
}

/* Область видео */
.video-area {
    flex: 1;
    position: relative;
    background: #000;
}

#video-grid-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Сетка видео */
.video-grid {
    display: grid;
    gap: 4px;
    padding: 4px;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Адаптивная сетка в зависимости от количества участников */
.video-grid-1 {
    grid-template-columns: 1fr;
}

.video-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.video-grid-3, .video-grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.video-grid-5, .video-grid-6 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
}

.video-grid-many {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, 1fr);
}

/* Новые стили для улучшенной сетки */
.grid-1 {
    grid-template-columns: 1fr;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

/* Режим просмотра одного участника */
.video-single {
    position: relative;
    height: 100%;
    width: 100%;
}

/* Режим основной участник + мини-сетка */
.video-main-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
}

.main-participant {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.mini-participants-grid {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    display: grid;
    gap: 8px;
    max-width: 300px;
    grid-template-columns: repeat(2, 1fr);
}

.mini-participants-grid .video-participant {
    width: 120px;
    height: 90px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
}

.mini-participants-grid .video-participant:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.4);
}

/* Индикатор выбранного участника */
.video-participant.selected {
    border: 3px solid #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

/* Адаптивность для мини сетки */
@media (max-width: 768px) {
    .mini-participants-grid {
        top: 10px;
        right: 10px;
        max-width: 200px;
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .mini-participants-grid .video-participant {
        width: 100px;
        height: 75px;
    }
}

.mini-participants-grid .video-participant:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Участник видео */
.video-participant {
    position: relative;
    background: #333;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.video-participant video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.video-participant.main {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.video-participant.main video {
    border-radius: 0;
}

/* Мини-окна участников */
.video-participant.mini {
    width: 90px;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
    background: #333;
}

.video-participant.mini:hover {
    border-color: #2563eb;
    transform: scale(1.05);
}

.video-participant.mini .participant-name {
    font-size: 0.7rem;
    padding: 2px 4px;
}

.video-mini-grid {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 250px;
}

/* Имя участника */
.participant-name {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #000000;
    backdrop-filter: blur(5px);
    font-weight: 500;
}

/* Элементы управления участника */
.participant-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.video-participant:hover .participant-controls {
    opacity: 1;
}

.participant-controls button {
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 4px;
    padding: 4px 6px;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.participant-controls button:hover {
    background: rgba(0,0,0,0.9);
}

/* Нижние элементы управления */
.bottom-controls {
    background: rgba(0,0,0,0.9);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.control-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.control-btn.active {
    background: #2563eb;
}

.control-btn.danger {
    background: #ef4444;
}

.control-btn.danger:hover {
    background: #dc2626;
}

/* Боковая панель */
.sidebar {
    width: 320px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255,255,255,0.3);
    display: flex;
    flex-direction: column;
}

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.1);
    padding: 5px;
}

.sidebar-tab {
    flex: 1;
    padding: 12px;
    background: rgba(255,255,255,0.9);
    border: none;
    color: #000000;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-weight: 500;
    border-radius: 6px 6px 0 0;
    margin: 0 2px;
}

.sidebar-tab.active {
    color: #000000;
    background: rgba(255,255,255,1);
    font-weight: 600;
}

.sidebar-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

/* Список участников */
.participants-list .participant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.participant-info {
    flex: 1;
}

.participant-info .participant-name {
    position: static;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2px;
    color: #000000;
}

.participant-status {
    font-size: 0.8rem;
    color: #000000;
    background: rgba(255,255,255,0.8);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.participant-actions button {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.2);
    color: #000000;
    cursor: pointer;
    font-size: 1rem;
    padding: 6px 8px;
    transition: all 0.2s;
    border-radius: 4px;
    font-weight: 500;
}

.participant-actions button:hover {
    background: rgba(255,255,255,1);
    color: #000000;
}

/* Чат */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    max-height: 400px;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 8px 12px;
    color: #000000;
    font-size: 0.9rem;
}

.chat-input-area input::placeholder {
    color: #666;
}

.chat-input-area input:focus {
    outline: none;
    border-color: #2563eb;
}

.chat-input-area button {
    background: #2563eb;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-input-area button:hover {
    background: #1d4ed8;
}

.msg {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    border-left: 3px solid #2563eb;
    color: #000000;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    body {
        height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .video-room-container {
        height: auto;
        min-height: 100vh;
    }
    
    .main-content {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    
    .video-area {
        height: 60vh;
        min-height: 300px;
        order: 1;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        max-height: 40vh;
        order: 2;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        overflow-y: auto;
    }
    
    .video-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: repeat(auto, 1fr) !important;
        gap: 8px;
        padding: 8px;
    }
    
    .video-participant {
        min-height: 200px;
    }
    
    .video-mini-grid {
        bottom: 80px;
        right: 10px;
        max-width: 150px;
    }
    
    .video-participant.mini {
        width: 80px;
        height: 60px;
    }
    
    .bottom-controls {
        padding: 10px;
        gap: 10px;
        position: sticky;
        bottom: 0;
        z-index: 100;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .top-bar {
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .sidebar-content {
        max-height: 200px;
    }
}

/* Анимации */
.video-participant {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Индикаторы состояния */
.connection-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.connection-indicator.connecting {
    background: #f59e0b;
    animation: pulse 2s infinite;
}

.connection-indicator.disconnected {
    background: #ef4444;
}

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

/* Эффекты наведения */
.video-participant:hover {
    transform: scale(1.02);
    transition: transform 0.2s;
}

.video-participant.mini:hover {
    transform: scale(1.1);
} 
/* End */
/* /local/modules/video/install/css/room.css?175371991113153 */
