/* src/styles/games/gameSelector.css */
.games-menu.sidebar-container {
  position: fixed;
  left: 0;
  top: 60px; /* Match header height */
  height: calc(100vh - 70px);
  width: 275px;
  z-index: 100;
}

.games-menu .sidebar {
  position: absolute;
  background: white;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.games-menu .sidebar.open {
  transform: translateX(0);
}

.games-menu .sidebar-toggle {
  position: fixed;
  top: 100px; /* Position below header with some spacing */
  left: 0;
  width: 24px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-left: none;
  padding: 4px;
  cursor: pointer;
  z-index: 101; /* Above the sidebar */
  border-radius: 0 4px 4px 0;
  font-size: 16px;
  color: black;
  transition: left 0.3s ease;
}

/* When sidebar is open */
.games-menu .sidebar.open + .sidebar-toggle {
  left: 275px;
}

.games-menu .minimized-info {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 8px;
  font-size: 14px;
  color: #555;
}

.games-menu .sidebar-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 90%;
  overflow-y: auto;
}

/* Update main content to account for sidebar */
.main-content {
  margin-left: 32px; /* Width of toggle button + small gap */
  transition: margin-left 0.3s ease;
}

/* Adjust main content when sidebar is open */
.sidebar.open ~ .main-content {
  margin-left: 291px; /* sidebar width + toggle width + small gap */
}

/* Rest of the styles remain the same */
.game-select-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.game-select-button.selected {
  background: #3b82f6;
  color: white;
}

.game-select-button.can-unlock {
  background: #dbeafe;
}

.game-select-button.can-unlock:hover {
  background: #bfdbfe;
}

.game-icon {
  font-size: 20px;
}

.unlock-cost {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.8;
}