body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111318;
  color: white;
}

.container {
  width: 100%;
  height: 100vh;
}

/* LOGIN */
.auth-panel {
  width: 420px;
  margin: 80px auto;
  background: #1a1d24;
  padding: 30px;
  border-radius: 16px;
}

.auth-panel input,
.auth-panel select,
.auth-panel button {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  border: none;
}

.auth-panel button {
  background: #6c5ce7;
  color: white;
  cursor: pointer;
}

/* DASHBOARD */
.chat-panel {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOPBAR */
.topbar {
  height: 70px;
  background: #181b22;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  border-bottom: 1px solid #2a2d35;
}

.brand h1 {
  margin: 0;
  font-size: 28px;
}

.brand p {
  margin: 0;
  font-size: 13px;
  color: #aaa;
}

.top-btn {
  margin-left: 10px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: #6c5ce7;
  color: white;
  cursor: pointer;
}

/* GRID */
.dashboard {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 20px;
  padding: 20px;
}

/* PANELS */
.sidebar,
.main-chat {
  height: calc(100vh - 110px);
}

.panel-card,
.chat-card {
  background: #1a1d24;
  border-radius: 18px;
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
}

.panel-card {
  margin-bottom: 20px;
}

.panel-card h2,
.chat-header h2 {
  margin-top: 0;
}

/* USERS */
.online-user-card,
.online-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 10px;
  background: #22252d;
}

.online-user-card:hover,
.online-user:hover {
  background: #2c3039;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

/* CHAT */
.chat-card {
  display: flex;
  flex-direction: column;
}

.chat-header {
  border-bottom: 1px solid #2a2d35;
  padding-bottom: 15px;
}

.chat-header p {
  color: #999;
  margin: 0;
}

#messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

#typingIndicator {
  min-height: 20px;
  color: #999;
  font-size: 14px;
}

.input-area {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.input-area input {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #22252d;
  color: white;
}

.input-area button {
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: #6c5ce7;
  color: white;
  cursor: pointer;
}

/* REQUESTS */
button {
  cursor: pointer;
}
.user-menu-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

.user-menu-btn:hover {
  color: #6c5ce7;
}
.profile-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.profile-modal-content {
  width: 500px;
  max-width: 90%;
  background: #1a1d24;
  border-radius: 18px;
  padding: 20px;
  color: white;
}

.profile-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-form input,
.profile-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #22252d;
  color: white;
}

.profile-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}