
/* ===========================
✅ Send Link to Chat Button
=========================== */
.meeting-link-send {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}
.center-join-button {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 9999;
}

.meeting-link-send button {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s;
}

.meeting-link-send button:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
}

.meeting-link-send button:active {
    background-color: #0d47a1;
    transform: translateY(0);
}
 

.remote-video-box {
  position: relative;
  flex: 1 1 50%; /* 2 users = 50% each */
   height: 100%;
  background: black;
	  transition: max-width 0.3s ease, flex 0.3s ease;

}

.remote-video-box video {
width: 100%;
    height: 100%;
     padding: 10px;
    border: 2px solid #FFF;
	object-fit: cover;
}


/* ✅ Responsive Adjustments */
@media (max-width: 480px) {
    .meeting-link-send button {
        font-size: 12px;
        padding: 8px 15px;
    }
}

		
		
.meeting-link-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 20px;
    overflow: hidden;
    text-align: center;
}



/* ✅ Close Button Container */
.meeting-link-close {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.meeting-link-close button {
    background-color: #e53935;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
}

.meeting-link-close button:hover {
    background-color: #c62828;
}

/* ✅ Header Section */
.meeting-link-header {
    margin-bottom: 15px;
}

.meeting-link-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.meeting-link-header p {
    font-size: 14px;
    color: #555;
    margin: 5px 0 0;
    font-style: italic;
}

/* ✅ Link Container */
.meeting-link-body {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
}

.meeting-link-body input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    text-overflow: ellipsis;
}

.meeting-link-body button {
    background-color: #4caf50;
    border: none;
    color: white;
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
}

.meeting-link-body button:hover {
    background-color: #388e3c;
}

/* ✅ Responsive Adjustments */
@media (max-width: 480px) {
    .meeting-link-popup {
        width: 90%;
    }

    .meeting-link-body input {
        font-size: 12px;
    }

    .meeting-link-body button {
        font-size: 12px;
    }
}

		
		 
/* ===========================
✅ General Styles
=========================== */
.hidden {
    display: none !important;
}

.disabled-button {
    background-color: #555 !important;
    opacity: 0.6;
    cursor: not-allowed;
}

.pop-call-button:hover:not(.disabled-button) {
    background-color: #777;
    transform: scale(1.1);
    transition: background-color 0.3s, transform 0.2s;
}
		

 

.modal-buttons .popup-end {
    background: #e53935;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.modal-buttons .popup-end:hover {
    background: #c62828;
}

.modal-buttons .pop-call-button {
    background: #444;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.modal-buttons .pop-call-button:hover {
    background: #666;
}
		

