﻿/* Chat container takes full height */
.chat {
    position: relative;
    width: 100%;
    height: 100vh; /* Full screen */
    display: flex;
    flex-direction: column;
}

/* Video call container positioned above chat */
/*.video-call-container {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 70vw;*/ /* 70% of viewport width */
    /*height: 70vh;*/ /* 70% of viewport height */
    /*background: rgba(0, 0, 0, 0);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;*/ /* Ensure it's above chat */
/*}*/

/* Remote video (big video) */
.incoming-video {
    width: 100%;
    height: 80%;
    background: black;
    border-radius: 8px;
}

/* Local video (small video in corner) */
.self-video {
    width: 25%;
    height: 25%;

    position: absolute;
    bottom: 25%;
    right: 10px;
   
    
}

/* Call controls (bottom of the video call) */
.call-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* Fullscreen mode */
.fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
}

.video-call-container {
    display: flex;
    width: 100%;
    height: 100vh;
    background-color: black;
}

.video-main {
    flex: 3;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .video-main video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

.video-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

    .video-side video {
        width: 100%;
        max-height: 30%;
        object-fit: cover;
        border-radius: 10px;
    }

.screen-sharing-active .video-main video {
    width: 80%;
    height: 90%;
}

.call-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
