* {
  font-family: Verdana;
}

body {
  background-image: url('./assets/bg.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.viewers-body {
  background: #1c264d !important;
}

.containers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 10px;
  row-gap: 10px;
  border-radius: 5px;
  cursor: pointer;
}
#user-count {
  font-size: 18px;
  color: white;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header {
  min-height: 70px;
  background: black;
  display: flex;
  align-items: center;
  color: white;
}
#devicesList {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
}
.call-container {
  margin-top: 20px;
  height: calc(100vh - 260px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-layout {
  box-sizing: border-box;
  flex: 1 1 auto;
  place-content: center;
  height: calc(100vh - 135px);
}
#call {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ot-layout {
  margin: 4px;
  border-radius: 6px;
}
#call {
  flex-direction: row;
    box-sizing: border-box;
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    counter-reset: video-call;
    overflow: hidden;
}

#login-container {
  height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#login {
  display: flex;
  flex-direction: column;
  min-width: 350px;
}

#login i {
  font-size: 16px;
  color: white;
  margin-right: 8px;
}

#login input {
  width: 100%;
  padding: 8px;
  margin: 0 0 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

#login button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px !important;
  transition: background 0.3s ease;
}

button i {
  margin-right: 5px;
}

button:hover {
  background: #0056b3;
}

.vid {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  border-radius: 6px;
}

