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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #1a1a2e;
  color: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

#app {
  text-align: center;
  padding: 2rem;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hidden {
  display: none !important;
}

#status-bar {
  font-size: 1.2rem;
}

#peer-status {
  padding: 0.3rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
}

#peer-status.online {
  background: #2d6a4f;
  color: #b7e4c7;
}

#peer-status.reachable {
  background: #7f5539;
  color: #f0dcc8;
}

#peer-status.offline {
  background: #6c757d;
  color: #dee2e6;
}

.btn {
  border: none;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:active {
  transform: scale(0.95);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-enter {
  background: #16213e;
  color: #eee;
  border: 2px solid #2d6a4f;
}

.btn-call {
  background: #2d6a4f;
  color: #fff;
}

.btn-accept {
  background: #2d6a4f;
  color: #fff;
}

.btn-reject {
  background: #e63946;
  color: #fff;
}

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

#incoming-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#incoming-controls .btn {
  width: 80px;
  height: 80px;
}

#incoming-controls div {
  display: flex;
  gap: 2rem;
}

#active-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

#call-timer {
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 400px) {
  .btn {
    width: 80px;
    height: 80px;
    font-size: 0.9rem;
  }
}
