/* === ROOMS PAGE === */
.page.rooms {
  padding: 30px;
  gap: 30px;
}

/* === LEFT PANEL: ROOM LIST === */
.rooms-panel {
  flex: 1;
  border: 2px solid var(--border-primary);
  padding: 20px;
  max-width: 420px;
  background: var(--bg-secondary);
  border-radius: 4px;
}

.rooms-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.room-item {
  border: 1px solid var(--border-primary);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 4px;
  background: var(--bg-primary);
}

.room-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-tertiary);
}

.room-item p {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.room-item code {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === RIGHT PANEL: SETTINGS === */
.rooms-settings {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 480px;
}

.rooms-settings > div {
  border: 2px solid var(--border-primary);
  padding: 24px;
  position: relative;
  background: var(--bg-secondary);
  border-radius: 4px;
}

.rooms-settings > div::before {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--bg-primary);
  padding: 0 10px;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.rooms-settings > div:first-child::before {
  content: 'New Room';
}

.rooms-settings > div:nth-child(2)::before {
  content: 'Join Room';
}

.rooms-settings .password-change-section::before {
  content: 'Change Password';
}

.rooms-settings .logout-section::before {
  content: 'Account';
}

.rooms-settings form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rooms-settings input[type="text"],
.rooms-settings input[type="password"] {
  width: 100%;
}

.rooms-settings input[type="submit"] {
  align-self: flex-start;
}