/* ===========================
✅ Call Popup Styles
=========================== */
.call-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1e1e1e;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.call-overlay {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* ===========================
✅ Video Container
=========================== */
.call-video-container {
    display: flex;
    width: 97%;
    height: calc(100% - 70px); /* Reserve space for control bar */
    background: #000;
    position: relative;
    transition: all 0.3s ease-in-out;
	
}

/* ✅ Local Video Section */
.local-video-section {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    transition: width 0.3s ease;
}

.local-video-section.split {
    width: 30%;
}

.local-video-section video {
    width: 100%;
    height: 100%; 
}

 

/* ✅ Video Stream Info */ 
.call-agent-info {
    position: absolute;
    bottom: 40px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.call-agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%; 
    border: 2px solid #fff;
}

.call-agent-username {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* ===========================
✅ Bottom Bar	
=========================== */
.call-bottom-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70px;
    background-color: #2c2c2c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    z-index: 100;
}

.call-time {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
         border: 1px solid #eee;
        border-radius: 10px;
        padding: 0 11px;
}

/* ✅ Control Buttons */
.call-buttons {
    display: flex;
    gap: 20px;
}

.call-buttons .pop-call-button,
.call-buttons .pop-camera-button,
.call-buttons .popup-end {
    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;
}

/* ✅ Button Default State */
.call-buttons .pop-call-button {
    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, transform 0.2s;
}

/* ✅ Camera & Mic ON State */
.call-buttons .pop-call-button.button-on {
    background-color: #444; /* Default ON state background */
}

/* ✅ Camera & Mic OFF State */
.call-buttons .pop-call-button.button-off {
    background-color: #e53935; /* RED background when OFF */
}

/* ✅ Hover Effects */
.call-buttons .pop-call-button.button-on:hover {
    background-color: #666;
}

.call-buttons .pop-call-button.button-off:hover {
    background-color: #c62828;
}
.call-buttons .pop-call-button:hover {
    background-color: #777;
}

.call-buttons .pop-camera-button {
    background-color: #444;
}

.call-buttons .pop-camera-button:hover {
    background-color: #666;
}

.call-buttons .popup-end {
    background-color: #e53935;
}

.call-buttons .popup-end:hover {
    background-color: #c62828;
}

/* ===========================
✅ End Call Modal
=========================== */
.call-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.call-modal-content {
    background: #fff;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.call-modal-content h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.call-modal-content p {
    margin: 10px 0;
    font-size: 14px;
    color: #555;
}
 
.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

/* ===========================
✅ Toast Notification
=========================== */
.call-toast {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    z-index: 10001;
}

 

 
/* ✅ Floating Local Video Wrapper */
.floating-local-video {
    position: absolute;
      bottom: 20px;
    left: 20px;  /* ✅ Start from the left */
    right: auto; /* ✅ Reset the right value */
    width: 240px;
    height: 135px;
    z-index: 999;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    cursor: move;
    background-color: #000;
}

.floating-local-video .local-video-section {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
}

.floating-local-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

 
.floating-local-video .call-user-info {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.floating-local-video .call-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #fff;
}

.floating-local-video .call-username {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* Remove old styles no longer needed */
.local-video-section.full-screen,
.local-video-section.small-video {
    width: 100%;
    height: 100%;
}

/* ✅ Reset adjustments for remote section to take full */
.user-video-section {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}
.user-video-section #user-video{
	height: 100%;
	width: 100%;
}
/* ✅ Toast / Leave Message */
.leave-message {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    z-index: 99;
    animation: fadeInOut 4s ease-in-out;
}
/* Ensure local floating video behaves correctly */
#local-video-wrapper {
    transition: all 0.3s ease-in-out;
	    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
	
    background-color: #000;
}
#local-video-section {
    width: 100%;
    height: 100%;
    position: relative;
}

