* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: #0f172a;
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.container {
  width: 100%;
  max-width: 440px;
  background: #1e293b;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

h1, h2 {
  text-align: center;
  margin-bottom: 18px;
}

input, select {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #fff;
  font-size: 16px;
}

.btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 10px;
}

.btn-primary { background: #3b82f6; color: #fff; }
.btn-audio { background: #10b981; color: #fff; font-size: 19px; padding: 20px; }
.btn-video { background: #6366f1; color: #fff; font-size: 19px; padding: 20px; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-secondary { background: #334155; color: #fff; }

.btn:active { transform: scale(0.98); }

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  flex: 1;
  padding: 10px;
  background: #0f172a;
  border: 1px solid #334155;
  color: #94a3b8;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.tab.active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.hidden { display: none !important; }

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: #94a3b8;
}

.videos {
  position: relative;
  width: 100%;
  height: 360px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

#remoteVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#localVideo {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 105px;
  height: 145px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #3b82f6;
  background: #1e293b;
}

.call-controls {
  display: flex;
  gap: 10px;
}

.incoming-box {
  background: #0f172a;
  border: 2px solid #10b981;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.error {
  color: #f87171;
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
}
