body {
  font-family: sans-serif;
  text-align: center;
  background: #111;
  color: white;
  margin: 0;
  padding: 20px;
}

h1 {
  margin-top: 0;
}

.status {
  padding: 6px 12px;
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 10px;
}
.status.online { background: #1e8b1e; }
.status.offline { background: #8b1e1e; }

.waiting {
  font-size: 18px;
  margin-bottom: 10px;
  color: #ccc;
}
.hidden { display: none; }

.user-count {
  margin-bottom: 10px;
  color: #aaa;
}

.video-container {
  position: relative;
  width: 90%;
  max-width: 600px;
  margin: auto;
  background: black;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

#remoteVideo {
  width: 100%;
  height: auto;
}

.local-preview {
  position: absolute;
  width: 150px;
  height: 110px;
  right: 12px;
  bottom: 12px;
  background: black;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  cursor: grab;
  touch-action: none;
}

.local-preview:active {
  cursor: grabbing;
}

#localVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#log {
  width: 90%;
  max-width: 600px;
  height: 180px;
  margin: 15px auto;
  background: #222;
  border: 1px solid #444;
  overflow-y: auto;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  text-align: left;
}

.bubble {
  padding: 6px 10px;
  margin: 4px 0;
  border-radius: 8px;
  max-width: 80%;
}

.me {
  background: #1e90ff;
  color: white;
  margin-left: auto;
}

.them {
  background: #444;
  color: white;
  margin-right: auto;
}

.send-box {
  margin-top: 10px;
}
