:root {
  --bg: #0d0e12;
  --card: rgba(30, 32, 40, 0.7);
  --primary: #00f2ff;
  --accent: #8e2de2;
  --text: #e0e0e0;
  --muted: #888;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at 20% 20%,
      rgba(142, 45, 226, 0.1) 0%,
      transparent 40%);
  color: var(--text);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 450px;
  padding: 40px;
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 35px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.logo {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 5px;
  color: var(--primary);
  margin-bottom: 30px;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.input-box {
  width: 100%;
  padding: 22px;
  background: #000;
  border: 1px solid #333;
  border-radius: 18px;
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 32px;
  text-align: center;
  letter-spacing: 8px;
  margin-bottom: 30px;
  outline: none;
  transition: 0.3s;
}

.input-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.btn {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, var(--accent), #4a00e0);
  border: none;
  border-radius: 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

#videoPreview {
  width: 100%;
  border-radius: 16px;
  margin-top: 20px;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

/* Active View Styles */
.active-view {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.floating-status-bar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 15px;
}

.status-active-dot {
  color: #00ff87;
  font-weight: bold;
}

.target-display {
  color: #fff;
}

.stream-status {
  color: #aaa;
  font-size: 0.8rem;
}

.btn-exit {
  background: #ff5555;
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.remote-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.mirror-warning {
  position: absolute;
  bottom: 20px;
  color: yellow;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 5px;
  display: none;
}