@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;600;700&display=swap');

body {
  margin: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #000000 0%, #0e0018 50%, #1a0030 100%);
  font-family: 'Figtree', sans-serif;
  color: #e2d4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.chat {
  max-width: 720px;
  width: 90vw;
  margin: 0 auto;
  padding-bottom: 70px;
  display: none;
}

.members {
  font-size: 0.8rem;
  margin-bottom: 10px;
  color: rgba(192, 132, 252, 0.6);
}

.members-list .member {
  margin-right: 6px;
  display: inline-block;
}

.messages {
  height: 380px;
  overflow-y: auto;
  border: 1px solid rgba(120, 50, 190, 0.35);
  border-radius: 8px 8px 0 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.messages::-webkit-scrollbar {
  width: 4px;
}

.messages::-webkit-scrollbar-track {
  background: transparent;
}

.messages::-webkit-scrollbar-thumb {
  background: rgba(120, 50, 190, 0.4);
  border-radius: 4px;
}

.message {
  margin: 6px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.message-form {
  display: flex;
}

.message-form__input {
  flex: 1;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(140, 60, 200, 0.4);
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 8px;
  color: #fff;
  font-family: 'Figtree', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.message-form__input::placeholder {
  color: rgba(192, 132, 252, 0.4);
}

.message-form__input:focus {
  border-color: rgba(160, 80, 220, 0.8);
}

.message-form button {
  padding: 11px 20px;
  background: rgba(100, 30, 160, 0.6);
  border: 1px solid rgba(140, 60, 200, 0.4);
  border-top: none;
  border-radius: 0 0 8px 0;
  color: #e2d4f0;
  font-family: 'Figtree', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.message-form button:hover {
  background: rgba(120, 50, 190, 0.8);
}

#authPanel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 0, 18, 0.97);
  border: 1px solid rgba(120, 50, 190, 0.45);
  border-radius: 10px;
  padding: 28px;
  z-index: 100;
  min-width: 300px;
  width: min(360px, 90vw);
}

#authPanel h2 {
  color: #c084fc;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

#authPanel h4 {
  color: rgba(192, 132, 252, 0.7);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

#authPanel input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(120, 50, 190, 0.4);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: 'Figtree', sans-serif;
  font-size: 0.9rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

#authPanel input:focus {
  border-color: rgba(160, 80, 220, 0.8);
}

#authPanel input::placeholder {
  color: rgba(192, 132, 252, 0.4);
}

#authPanel button {
  width: 100%;
  padding: 10px;
  background: rgba(100, 30, 160, 0.6);
  border: 1px solid rgba(140, 60, 200, 0.4);
  border-radius: 6px;
  color: #e2d4f0;
  font-family: 'Figtree', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#authPanel button:hover {
  background: rgba(120, 50, 190, 0.8);
}

#authPanel hr {
  border: none;
  border-top: 1px solid rgba(120, 50, 190, 0.25);
  margin: 18px 0;
}

#authMsg {
  color: rgba(192, 132, 252, 0.7);
  margin-top: 10px;
  font-size: 0.82rem;
  text-align: center;
}

#logoutButton {
  position: fixed;
  bottom: 72px;
  left: 16px;
  padding: 8px 14px;
  background: rgba(100, 30, 160, 0.6);
  border: 1px solid rgba(140, 60, 200, 0.4);
  border-radius: 6px;
  color: #e2d4f0;
  font-family: 'Figtree', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 100;
  display: none;
  transition: background 0.2s;
}

#logoutButton:hover {
  background: rgba(120, 50, 190, 0.8);
}

.green-text { color: #6ee7b7; }
.red-text { color: #f87171; }
.yellow-text { color: #fde68a; }

.dev-name {
  font-weight: bold;
  color: #c084fc;
}