.chat-col {
    right: -100vw;
    bottom: 0;
    top: 40.5px;
    z-index: 1000;
    position: fixed;
    color: #fff;
    padding-right: 5px;
    padding-left: 5px;
    padding-bottom: 40px;
    padding-top: 15px;
    min-height: 100vh;
}

.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;
}

.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: 100%;
    object-fit: cover;
}

.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 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.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 {
    margin-left: auto;
    margin-right: auto;
    border-radius: 10%;
    border: 1px solid #17a2b8;
    cursor: pointer;
    padding: 10px;
    vertical-align: middle;
    background: #413659;
    color: white;
}

.btn-info {
    margin-left: auto;
    margin-right: auto;
    border-radius: 10%;
    border: 1px solid #17a2b8;
    cursor: pointer;
    padding: 10px;
    vertical-align: middle;
    background: #413659;
    color: white;
}

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

.custom-modal-content {
    background-color: #d1ecf1;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #17a2b8;
    width: 40%;
}

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

    to {
        top: 0;
        opacity: 1
    }
}

@media only screen and (max-width:767px) {
    .chat-col {
        right: -100vw;
        width: 100vw;
        z-index: 99999;
        transition: 0.3s;
        top: 47px;
    }

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

    #chat-messages {
        height: 60vh;
    }

    .chat-box {
        bottom: 90px;
        margin-bottom: 0px;
    }

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

    .local-video {
        width: 100%;
        height: 100%;
    }

    .video-box {
        height: 300px;
        margin-top: 10px;
    }
}

@media (min-width:768px) {
    .card {
        width: 100%;
        z-index: 1000;
    }
}


@media only screen and (max-width: 600px) {
    .adminVideo-option {
        margin-top: 270px !important;
        margin-right: auto !important;
        width: 200px !important;
    }

    #local {
        bottom: -138px !important;
    }
}

.adminVideo-option {
    background: #412352;
    width: 278px;
    border-radius: 10px;
    /* height: 33px; */
    margin-left: auto;
    margin-right: 50%;
    text-align: center;
}

.aligem {
    margin-left: auto;
    margin-right: auto;
}

/* Video Container Styles */
.video-box {
    /* height: 500px; */
    /* background-color: #1a1a1a; */
    position: relative;
    overflow: hidden;
    margin-top: 56px;
}

.video-box-remote {
    /* height: 500px; */
    /* background-color: #1a1a1a; */
    position: absolute;
    overflow: hidden;
    margin-top: 56px;
    width: 41%;
    height: 147px !important;
    object-fit: cover;
    bottom: 10px;
}

#local {
    position: absolute;
    bottom: -60px;
    right: 32%;
    width: 187px;
    height: 127px;
    border: 2px solid white;
    border-radius: 8px;
    z-index: 100000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background-color: black;
}

.single-check {
    width: 20px;
    height: 20px;
}

.video-box video {
    margin-top: 10px;
    width: 100%;
    height: 415px;
    object-fit: cover;
}

.bg-info {
    background-image: linear-gradient(to bottom right, #405c67, #410748);
}


.chcls {
    width: 18px;
    height: 18px;
    vertical-align: sub;
}

.video-controls-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.video-controls {
    display: flex;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 50px;
}

.btn-control {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.btn-control.btn-leave {
    background-color: rgba(255, 0, 0, 0.6);
    transform: rotate(135deg);
}

.btn-control.btn-leave:hover {
    background-color: rgba(255, 0, 0, 0.8);
}

.btn-control i {
    font-size: 20px;
}

/* Chat Sidebar */
.chat-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background-color: #242424;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.chat-sidebar.show {
    transform: translateX(0);
}

.chat-header {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h5 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

#chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-input-container {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    padding: 12px 20px;
    color: #fff;
    resize: none;
    height: 45px;
}

.chat-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-send {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #007bff;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-send:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.btnss {
    background: green;
    color: #fff;
    border: none;
    /* padding: 1%; */
    border-radius: 5px;
    font-size: 14px;
    /* margin: 0; */
    height: 37px;
    margin-top: 1%;
}

/* Remote Video Styles */
.remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;


}