#local-video-section video {
    width: 100%;
    height: 100%; 
}
.call-user-info {
    position: absolute;
    bottom: 120px;
    right: 33px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.call-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.call-username {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

#local-video-wrapper.floating-local-video {
    position: absolute !important;
    width: 240px;
    height: 135px;
    top: auto;
    left: 20px;
    bottom: 20px;
    right: 20px;
    background: #000;
    z-index: 1000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    cursor: move;
    max-width: calc(100vw - 10px);  /* Safe bounds */
    max-height: calc(100vh - 10px);
}

/* Apply clean video container rules for both */
.local-video-section video,
.user-video-section video {
    width: 100%;
    height: 100%;
 
}

/* Avoid drag box stretching */
.floating-local-video .local-video-section {
    width: 100%;
    height: 100%;
}
/* Solo user info bottom right like remote */
.full-screen .call-agent-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.floating-local-video.disabled-drag {
    cursor: default !important;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

 
@media (max-width: 768px) {
	  .call-video-container {
    flex-direction: column;
		      height: calc(100% - 5px);
  }
 
	
    .call-video-section {
        width: 100% !important;
        height: 100% !important;
    }

    #local-video-wrapper.floating-local-video {
        width: 150px;
        height: 90px;
        bottom: 10px;
        left: 10px;
    }

    .floating-local-video .call-user-info {
        bottom: 4px;
        left: 4px;
        padding: 3px 6px;
        gap: 4px;
    }

    .floating-local-video .call-user-avatar {
        width: 24px;
        height: 24px;
    }

    .floating-local-video .call-username {
        font-size: 11px;
    }
	
  .call-bottom-bar {
        position: fixed;
        top: env(safe-area-inset-top, 0); /* 🔼 Move to top */
        left: 0;
        width: 100%;
        z-index: 9999;
        background-color:  #2c2c2c42;
        padding-top: calc(env(safe-area-inset-top, 0px) + 10px); /* Optional: prevent iOS notch overlap */
    }
    .call-buttons {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .call-buttons .pop-call-button,
    .call-buttons .popup-end {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .call-time {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
	.three-participants-mobile {
  display: inline-grid !important;
  /* other styles */
}

		  .call-video-container {
    flex-direction: column;
		      height: calc(100% - 5px);
  }
 
	
    .call-video-section {
        width: 100% !important;
        height: 100% !important;
    }

    #local-video-wrapper.floating-local-video {
        width: 150px;
        height: 90px;
        bottom: 10px;
        left: 10px;
    }

    .floating-local-video .call-user-info {
        bottom: 4px;
        left: 4px;
        padding: 3px 6px;
        gap: 4px;
    }

    .floating-local-video .call-user-avatar {
        width: 24px;
        height: 24px;
    }

    .floating-local-video .call-username {
        font-size: 11px;
    }
	
  .call-bottom-bar {
        position: fixed;
        top: env(safe-area-inset-top, 0); /* 🔼 Move to top */
        left: 0;
        width: 100%;
        z-index: 9999;
        background-color:  #2c2c2c42;
        padding-top: calc(env(safe-area-inset-top, 0px) + 10px); /* Optional: prevent iOS notch overlap */
    }
    .call-buttons {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .call-buttons .pop-call-button,
    .call-buttons .popup-end {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .call-time {
        font-size: 14px;
    }
    .meeting-link-popup {
        width: 90%;
        padding: 15px;
    }

    .meeting-link-header h3 {
        font-size: 18px;
    }

    .meeting-link-body input {
        font-size: 13px;
    }

    .meeting-link-send button {
        font-size: 13px;
        padding: 8px 15px;
    }

    .call-modal-content {
        width: 90%;
        padding: 15px;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 8px;
    }
}
@media (max-width: 360px) {
		  .call-video-container {
    flex-direction: column;
		      height: calc(100% - 5px);
  }
 
    .call-video-section {
        width: 100% !important;
        height: 100% !important;
    }

    #local-video-wrapper.floating-local-video {
        width: 150px;
        height: 90px;
        bottom: 10px;
        left: 10px;
    }

    .floating-local-video .call-user-info {
        bottom: 4px;
        left: 4px;
        padding: 3px 6px;
        gap: 4px;
    }

    .floating-local-video .call-user-avatar {
        width: 24px;
        height: 24px;
    }

    .floating-local-video .call-username {
        font-size: 11px;
    }
	
  .call-bottom-bar {
        position: fixed;
        top: env(safe-area-inset-top, 0); /* 🔼 Move to top */
        left: 0;
        width: 100%;
        z-index: 9999;
        background-color: #2c2c2c42;
        padding-top: calc(env(safe-area-inset-top, 0px) + 10px); /* Optional: prevent iOS notch overlap */
    }
    .call-buttons {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .call-buttons .pop-call-button,
    .call-buttons .popup-end {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .call-time {
        font-size: 14px;
    }
    .meeting-link-popup {
        width: 90%;
        padding: 15px;
    }

    .meeting-link-header h3 {
        font-size: 18px;
    }

    .meeting-link-body input {
        font-size: 13px;
    }

    .meeting-link-send button {
        font-size: 13px;
        padding: 8px 15px;
    }

    .call-modal-content {
        width: 90%;
        padding: 15px;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 8px;
    }
}

/* ✅ Clean unused elements like .card, .container, .btn-primary, .lognboard, etc. from call interface */
