* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  background: #1a1b1e;
  color: #e6e6ea;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.screen {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#login-screen {
  align-items: center;
  justify-content: center;
  gap: 24px;
}

#login-screen h1 {
  font-weight: 500;
  color: #b8b3ff;
}

.login-users {
  display: flex;
  gap: 16px;
}

.user-btn {
  padding: 16px 32px;
  font-size: 18px;
  border-radius: 12px;
  border: 1px solid #3a3b42;
  background: #26272c;
  color: #e6e6ea;
  cursor: pointer;
}

.user-btn:hover {
  background: #322f4d;
  border-color: #7c5cff;
}

.status-bar {
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  color: #9a97a8;
  background: #201f26;
}

.video-area {
  flex: 1;
  position: relative;
  background: #000;
}

#remote-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.local-preview {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 200px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 2px solid #3a3b42;
  object-fit: cover;
  transform: scaleX(-1);
  background: #111;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  background: #201f26;
}

.btn {
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
}

.btn-round {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 20px;
  background: #33343c;
}

.btn-round.active-off {
  background: #e0475a;
}

.btn-call {
  padding: 14px 26px;
  font-size: 15px;
  background: #7c5cff;
}

.btn-hangup {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 20px;
  background: #e0475a;
  transform: rotate(135deg);
}

.modal {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: #26272c;
  padding: 28px 36px;
  border-radius: 14px;
  text-align: center;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

.btn-accept {
  padding: 10px 22px;
  background: #43b581;
}

.btn-decline {
  padding: 10px 22px;
  background: #e0475a;
}
