:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}
#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 300px;
  margin: 2rem auto;
  padding: 1rem;
}

.join-form input {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.join-form button {
  padding: 0.5rem;
  font-size: 1rem;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.join-form button:hover {
  background-color: #45a049;
}

.chat-room {
  padding: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.participants {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
}

.participants h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.participants ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.participants li {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.participants li:last-child {
    border-bottom: none;
}

.participants .current-user {
    font-weight: bold;
    color: #2196f3;
}

.participants li.speaking {
    background-color: rgba(46, 213, 115, 0.1);
    border-radius: 4px;
}

.speaking-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #2ed573;
    border-radius: 50%;
    margin-left: auto;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.ping {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.ping.low {
    background-color: #4CAF50;
    color: white;
}

.ping.medium {
    background-color: #FFC107;
    color: black;
}

.ping.high {
    background-color: #F44336;
    color: white;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.control-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.control-button:hover {
    background: #e0e0e0;
}

.control-button.muted {
    background: #ff4444;
    color: white;
}

.control-button.muted:hover {
    background: #cc0000;
}

.participants li.muted {
    opacity: 0.7;
}

.mute-indicator {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}
