* {
  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;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 600px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 30px;
  text-align: center;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

header p {
  opacity: 0.9;
  font-size: 1.1em;
}

.section {
  padding: 40px 30px;
}

.hidden {
  display: none;
}

h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5em;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

input[type="text"] {
  flex: 1;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1em;
  transition: border-color 0.3s;
}

input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
}

button {
  padding: 15px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
  transform: translateY(0);
}

.hint {
  color: #666;
  font-size: 0.9em;
  text-align: center;
}

.room-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.room-info h2 {
  margin: 0;
  color: #667eea;
}

#leave-btn {
  background: #ff4757;
  padding: 10px 20px;
  font-size: 0.9em;
}

#leave-btn:hover {
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

.voice-controls {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.control-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 40px;
  font-size: 1em;
}

.control-btn .icon {
  font-size: 2em;
}

.control-btn.muted {
  background: #ff4757;
}

.users-list {
  margin-top: 30px;
}

.users-list h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.2em;
}

#users-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-item {
  background: #f7f7f7;
  padding: 10px 20px;
  border-radius: 20px;
  color: #333;
  font-weight: 500;
  display: inline-block;
}

.status-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.status-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-message.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2em;
  }

  .section {
    padding: 30px 20px;
  }

  .input-group {
    flex-direction: column;
  }

  .room-info {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}