/* Responsive Design */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    .col-sm-6 {
        width: 100%;
    }

    .video-box {
        height: 300px;
        margin-top: 10px;
    }

    .video-controls {
        padding: 10px 20px;
        gap: 10px;
    }

    .btn-control {
        width: 40px;
        height: 40px;
    }

    .chat-sidebar {
        width: 100%;
        height: 50vh;
        top: auto;
        bottom: 0;
        transform: translateY(100%);
    }

    .chat-sidebar.show {
        transform: translateY(0);
    }
}




/* Here From New Code */


@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap");

*,
*::before,
*::after {
    box-sizing: border-box;
}


*:not(:empty) {
    transform-style: preserve-3d;
}

.checkboxes {
    width: 100%;
    max-width: 180px;
}

.flipBox {
    position: relative;
    display: block;
    text-align: left;
    margin: 1em auto;
    cursor: pointer;
}

.flipBox:active>.flipBox_boxOuter {
    height: 25%;
}

.flipBox span {
    padding-left: 1.25em;
}

.flipBox>input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: fixed;
    left: -100vmax;
    top: -100vmax;
}

.flipBox>input:checked~.flipBox_boxOuter {
    -webkit-animation: flipBox1 1s forwards linear;
    animation: flipBox1 1s forwards linear;
}

.flipBox>input:checked~.flipBox_boxOuter .flipBox_box {
    -webkit-animation: flipBox2 1s forwards ease-in-out;
    animation: flipBox2 1s forwards ease-in-out;
}

.flipBox>input:checked~.flipBox_shadow {
    -webkit-animation: flipBox3 1s forwards ease-in-out;
    animation: flipBox3 1s forwards ease-in-out;
}

.flipBox>input:not(:checked)~.flipBox_boxOuter {
    -webkit-animation: flipBox4 1s forwards linear;
    animation: flipBox4 1s forwards linear;
}

.flipBox>input:not(:checked)~.flipBox_boxOuter .flipBox_box {
    -webkit-animation: flipBox5 1s forwards ease-in-out;
    animation: flipBox5 1s forwards ease-in-out;
}

.flipBox>input:not(:checked)~.flipBox_shadow {
    -webkit-animation: flipBox6 1s forwards ease-in-out;
    animation: flipBox6 1s forwards ease-in-out;
}

.flipBox>input:disabled~* {
    cursor: not-allowed;
}

.flipBox>input:disabled~.flipBox_boxOuter {
    height: 0%;
}

.flipBox>input:disabled~.flipBox_boxOuter .flipBox_box>div:nth-child(6) {
    background-color: #ccc;
}

.flipBox>input:disabled~.flipBox_boxOuter .flipBox_box>div:nth-child(-n+5),
.flipBox>input:disabled~.flipBox_boxOuter~.flipBox_shadow {
    display: none;
}

.flipBox>input:focus-visible~span {
    outline: 1px #000 solid;
    outline-offset: 0.25em;
}

.flipBox_boxOuter {
    position: absolute;
    left: 0;
    top: 50%;
    width: 1em;
    height: 1em;
    transform-origin: top;
    transition: height 0.25s;
}

.flipBox_box {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1em;
    height: 100%;
    transform: translate(-50%, -50%);
}

.flipBox_box>div {
    position: absolute;
    width: 1em;
    box-shadow: 0 0 0.25em #0007 inset;
}

.flipBox_box>div:nth-child(1) {
    background-image: linear-gradient(green, white);
    transform: rotateY(0deg) translateX(50%) rotateY(90deg);
    height: 100%;
}

.flipBox_box>div:nth-child(2) {
    background-image: linear-gradient(green, white);
    transform: rotateY(90deg) translateX(50%) rotateY(90deg);
    height: 100%;
}

.flipBox_box>div:nth-child(3) {
    background-image: linear-gradient(green, white);
    transform: rotateY(180deg) translateX(50%) rotateY(90deg);
    height: 100%;
}

.flipBox_box>div:nth-child(4) {
    background-image: linear-gradient(green, white);
    transform: rotateY(270deg) translateX(50%) rotateY(90deg);
    height: 100%;
}

