﻿
.video-container-start-media {
    position: relative;
    width: 80%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-chart {
    cursor: pointer;
    margin: 5px;
    height: 60px;
    width: 60px;
    display: flex;
    border-style: solid;
    border-color: #636363;
    border-radius: 5px;
    border-width: 2px;
}

    .card-chart.active {
        border-color: #78c7ff;
        border-width: 4px;
    }

.img-chart {
    margin: auto;
    height: 50px;
    width: 50px
}

video-start-media {
    width: 100%;
    height: auto;
    display: block;
}

.controls-start-media {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.text-icon-light {
    color: #e9ecef;
}

.camera-off-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    color: white;
}

.overlay-small {
    width: 25%;
    height: 25%;
}

.control-btn {
    margin: 0 10px;
    background-color: #444;
    border: none;
    color: white;
    padding: 15px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}

    .control-btn:hover {
        background-color: #555;
    }


.unique-user-row-1 {
    height: 85vh;
    position: relative;
}

.unique-user-row-2 {
    height: 85vh;
    width: 100%;
    margin: auto;
}


@media (max-width: 768px) {
    .unique-user-row-1 {
        height: 25vh;
        position: relative;
    }

    .unique-user-row-2 {
        height: 50vh;
        width: 100%;
        margin: auto;
    }
}


.container-video-grid {
    width: 100%;
    padding: 10px;
    height: 80vh;
    overflow: hidden;
    position: relative;
}

.video-grid {
    display: grid;
    gap: 10px;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 1fr;
}

.video-participant {
    flex-shrink: 0;
    width: 250px;
    position: relative;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

    .video-participant video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

.video-participant-contain {
    position: relative;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

    .video-participant-contain video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 6px;
    }

.participant-name {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.raise-hand {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 18px;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}

    .raise-hand.active {
        display: block;
        z-index: 1;
    }

.indicate-muted {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 18px;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    width: 40px;
    height: 40px;
    text-align: center;
}

    .indicate-muted.active {
        display: block;
    }

.indicate-speaking {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 18px;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}

    .indicate-speaking.active {
        display: block;
    }

.highlighted {
    flex: 1 1 70%;
    max-width: 70%;
    transition: all 0.3s ease;
}

.side-videos {
    flex: 1 1 28%;
    max-width: 28%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

    .side-videos .video-participant {
        max-width: 100%;
    }



/* Estilo para os botões de controle */
.controls {
    display: flex;
    justify-content: center;
}

.control-btn {
    margin: 0 10px;
    background-color: #444;
    border: none;
    color: white;
    padding: 15px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}

    .control-btn:hover {
        background-color: #555;
    }



.button-start-media {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .button-start-media:hover {
        background-color: rgba(182, 25, 25, 0.8);
    }

    .button-start-media i {
        pointer-events: none;
    }


.button-start-media-danger {
    background-color: rgba(236, 48, 87);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .button-start-media-danger:hover {
        background-color: rgba(234, 26, 69);
    }

    .button-start-media-danger i {
        pointer-events: none;
    }

.button-start-media-info {
    background-color: rgba(101, 149, 216);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .button-start-media-info:hover {
        background-color: rgba(90, 134, 194);
    }

    .button-start-media-info i {
        pointer-events: none;
    }

.button-start-media-warning {
    background-color: rgba(234, 168, 87);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .button-start-media-warning:hover {
        background-color: rgba(234, 168, 87);
    }

    .button-start-media-warning i {
        pointer-events: none;
    }


.button-start-media-badge {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    position: relative; /* Necessário para que o span seja posicionado em relação ao botão */
    transition: background-color 0.3s ease;
}

    .button-start-media-badge:hover {
        background-color: rgba(182, 25, 25, 0.8);
    }

    .button-start-media-badge i {
        pointer-events: none;
    }

    .button-start-media-badge .badge {
        position: absolute;
        top: -5px; /* Ajuste para posicionar o span no topo */
        right: -5px; /* Ajuste para posicionar o span à direita */
        background-color: red;
        color: white;
        border-radius: 50%;
        padding: 2px 6px;
        font-size: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

.video-item-multi.remaining {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: 4px solid rgb(83, 83, 240);
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    position: relative;
}

    .video-item-multi.remaining .circle {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #444;
        color: #fff;
        border-radius: 50%;
        width: 100px;
        height: 100px;
        border: 2px solid #fff;
    }

@media (max-width: 600px) {
    .video-grid {
        flex-direction: column;
        display: block;
    }

    .video-participant {
        margin: 2px;
    }

    .control-btn {
        padding: 10px;
        font-size: 18px;
    }
}


/*SOUND INDICATOR*/

.wave-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 30px;
    padding: 10px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(0, 150, 255, 0.7);
    background-color: rgba(0, 150, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.5);
}

.wave {
    width: 4px;
    height: 10px;
    background-color: rgba(0, 150, 255, 0.7);
    animation: wave-animation 1s ease-in-out infinite;
}

    .wave:nth-child(1) {
        animation-delay: 0s;
    }

    .wave:nth-child(2) {
        animation-delay: 0.2s;
    }

    .wave:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes wave-animation {
    0%, 100% {
        transform: scaleY(0.3) translateX(-10px);
    }

    50% {
        transform: scaleY(1.5) translateX(10px);
    }
}

.hidden {
    display: none;
}

.mic-container {
    position: relative;
    display: inline-block;
}

.mic-dropdown-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 50px;
    width: 100px;
    height: 50px;
    cursor: pointer;
    outline: none;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    padding: 0;
}

    .mic-dropdown-button:hover {
        background-color: #f0f0f0;
    }

.mic-icon {
    width: 50%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*TEST*/

.container-video {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.carousel-container {
    display: flex;
    align-items: center;
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    flex-grow: 1;
    scroll-behavior: smooth;
}

    /* Barra de rolagem para navegadores baseados em WebKit (Chrome, Edge, Safari) */
    .carousel::-webkit-scrollbar {
        height: 10px; /* Altura da barra de rolagem */
    }

    .carousel::-webkit-scrollbar-track {
        background: #f0f0f0; /* Cor do fundo da barra de rolagem */
        border-radius: 5px; /* Arredondamento */
    }

    .carousel::-webkit-scrollbar-thumb {
        background: #007bff; /* Cor do "thumb" da barra de rolagem */
        border-radius: 5px; /* Arredondamento */
        border: 2px solid #f0f0f0; /* Espaço entre o thumb e o track */
    }

        .carousel::-webkit-scrollbar-thumb:hover {
            background: #0056b3; /* Cor ao passar o mouse no thumb */
        }

/* Para Firefox */
.carousel {
    scrollbar-width: auto;
    scrollbar-color: #007bff #f0f0f0;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 2;
}

.circular-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

    .circular-button:hover {
        background-color: rgba(0, 0, 0, 0.9);
    }

.video-participant:hover .video-overlay {
    display: flex;
}

.video-participant-contain:hover .video-overlay {
    display: flex;
}

.button-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}


/* Adiciona transições para uma suavização na mudança de visibilidade */
.hidden-item {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Mover o elemento para baixo */
    transition: opacity 0.3s ease, visibility 0s 0.3s, transform 0.3s ease;
}

.clear-item {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Volta para a posição original */
    transition: opacity 0.3s ease, visibility 0s 0s, transform 0.3s ease;
}

#users-conversations,
#all-users-on-call {
    /* Para que a transição funcione corretamente, é necessário ter uma altura definida (auto) e visibilidade manipulável */
    transition: opacity 0.3s ease, visibility 0s 0.3s, transform 0.3s ease;
}


/*MEDIA EMOJIS*/

.emoji-options {
    position: fixed;
    bottom: 100px;
    display: flex;
    gap: 10px;
    background-color: #211f1f;
    border-radius: 10px;
    padding: 10px;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden-emoji {
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
}

.emoji-button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.emoji-animation {
    position: absolute;
    text-align: center;
    animation: float-up-grow 6s ease-out forwards;
}

    .emoji-animation span {
        display: block;
        font-size: 14px;
        color: white;
        background-color: rgba(0, 0, 0);
        padding: 2px 6px;
        border-radius: 5px;
        margin-top: 5px;
    }


@keyframes float-up-grow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    70% {
        transform: translate(calc(-50px + 100px * var(--random-x)), -500px) scale(1.5);
        opacity: 0.9;
    }

    100% {
        transform: translate(calc(-80px + 200px * var(--random-x)), -500px) scale(2);
        opacity: 0;
    }
}

/*REPONSIVE LAYOUT*/

.principal-layout {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


/* Estilos para dispositivos pequenos (smartphones, como Moto G) */
@media (max-width: 576px) {
    .principal-layout {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
}

/* Estilos para dispositivos médios (smartphones maiores como iPhone XR) */
@media (min-width: 577px) and (max-width: 768px) {
    .principal-layout {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
}

/* Estilos para tablets e iPads */
@media (min-width: 769px) and (max-width: 1024px) {
    .principal-layout {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
}

/* Estilos para notebooks e laptops pequenos */
/*@media (min-width: 1025px) and (max-width: 1366px) {
    .principal-layout {
        height: 90vh;
    }
}*/

/* Estilos para telas grandes (desktops e laptops maiores) */
/*@media (min-width: 1367px) {
    .principal-layout {
        height: 90vh;
    }
}*/



/* Tooltip container */
.tooltip-container {
    position: relative;
    display: inline-block;
}

    /* Tooltip text */
    .tooltip-container .tooltip-text {
        visibility: hidden;
        width: 180px; /* Largura do tooltip */
        background-color: rgba(0, 0, 0, 0.6); /* Cor de fundo personalizada */
        color: #f1faee; /* Cor do texto */
        text-align: center;
        border-radius: 8px; /* Bordas arredondadas */
        padding: 8px;
        font-size: 14px;
        position: absolute;
        z-index: 1;
        bottom: 110%; /* Posiciona acima do botão */
        left: 30%; /* Centraliza horizontalmente */
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s, transform 0.3s;
    }

        /* Tooltip arrow */
        .tooltip-container .tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%; /* Posiciona a seta abaixo do tooltip */
            left: 50%;
            transform: translateX(-50%);
            border-width: 6px; /* Tamanho da seta */
            border-style: solid;
            border-color: #1d3557 transparent transparent transparent; /* Cor da seta */
        }

    /* Tooltip visible on hover */
    .tooltip-container:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
        transform: translateX(-50%) translateY(-5px); /* Pequeno efeito de deslocamento */
    }



/* Modal background overlay */
.omni-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

/* Modal container */
.omni-modal {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

    .omni-modal h2 {
        margin: 0 0 10px;
        color: black;
    }

    .omni-modal p {
        margin: 0 0 20px;
        color: black;
    }

    .omni-modal button {
        color: #414244;
        border: none;
        padding: 10px 20px;
        border-radius: 4px;
        cursor: pointer;
    }

.close-modal-x {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

    .close-modal-x:hover {
        color: #414244;
        background-color: #f1f1f1;
    }
