* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #e0e0e0;
  height: 100vh;
  overflow: hidden;
}

#app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  background: #181818;
}

/* Tabs */
.tabs-header {
  display: flex;
  background: #1f1f1f;
  border-bottom: 1px solid #333;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #888;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  width: auto;
  margin: 0;
}

.tab-btn:hover { color: #ccc; }
.tab-btn.active {
  color: #00e5ff;
  border-bottom-color: #00e5ff;
}

.tab-view {
  flex: 1;
  display: none;
  height: calc(100% - 47px);
  position: relative;
}

.tab-view.active { display: flex; }

#mynetwork, #roadmap-network {
  width: 100%;
  height: 100%;
}

/* Dynamic discreet legend */
.discreet-legend {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  gap: 15px;
  background: rgba(24, 24, 24, 0.85);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #333;
  font-size: 0.75rem;
  pointer-events: none;
  z-index: 10;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.acquired { background: #00e5ff; box-shadow: 0 0 6px #00e5ff; }
.dot.unlocked { background: #b0bec5; }
.dot.locked   { background: #424242; }

/* View 2 Layout */
#how-view {
  display: none;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

#how-view.active { display: flex; }

#artist-selector {
  width: 260px;
  background: #161616;
  border-right: 1px solid #2a2a2a;
  padding: 15px;
  overflow-y: auto;
}

#roadmap-container {
  flex: 1;
  position: relative;
  height: 100%;
}

.artist-group { margin-bottom: 15px; }

.artist-name {
  font-weight: bold;
  color: #00e5ff;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.artist-songs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.song-chip {
  background: #222;
  border: 1px solid #333;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s;
  color: #ccc;
}

.song-chip:hover, .song-chip.active {
  border-color: #00e5ff;
  color: #fff;
  background: #2a2a2a;
}

/* Sidebar */
#sidebar {
  width: 340px;
  background: #202020;
  border-left: 1px solid #2d2d2d;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
}

h1 { margin: 0 0 5px 0; font-size: 1.3rem; color: #fff; }
p.subtitle { margin: 0; font-size: 0.8rem; color: #777; }

.card {
  background: #282828;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #333;
}

.card h3 { margin: 0 0 10px 0; color: #fff; font-size: 1rem; }

.tag {
  display: inline-block;
  background: #181818;
  color: #b0bec5;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.75rem;
  margin: 0 4px 4px 0;
}

.badge-status {
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-acquired { background: #00e5ff; color: #000; }
.status-unlocked { background: #b0bec5; color: #000; }
.status-locked   { background: #424242; color: #aaa; }

button.action-btn {
  background: #00e5ff;
  color: #000;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  margin-top: 10px;
}

button.btn-remove { background: #cf6679; color: #fff; }

.bridge-box {
  background: #1a2733;
  border-left: 3px solid #00e5ff;
  padding: 10px;
  margin: 10px 0;
  font-size: 0.85rem;
}

.roadmap-list {
  margin: 5px 0 0 0;
  padding-left: 20px;
  font-size: 0.85rem;
  color: #b0bec5;
}