.flipBox_box>div:nth-child(5) {
    background-color: green;
    transform: rotateX(90deg) translateY(-0.5em);
    transform-origin: top;
    height: 1em;
}

.flipBox_box>div:nth-child(5)::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    -webkit-clip-path: polygon(12.5% 56.25%, 25% 43.75%, 37.5% 56.25%, 75% 18.75%, 87.5% 31.25%, 37.5% 81.25%, 12.5% 56.25%);
    clip-path: polygon(12.5% 56.25%, 25% 43.75%, 37.5% 56.25%, 75% 18.75%, 87.5% 31.25%, 37.5% 81.25%, 12.5% 56.25%);
}

.flipBox_box>div:nth-child(6) {
    bottom: 0;
    background-color: white;
    transform: rotateX(90deg) translateY(0.5em);
    transform-origin: bottom;
    height: 1em;
}

.flipBox_shadow {
    position: absolute;
    left: 0;
    top: 50%;
    width: 1em;
    height: 1em;
    transform: translateY(-50%) translateZ(-1px);
    background-color: #0007;
    filter: blur(0.2em);
}

@-webkit-keyframes flipBox1 {

    0%,
    100% {
        transform: rotateX(90deg);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }

    50% {
        transform: rotateX(90deg) translateY(2em);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }
}

@keyframes flipBox1 {

    0%,
    100% {
        transform: rotateX(90deg);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }

    50% {
        transform: rotateX(90deg) translateY(2em);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }
}

@-webkit-keyframes flipBox2 {
    from {
        transform: translate(-50%, -50%) rotateX(0deg) rotateY(180deg);
    }

    to {
        transform: translate(-50%, -50%) rotateX(-180deg) rotateY(0deg);
    }
}

@keyframes flipBox2 {
    from {
        transform: translate(-50%, -50%) rotateX(0deg) rotateY(180deg);
    }

    to {
        transform: translate(-50%, -50%) rotateX(-180deg) rotateY(0deg);
    }
}

@-webkit-keyframes flipBox3 {

    0%,
    100% {
        transform: translateY(-50%) translateZ(-1px) scale(1);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }

    50% {
        transform: translateY(-50%) translateZ(-1px) scale(1.5);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }
}

@keyframes flipBox3 {

    0%,
    100% {
        transform: translateY(-50%) translateZ(-1px) scale(1);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }

    50% {
        transform: translateY(-50%) translateZ(-1px) scale(1.5);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }
}

@-webkit-keyframes flipBox4 {

    0%,
    100% {
        transform: rotateX(90deg);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }

    50% {
        transform: rotateX(90deg) translateY(2em);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }
}

@keyframes flipBox4 {

    0%,
    100% {
        transform: rotateX(90deg);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }

    50% {
        transform: rotateX(90deg) translateY(2em);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }
}

@-webkit-keyframes flipBox5 {
    from {
        transform: translate(-50%, -50%) rotateX(-180deg) rotateY(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotateX(-360deg) rotateY(180deg);
    }
}

@keyframes flipBox5 {
    from {
        transform: translate(-50%, -50%) rotateX(-180deg) rotateY(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotateX(-360deg) rotateY(180deg);
    }
}

@-webkit-keyframes flipBox6 {

    0%,
    100% {
        transform: translateY(-50%) translateZ(-1px) scale(1);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }

    50% {
        transform: translateY(-50%) translateZ(-1px) scale(1.5);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }
}

@keyframes flipBox6 {

    0%,
    100% {
        transform: translateY(-50%) translateZ(-1px) scale(1);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }

    50% {
        transform: translateY(-50%) translateZ(-1px) scale(1.5);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }
}

@media (prefers-reduced-motion) {

    .flipBox_boxOuter,
    .flipBox_box,
    .flipBox_shadow {
        -webkit-animation-play-state: paused !important;
        animation-play-state: paused !important;
    }

    .flipBox_boxOuter {
        transition: none;
    }
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.8);
    /* optional: semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
}

/* Loader styling */
.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: absolute;
    left: 50%;
    top: 20%;
    z-index: 200000;
}

.forPanAdharCheckBox {
    border-style: groove;
    padding: 10px;
    background: #412352;
    color: white;
    border-radius: 12px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}