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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
}

.screen {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hidden {
  display: none !important;
}

#login-screen {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.login-box h1 {
  color: #333;
  margin-bottom: 30px;
  font-size: 32px;
}

.login-box input {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.login-box input:focus {
  outline: none;
  border-color: #667eea;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
  margin-left: 10px;
}

.btn-secondary:hover {
  background: #d0d0d0;
}

.btn-danger {
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
}

.btn-danger:hover {
  background: #ff3344;
  transform: scale(1.05);
}

.btn-control {
  background: #333;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
}

.btn-control:hover {
  background: #444;
  transform: scale(1.05);
}

.btn-control.disabled {
  background: #666;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h2 {
  color: #333;
  font-size: 28px;
}

#room-info {
  display: block;
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

.video-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.video-wrapper {
  position: relative;
  width: 400px;
  height: 300px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.controls {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.room-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.room-controls input {
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  flex: 1;
  max-width: 300px;
}

.room-controls input:focus {
  outline: none;
  border-color: #667eea;
}

.messages {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.message {
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 4px;
  font-size: 14px;
  animation: fadeIn 0.3s;
}

.message.system {
  background: #f0f0f0;
  color: #666;
}

.message.user {
  background: #e3f2fd;
  color: #1976d2;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .video-wrapper {
    width: 100%;
    height: 250px;
  }
  
  .room-controls {
    flex-direction: column;
  }
  
  .room-controls input {
    max-width: 100%;
  }
  
  .room-controls .btn {
    margin-left: 0;
    margin-top: 10px;
  }
}
