:root {
  --accent: #3b82f6;
  --danger: #ef4444;
}

body {
  font-family: 'Inter', sans-serif;
}

.control-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.control-button .icon {
  font-family: 'Material Symbols Rounded';
  font-size: 1.25rem;
}

.control-button:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.control-button.danger {
  color: #ef4444;
  background: #fef2f2;
  border-color: #fee2e2;
}

.control-button.danger:hover {
  background: #fee2e2;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s;
}

.user-card:hover {
  transform: translateY(-2px);
}

.user-card .avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-card .info {
  flex: 1;
}

.user-card .nickname {
  font-weight: 600;
  color: #1f2937;
  font-size: 1rem;
}

.user-card .status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

.talking-ring {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 9999px;
  background: #d1d5db;
  transition: all 0.2s;
}

.talking-ring.active {
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: talking 1.5s infinite;
}

@keyframes talking {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.devices-modal {
  border: none;
  border-radius: 1.5rem;
  background: #ffffff;
  padding: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.devices-modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.devices-form {
  padding: 2rem;
  min-width: 380px;
}

@media (max-width: 768px) {
  .control-button {
    flex: 1;
    justify-content: center;
  }
}
