/* ============================= */
/* 🎥 Video Call Styling (Clean) */
/* ============================= */
.video-container {
  display: none; /* hidden until a call starts */
  position: relative;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 3;
  margin: 10px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Local video small preview */
#localVideo {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 30%;
  height: auto;
  max-height: 80px;
  border: 2px solid #fff;
  border-radius: 6px;
  background: #000;
}

/* Video controls */
.video-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
}

.video-controls.active {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hangup-btn {
  background: red;
  color: white;
  font-weight: bold;
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.hangup-btn:hover {
  background: darkred;
}

/* Make it look perfect in small screens */
@media (max-width: 480px) {
  .video-container {
    max-width: 250px;
    aspect-ratio: 3 / 4;
  }

  #localVideo {
    width: 35%;
    bottom: 6px;
    right: 6px;
  }
}



/* ============================= */
/* 🎥 Video Call Styling (Old)  */
/* ============================= */
#localVideo, #remoteVideo {
  transition: width 0.3s ease;
}





