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

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

header h1 {
  color: white;
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.screen {
  transition: opacity 0.3s ease;
}

.screen.hidden {
  display: none;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.card h2 {
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

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

button {
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  width: 100%;
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.user-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.user-select-btn {
  width: 100%;
  padding: 16px;
  background: #f0f0f0;
  color: #333;
  font-size: 18px;
  border: 3px solid transparent;
  transition: all 0.3s;
}

.user-select-btn:hover:not(:disabled) {
  background: #e8e8ff;
  border-color: #667eea;
  transform: translateY(-2px);
}

.user-select-btn.selected {
  background: #667eea;
  color: white;
  border-color: #5568d3;
}

.user-select-btn:disabled {
  background: #ddd;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.info-bar {
  background: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.label {
  color: #888;
  margin-right: 8px;
}

.users-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.users-container h3 {
  margin-bottom: 15px;
  color: #333;
}

#users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
  transition: background 0.3s;
}

.user-item.speaking {
  background: #e8f5e9;
  border: 2px solid #4caf50;
}

.user-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #667eea;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 12px;
}

.user-name {
  flex: 1;
  font-weight: 500;
}

.user-status {
  font-size: 12px;
  color: #888;
}

.controls {
  display: flex;
  gap: 10px;
}

.btn-control {
  flex: 1;
  background: white;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 15px;
}

.btn-control:hover {
  background: #f5f5f5;
}

.btn-control.muted {
  background: #ff5252;
  color: white;
}

.btn-control.muted .icon {
  text-decoration: line-through;
}

.btn-danger {
  background: #ff5252;
  color: white;
  padding: 15px 30px;
}

.btn-danger:hover {
  background: #e64545;
}

.icon {
  font-size: 24px;
}

.status {
  margin-top: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  color: #333;
  min-height: 20px;
}

@media (max-width: 600px) {
  .container {
    padding: 10px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .card {
    padding: 20px;
  }
}
