/* ===== Modals ===== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.modal-content {
  position: relative;
  background-color: var(--bg-tertiary);
  padding: 24px;
  border-radius: 8px;
  width: 440px;
  max-width: 90vw;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.modal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background-color: var(--bg-primary);
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
  color: var(--text-secondary);
  font-size: 14px;
}

.radio-option:hover {
  border-color: var(--accent);
}

.radio-option input[type="radio"] {
  accent-color: var(--accent);
}

/* ===== Member List (Right sidebar) ===== */

#member-list {
  width: 240px;
  min-width: 240px;
  background-color: var(--bg-secondary);
  padding: 16px;
  overflow-y: auto;
}

#member-list h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.member-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding: 12px 0 6px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  border-radius: 4px;
}

.member-item:hover {
  background-color: var(--bg-hover);
}

.member-avatar-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.member-status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
}

.status-online { background-color: var(--online); }
.status-idle { background-color: var(--idle); }
.status-dnd { background-color: var(--dnd); }
.status-offline { background-color: var(--offline); }

.member-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.member-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-role {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: capitalize;
}
