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

[hidden] {
  display: none !important;
}

html, body {
  height: 100%;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  overflow: hidden;
}

.ipad-view {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

.status {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px;
  background: #555;
}

.status-dot.waiting {
  background: #555;
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.connected {
  background: #34c759;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.self-view {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 160px;
  border-radius: 8px;
  background: #111;
}

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

.remote-video-container {
  flex: 1;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.remote-video-container .placeholder {
  color: #555;
  font-size: 1.2rem;
}

.controls {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0a0a0a;
}

.phone-status {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  padding-bottom: 4px;
}

.controls button {
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-connect {
  background: #34c759;
  color: #fff;
}

.btn-hangup {
  background: #ff3b30;
  color: #fff;
}
