/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #ffffff;
  color: #111111;
  font-size: 22px;
  line-height: 1.5;
}

/* Landing Page specific */
.landing-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
.landing-container {
  width: 100%;
  max-width: 500px;
  padding: 24px;
  text-align: center;
}
.app-title {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 8px;
}
.app-tagline {
  font-size: 26px;
  color: #555555;
  margin-bottom: 48px;
}
#nameInput {
  margin-bottom: 16px;
}
#roomIdInput {
  margin-bottom: 24px;
}

/* Inputs */
input[type="text"] {
  width: 100%;
  height: 70px;
  font-size: 26px;
  padding: 0 20px;
  border: 2px solid #dddddd;
  border-radius: 20px;
  outline: none;
}
input[type="text"]:focus {
  border-color: #6c63ff;
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.15);
}
input.error {
  border-color: #e74c3c;
  animation: shake 0.3s ease;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  font-size: 24px;
  font-weight: 700;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.15s ease, transform 0.1s ease;
  padding: 0 20px;
}
.btn:active { transform: scale(0.97); opacity: 0.85; }
.btn-primary { background: #6c63ff; color: white; }
.btn-dark { background: #222222; color: white; }
.btn-red { background: #e74c3c; color: white; }
.btn-gray { background: #dddddd; color: #111111; }

/* Call Container */
.call-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.room-id-header {
  font-size: 40px;
  font-weight: 900;
  text-align: center;
  color: #6c63ff;
  letter-spacing: 4px;
}

.name-label {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

/* Videos */
#remoteVideo {
  width: 100%;
  max-height: 50vh;
  object-fit: cover;
  border-radius: 20px;
  background: #111;
  display: block;
  margin-bottom: 24px;
}

.local-video {
  width: 100%;
  max-width: 100%;
  max-height: 50vh;
  object-fit: cover;
  border-radius: 20px;
  background: #222;
  display: block;
  margin-bottom: 24px;
}

.local-video-small {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  background: #222;
  display: block;
  margin: 0 auto 24px auto;
}

#waitingView {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Waiting overlay box */
.waiting-box {
  background: #f5f5f5;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  font-size: 26px;
  color: #888;
  font-weight: 500;
}

/* Controls row */
.controls {
  display: flex;
  gap: 12px;
  padding: 16px 0;
}
.controls .btn {
  flex: 1;
  font-size: 18px;
  min-height: 80px;
}

/* End call screen */
.ended-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 32px;
  text-align: center;
  padding: 24px;
}
.ended-screen h1 {
  font-size: 52px;
  font-weight: 700;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* Mobile */
@media (max-width: 600px) {
  .btn { min-height: 90px; font-size: 22px; }
  .local-video-small { max-width: 100%; }
  .controls { flex-direction: column; gap: 16px; }
  .room-id-header { font-size: 32px; }
}
