body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #1c1f26;
}

.navbar {
  background-color: #2b2e38 !important;
}

#video-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 60px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#remoteVideo, #localVideo {
  border-radius: 10px;
  background-color: #333;
  transition: all 0.3s ease-in-out;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  height: 100vh;
  display: block;
  margin: 0 auto;
}

#remoteVideo {
 
  z-index: 1;
}

#localVideo {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 200px;
  height: 120px;
  z-index: 2;
  border: 2px solid #ffc107;
  cursor: pointer;
}

#localVideo.active {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

#remoteVideo.shrinked {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 200px;
  height: 120px;
  z-index: 2;
  border: 2px solid #ffc107;
  cursor: pointer;
}

#controls-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
}

.control-btn {
  background-color: #2b2e38;
  border: none;
  color: white;
  padding: 12px 14px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}

.control-btn:hover {
  background-color: #3c3f4a;
}

.hangup-btn {
  background-color: #dc3545 !important;
}

#join-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

@media (max-width: 768px) {
  #localVideo, #remoteVideo.shrinked {
    width: 120px;
    height: 80px;
  }

  .control-btn {
    padding: 10px;
    font-size: 16px;
  }
}

 /* Ekran paylaşımı aktifken butonu yeşil göster */
 #toggleScreenShare.active {
  background-color: #28a745 !important; /* Bootstrap success */
  color: #fff !important;
  border-color: #28a745 !important;
}
/* İkon rengi de beyaz kalsın */
#toggleScreenShare.active i { color: #fff !important; }