.hidden {
  display: none !important;
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.custom-toast {
  background-color: #333;
  color: #fff;
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  animation: fadeInOut 3s forwards;
  font-family: sans-serif;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-10px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}

.play-overlay {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center !important;
  align-items: center !important;
}

.play-btn {
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  background-color: transparent;
  color: black;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.home {
  height: 100vh;
  overflow: hidden;
}

.header {
  height: 90px;
  background-color: #e3f2fd;
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  cursor: pointer;
  width: 180px;
  padding-left: 25px;
}

.home_main {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #f1f6f9;
}

.active-border {
  border: 2px solid red !important;
}
.speaker-wrapper {
  width: 100%;
    height: 100%;
    position: absolute;
    z-index: 999;
    border-radius: 4px;
}

.footer {
  padding: 10px 20px;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
    bottom: 0;
    width: 100%;
}

.footer-btn {
  padding: 8px 16px;
  margin: 5px;
  font-size: 14px;
  cursor: pointer;
}
.controls-btn {
  margin: 0;
  border: 1px solid white;
  border-radius: 20%;
  cursor: pointer;
  background: black;
  color: white;
  position: relative;
}
#user-count {
  width: 25px;
  height: 25px;
  position: absolute;
  border-radius: 50%;
  background: #007bff;
  color: white;
  top: -14px;
  right: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#show-participants-btn {
  position: relative;
}

.participants-popup {
  color: white;
  position: fixed;
  bottom: 60px;
  right: 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 250px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 9999;
  background-color: #0b2447;
}

.participants-popup.hidden {
  display: none;
}

.participant-item {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.participant-icon {
  margin-left: 10px;
  font-size: 16px;
}

.viewer-icon {
  background-image: url(../assets/eye.svg);
  background-position: center;
  background-repeat: no-repeat;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border-style: none;
  cursor: pointer;
  position: absolute;
  right: 40px;
  z-index: 99;
}

.listener-icon {
  background-image: url(../assets/listener.svg);
  background-position: center;
  background-repeat: no-repeat;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border-style: none;
  cursor: pointer;
  z-index: 99;
  filter: invert(1);
  background-size: cover;
}

.view-icon {
  background-image: url(../assets/eye.svg);
  background-position: center;
  background-repeat: no-repeat;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border-style: none;
  cursor: pointer;
  right: 40px;
  z-index: 99;
}

.broadcast-icon {
  background-image: url(../assets/broadcast-call.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border-style: none;
  cursor: pointer;
  right: 40px;
  z-index: 99;
  filter: invert(1);
}

/* //chat-box */

.chat-box {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 350px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  font-family: sans-serif;
}

.chat-header {
  background-color: #1e1e1e;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.chat-messages {
  padding: 10px;
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #f7f7f7;
}

.chat-message {
  background-color: #e1e1e1;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 14px;
  max-width: 90%;
  word-wrap: break-word;
}

.chat-name {
  font-weight: bold;
  margin-right: 5px;
}

.chat-input-box {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ccc;
}

.chat-input-box input {
  flex: 1;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.chat-input-box button {
  margin-left: 5px;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background-color: #1e1e1e;
  color: white;
  cursor: not-allowed;
}

/* General modal box styling */
#invite-box {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 350px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  font-family: sans-serif;
}

.invite-box-inputs {
  padding: 15px;
  gap: 10px;
  display: flex;
  flex-direction: column;
}

/* Input and select styling inside invite box */
.invite-box-inputs input,
.invite-box-inputs select {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Invite button styling */
.invite-box-inputs button {
  width: 100%;
  background-color: #5865f2;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
.unread {
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  position: absolute;
  top: -5px;
  right: -5px;
}
#open-chat-btn {
  position: relative;
}

#showCoHostBtn {
  position: relative;
  margin: 10px;
}

#cohost-count {
  background: red;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 12px;
  margin-left: 4px;
}

.disabled-button {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.cohost-popup {
  position: absolute;
  bottom: 50px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 9999;
  width: 380px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: black;
}

.cohost-popup h3 {
  font-size: 22px;
  font-weight: bold;
}
.cohost-popup ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cohost-request-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cohost-request-item span {
  font-size: 20px;
  font-weight: bold;
}

.cohost-actions button {
  margin-left: 5px;
}

.empty-message {
  text-align: center;
  color: #666;
  font-size: 14px;
}

.initials-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: #0a58ca;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  opacity: 0.8;
  z-index: 10;
  pointer-events: none;
}


.screen-share-full {
  position: fixed !important;
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  max-height: unset !important;
  z-index: 9998 !important;
  background-color: #000;
}

.copy-btn{
  display: flex;
  align-items: center;
  justify-content: center;
}

 @media (max-width: 768px) {
   .hide-on-mobile {
     display: none !important;
   }
 }

 #control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.control-button.control {
  display: flex;
  align-items: center;
  background-color: #1a73e8;
  border-radius: 5px;
  padding: 1px 5px !important;
  /* height: 40px; */
}

.control-button.control button {
  background: none;
  border: none;
  cursor: pointer;
}

.control-button.control img {
  width: 26px;
  height: 26px;
}

.control-button.control .dropdown-arrow {
  font-size: 15px !important;
  color: black !important;
  margin-left: 4px;
}

.device-menu {
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  min-width: 150px;
  z-index: 1000;
  transform: translateX(-50%);
  bottom: 100%;  /* Show above the mic control */
  left: 50%;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.device-menu li {
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.device-menu li:hover {
  background-color: #eee;
}

.mic-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
}
.video-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
}

.dropdown-arrow{
  color: white;
  cursor: pointer; 
  padding: 10px 10px 10px 15px !important;
 /* padding-bottom: 12px; */
  background-color: white;
  border-radius: 5px;
  transform: rotate(-90deg) !important;
}

.screen-share-minimized {  
  object-fit: fill !important;
  position: absolute !important;
  bottom: 10% !important;
  left: 20 !important;
  max-width: 300px !important;
  max-height: 200px !important;
  min-width: 200px !important;
  min-height: 120px !important;
  border: 1px solid red !important;
  border-radius: 10px !important;
  z-index: 9999 !important;
}

#toggleBigBtn {
  background-color: #ffffff91 !important;
}

#show-participants-btn{
  background-color: white;
}

.footer-host-name{
  color: white;
}

.role-display {
  text-align: center;
  padding: 10px;
  font-weight: bold;
  background-color: #f9f9f9;
  border-top: 1px solid #ddd;
  margin-top: 10px;
  z-index: 9999 !important;
}

.role-display span {
  margin: 0 15px;
}

.video-name-tag {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 10;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewer-name-label {
  position: fixed;
  bottom: 90px;
  left: 10px;
  background-color: rgba(0,0,0,0.6);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  /* z-index: 9999; */
}

#room-container {
  display: none !important;
}

@media screen and (max-width: 430px) {
.control-button.control img {
  width: 18px !important;
  height: 18px !important;
}
button {
  padding: 6px 8px;
}
.fs-12{
  font-size: 12px;
}
.dropdown-arrow {
 padding: 6px 10px 6px 9px !important;
}
.form-select {
  font-size: 0.8rem !important;
  left: 30% !important;
}

#control {
    padding-left: 50px;
}

.video-name-tag {
    bottom: 10px !important;
}
}

.form-select {
   position: absolute; 
   bottom: 100%;
   left:50%;
   transform: translateX(-50%);
   width: 250px;
   z-index: 999;
}

