/* --- LOBBY --- */
body.has-wpjoinly-lobby {
  color: var(--wpj_black);
}

.wpjoinly-lobby-container {
  max-width: 1200px;
  width: 100%;
  padding: 2rem;
  margin: 0 auto;
}

.wpjoinly-video-container {
  background-color: var(--wpj_black);
  border-radius: 8px;
  height: 400px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.wpjoinly-control-buttons {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.wpjoinly-control-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

.wpjoinly-control-button svg {
  width: 36px;
  height: 36px;
}

.wpjoinly-control-button.muted {
  background-color: #ff4d4d !important;
}

/* --- LOBBY (DEVICE SELECTORS) --- */
.wpjoinly-device-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  max-width: 100%;
  border-top: 1px solid #333;
  padding-top: 10px;
  margin-top: 10px;
}

.wpjoinly-device-dropdown {
  flex: 1;
  min-width: 30%;
  position: relative;
  width: 100%;
}

.wpjoinly-device-option {
  background-color: #2a2a2a;
  border: 1px solid #444;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px 12px;
  width: 100%;
  text-align: left;
  border-radius: 4px;
}

.wpjoinly-device-option span {
  flex-grow: 1;
  text-align: left;
  font-size: 12px;
}

.wpjoinly-device-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  margin-top: 4px;
}

.wpjoinly-device-dropdown.show .wpjoinly-device-dropdown-content {
  display: block;
}

.wpjoinly-device-dropdown-content button {
  width: 100%;
  font-size: 10px;
  text-align: left;
  background: none;
  border: none;
  color: white;
  padding: 8px;
  cursor: pointer;
}

.wpjoinly-device-dropdown-content button:hover {
  background-color: #444;
}

/* --- LOBBY (STATUS & FORM) --- */
.wpjoinly-status-grant-permission {
  font-size: 13px;
  line-height: 1.4;
}

#wpjoinly-status {
  font-weight: 700;
  font-style: italic;
  margin-bottom: 10px;
}

.wpjoinly-lobby-button {
  margin-bottom: 20px;
}

#wpjoinly-uname {
  border: solid 2px var(--wpj_body);
}

/* --- Meeting Room (Base) --- */
.wpjoinly-meeting-container {
  background-color: #111;
  color: white;
  height: 70vh;
  display: flex;
  flex-direction: column;
}

.wpjoinly-meeting-header {
  background-color: #1d1d1d;
  padding: 10px 15px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #333;
}

.wpjoinly-meeting-controls button {
  color: white;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-left: 10px;
}

.wpjoinly-meeting-content {
  display: flex;
  flex-grow: 1;
  position: relative;
}

.wpjoinly-video-section {
  display: flex;
  width: 100%;
  height: 100%;
}

.wpjoinly-main-video {
  background-color: black;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wpjoinly-video-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1d1d1d;
  background-image: linear-gradient(to right, #1d1d1d, #2d2d2d);
}