:root {
  --bg-color: #121212;
  --surface-color: #1e1e1e;
  --text-color: #e0e0e0;
  --primary: #bb86fc;
  --border: #333;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 20px;
}

#app-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* LOGIN */
#room-access-section {
  max-width: 400px;
  margin: 100px auto;
  text-align: center;
  background: var(--surface-color);
  padding: 30px;
  border-radius: 12px;
}

.login-form input {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background: #2c2c2c;
  border: 1px solid var(--border);
  color: white;
}

/* MAIN LAYOUT */
.controls-bar {
  display: flex;
  gap: 20px;
  background: var(--surface-color);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.control-group {
  display: flex;
  flex-direction: column;
}

.control-group label {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 4px;
}

select {
  padding: 5px;
  background: #333;
  color: white;
  border: 1px solid #555;
  border-radius: 4px;
  min-width: 150px;
}

/* CHORD GRID */
#chord-grid-wrapper {
  background: var(--surface-color);
  padding: 20px;
  border-radius: 8px;
  min-height: 400px;
  max-height: 60vh;
  overflow-y: auto;
}

.chord-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 8px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  transition: all 0.2s;
}

/* HIGHLIGHTING LOGIC */
.chord-row.highlighted {
  border-color: var(--hl-color, white);
  box-shadow: 0 0 15px var(--hl-color, rgba(255,255,255,0.2));
  transform: scale(1.01);
}

/* Mode: Highlight - rows are clickable */
body.mode-highlight .chord-row {
  cursor: pointer;
}
body.mode-highlight .chord-row:hover {
  background: rgba(255,255,255,0.1);
}

/* Mode: Edit - show delete buttons */
.chord-row__controls {
  display: none; /* Hidden by default */
}
body.mode-edit .chord-row__controls {
  display: flex;
}
body.mode-edit .edit-only {
  display: block;
}
.edit-only {
  display: none;
}

.chord-cell {
  display: flex;
  gap: 5px;
  background: #000;
  padding: 5px;
  border-radius: 4px;
}

.participant-tag {
  display: inline-block;
  padding: 4px 8px;
  margin: 2px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #000;
  font-weight: bold;
}

.bottom-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}