/* 

#videos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

video {
    width: 100%;
    max-width: 400px;
    /* Adjust based on screen size */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
} */

.chat-col {
    position: fixed;
    right: 0;
    bottom: 0;
    top: 47px;
    /* Adjust based on your navbar height */
    z-index: 9999;
    width: 300px;
    /* Adjust width */
    height: calc(100vh - 47px);
    /* Full height minus navbar */
    background-color: #17a2b8 ;
    transition: all 0.3s ease-in-out;
    overflow-y: auto;
}

/* Ensure chat input doesn't disappear */
.chat-box {
    position: fixed;
    bottom: 10px;
    width: 90%;
    left: 5%;
    border: 1px solid #fff;
    padding: 10px;
    background: #fff;
    z-index: 10000;
}

.chat-col.chat-opened {
    right: 0;
}

#chat-messages {
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-bottom: 10px;
}

#chat-messages::-webkit-scrollbar {
    display: none;
}

.navbar {
    background-color: #8BD812 !important;
    /* Change navbar to the new green */
    color: white !important;
}

.btn-info {
    background-color: #8BD812 !important;
    border-color: #6FAF10 !important;
}

.chat-col.chat-opened {
    right: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s ease !important;
    -webkit-transition: all 0.3s ease !important;
    -moz-transition: all 0.3s ease !important;
}

#chat-messages {
    height: 70vh;
    margin-bottom: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

#chat-messages::-webkit-scrollbar {
    width: 0px;
    /* Remove scrollbar space */
    background: transparent;
}

.chat-box {
    bottom: 0px;
    right: 0;
    position: absolute;
    border: 0;
    border-top: 1px groove white;
    border-left: 1px groove white;
    font-size: small;
    width: 100%;
}

.chat-box::placeholder {
    font-size: small;
    font-weight: lighter;
    font-style: italic;
}

.chat-box,
.chat-box:focus {
    resize: none !important;
    box-shadow: none !important;
}

.chat-row {
    height: 100%;
    overflow-x: scroll;
}

.main {
    padding-top: 40px;
}

.remote-video {
    width: 100%;
    height: auto;
    max-height: 90vh;
}

.remote-video-controls {
    position: absolute;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 300000;
    padding: 10px;
    width: 100%;
    text-align: center;
    visibility: hidden;
}

.remote-video:hover+.remote-video-controls,
.remote-video-controls:hover {
    visibility: visible;
}

.local-video {
    bottom: 0;
    left: 0;
    position: fixed;
    width: 15vw;
}

.mirror-mode {
    -ms-transform: scaleX(-1);
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

.sender-info {
    font-size: smaller;
    margin-top: 5px;
    align-self: flex-end;
}

.msg {
    font-weight: 400;
    font-size: 12px;
    color: black;
    background-color: wheat;
}

.chat-card {
    border-radius: 6px;
}

.btn-no-effect:focus {
    box-shadow: none;
}

.very-small {
    font-size: 6px !important;
}

#close-single-peer-btn {
    position: fixed;
    top: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    color: #f1f1f1;
    border-radius: 0%;
    z-index: 100;
}

.pointer {
    cursor: pointer;
}

.record-option {
    height: 200px;
    border-radius: 10%;
    border: 1px solid #8BD812;
    cursor: pointer;
    padding: 10px;
    vertical-align: middle;
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.custom-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #8BD812;
    width: 80%;
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

/* Mobile Responsive CSS */
@media only screen and (max-width: 767px) {
    .chat-col {
        right: -100vw;
        width: 100vw;
        z-index: 99999;
        transition: all 0.3s ease-in-out;
        top: 47px;
    }

    .chat-col.chat-opened {
        right: 0;
        width: 100vw;
        height: 100vh;
        top: 47px;
        transition: all 0.3s ease-in-out;
    }

    .chat-opened::-webkit-scrollbar {
        display: none;
    }

    #chat-messages {
        height: 65vh;
        overflow-y: auto;
    }

    .chat-box {
        bottom: 0;
        width: 100%;
        position: fixed;
        left: 0;
    }

    .card-sm {
        max-width: 100%;
        min-width: 50%;
    }

    .local-video {
        width: 40vw;
    }
}

@media (min-width: 768px) {
    .card {
        width: 50%;
        z-index: 1000;
    }
    .chat-pane{
            background-color: #8BD812;
    }
}

