.Toast_toastContainer__GruH5 {
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 16px;

  opacity: 0;
  top: -128px;
  transition: opacity 0.5s ease, top 0.5s ease, bottom 0.5s ease;

  z-index: 1000;
}

.Toast_toastTop__Dk1u2 {
  top: -128px;
}

.Toast_toastBottom__nVYXz {
  bottom: 0;
  transform: translateY(200%);
}

.Toast_toastContent__5l5Xg {
  display: flex;
  align-items: center;

  cursor: pointer;
  background: #fff;
  color: #363636;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  max-width: 90%;

  -webkit-user-select: none;

     -moz-user-select: none;

          user-select: none;
}
/* LevelCard.module.css */

.LevelCard_levelCard__1qq5L {
  display: flex;
  flex-direction: column;
  /* Align content vertically */
  justify-content: center;
  /* Center content vertically */
  min-height: 64px;
  min-width: 64px;

  /* Padding will be reduced for smaller screens. */
  padding: 16px;

  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
  color: white;
  text-decoration: none;
  position: relative;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  text-align: center;
  /* Center standard IDs */
}

.LevelCard_levelCardContent__1AZhK {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* For music cards, align content to the start (left) */
.LevelCard_levelCard__1qq5L.LevelCard_isMusic__Qz5MM {
  text-align: left;
}

.LevelCard_levelCard__1qq5L.LevelCard_isMusic__Qz5MM .LevelCard_levelCardContent__1AZhK {
  justify-content: flex-start;
}

/* --- CONTENT STYLES --- */

.LevelCard_cardStandardId__nOCgU {
  font-size: 28px;
  font-weight: bold;
}

.LevelCard_cardDetails__bu7Yg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.LevelCard_cardTitle__FxtNu {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  line-height: 22px;

  overflow: hidden;
  text-overflow: ellipsis;
}

.LevelCard_customLevelCardTitle__c2V0y {
  /* Dimensions */
  width: 100%;
  max-height: 44px;
  /* Matches 2 lines at 22px line-height */

  /* Text Alignment */
  text-align: center;

  /* ELLIPSIS MAGIC (Line Clamp) */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  /* Limits to 2 lines */
  -webkit-box-orient: vertical;
}

@media (max-width: 720px) {
  .LevelCard_customLevelCardTitle__c2V0y {
    -webkit-line-clamp: 2;
  }
}

.LevelCard_cardSubtitle__Mjc5E {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.LevelCard_cardMusicDuration__XH45P {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* --- STATES --- */

.LevelCard_levelCard__1qq5L.LevelCard_unlocked__xtiKQ {
  cursor: pointer;
}

.LevelCard_levelCard__1qq5L.LevelCard_unlocked__xtiKQ:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.LevelCard_levelCard__1qq5L.LevelCard_locked__MCodm {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}


.LevelCard_levelCard__1qq5L.LevelCard_locked__MCodm .LevelCard_cardTitle__FxtNu,
.LevelCard_levelCard__1qq5L.LevelCard_locked__MCodm .LevelCard_cardSubtitle__Mjc5E,
.LevelCard_levelCard__1qq5L.LevelCard_locked__MCodm .LevelCard_cardMusicDuration__XH45P {
  color: rgba(255, 255, 255, 0.7);
}

.LevelCard_lockIcon__7wABO {
  font-size: 24px;
}

.LevelCard_levelCard__1qq5L.LevelCard_unavailable__spJ8u {
  background-color: rgba(0, 0, 0, 0.4);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}

/* --- NEW STAR STYLES --- */

.LevelCard_starRatingContainer__tYzTk {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin-top: 12px;
  /* Gold color for filled/half-filled stars */
  color: #ffc700;
}

/* --- DELETE BUTTON --- */
.LevelCard_deleteButton__jkjvg {
  margin-top: 12px;
  background-color: rgba(255, 50, 50, 0.2);
  border: 1px solid rgba(255, 50, 50, 0.4);
  color: #ffcccc;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.LevelCard_deleteButton__jkjvg:hover {
  background-color: rgba(255, 50, 50, 0.4);
  color: white;
}

/* --- LOADING STATE --- */

.LevelCard_loading__xY4CM {
  cursor: wait !important;
  opacity: 0.8;
}

.LevelCard_loadingSpinner__q8typ {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-left-color: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;

  position: absolute;
  top: 6px;
  right: 6px;
}
.OverlayText_overlayText__Ero7M {
  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
  margin: 8px;
}
.OverlayTip_overlayTipContainer__xVUVR {
  margin-top: 12px;
  text-align: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.OverlayTip_overlayTipContainer__xVUVR[data-next-tip-disabled] {
  cursor: default;
}

/* Fixes the "Sticky Hover" problem on mobile. */
/* Apply these styles only if the user's primary input mechanism can hover over elements,
   AND the 'data-next-tip-disabled' attribute is NOT present on the container. */
@media (hover: hover) {
  .OverlayTip_overlayTipContainer__xVUVR:not([data-next-tip-disabled]):hover {
    text-decoration: underline;
    font-weight: bolder;
  }
}

.OverlayTip_tipItem__0eJSS {
  margin: 0;
  display: inline;
}

.OverlayTip_tipTitle__Z8_dX {
  display: inline;
  margin: 0;
  font-weight: bolder;
}
/* Button container styles */
.LevelEndButtons_buttonContainer__xryVe {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Circle button wrapper styles */
.LevelEndButtons_circleButtonWrapper__6J4hq {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 8px;
  cursor: pointer;
}

/* Circle button styles */
.LevelEndButtons_circleButton__HUPQA {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-color: white;
  color: black;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.LevelEndButtons_circleButton__HUPQA:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.LevelEndButtons_circleButton__HUPQA:active {
  transform: scale(0.95);
}

/* Button label styles */
.LevelEndButtons_circleButtonLabel__4gjeG {
  margin-top: 8px;
  font-size: 14px;
  color: white;
  text-align: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Download button specific styles */
.LevelEndButtons_downloadButton__ebF70 {
  background-color: white;
}
.VideoDownloader_videoContainer__kINAM {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  height: 300px;

  margin-top: 16px;
}

.VideoDownloader_videoRecorded___22qz {
  /* XXX: object-fit contain only works as expected when both height and width are set. */
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.VideoDownloader_videoDownloaderCompleteState__qr_OG {
  font-weight: 600;
  margin-bottom: 0;
  margin-top: 16px;
}

/* This targets the fullscreen button inside any video element that has the .electronHideFullscreen class */
.VideoDownloader_electronHideFullscreen__Rq8JG::-webkit-media-controls-fullscreen-button {
  display: none;
}
.Overlay_overlay__rKX6G {
  /* XXX: Height, width, top, left are set on the Overlay component */
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: flex-start;

  z-index: 10000;

  overflow-y: auto;
}

.Overlay_overlayContent__KmRlH {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  width: 100%;
  color: white;
  padding: 16px 16px 48px 16px;

  box-sizing: border-box;
}

.Overlay_overlayTitle__Eq3Jp {
  font-size: 32px;
  margin-bottom: 24px;
  text-align: center;
}

.Overlay_overlayChildrenContainer__9jy_5 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  margin-bottom: 16px;

  max-width: 100%;
}

.Overlay_overlayCloseButton__16_Pi {
  position: absolute;
  top: 15px;
  right: 25px;
  background: none;
  border: none;
  font-size: 40px;
  color: white;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  z-index: 10001;
  /* Ensure it's above content */

  -webkit-user-select: none;

     -moz-user-select: none;

          user-select: none;
}

.Overlay_overlayCloseButton__16_Pi:hover {
  color: #ccc;
}
/* DataManager.module.css file: */

.DataManager_sectionContent__eSJM2 {
  padding: 24px;
}

.DataManager_summaryRow__XQMYd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  background-color: #222;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #333;
}

.DataManager_summaryRow__XQMYd>span:first-child {
  flex: 1 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 425px) {
  .DataManager_summaryRow__XQMYd {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .DataManager_summaryRow__XQMYd>span:first-child {
    flex: none;
    max-width: 100%;
  }
}

.DataManager_summaryRowButton__uSxpn {
  margin: 0;
  width: auto;
  padding: 8px 16px;
  min-width: 140px;

  margin-left: 8px;
}

.DataManager_dataManagerOverlaySection__zlMA_ {
  padding: 1rem;
  padding-bottom: 0;
  min-width: min(500px, 90vw);
  max-width: 100%;
}

.DataManager_description__k4Sl4 {
  margin: 0 0 24px 0;
  line-height: 1.6;
  /* color: #c0c0c0; */
  color: #ffffff;

  text-align: center;
}

.DataManager_titleContainer__O_5qM {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px 0;
}

.DataManager_collapsibleHeader__W_Pbv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  background-color: rgba(255, 255, 255, 0.03);
  transition: background-color 0.2s;
  overflow: hidden;
}

.DataManager_collapsibleHeader__W_Pbv:hover {
  background-color: rgba(255, 255, 255, 0.07);
}

.DataManager_headerText__RXJ3g {
  margin: 0;
  font-size: 1.17em;
  /* Match h3 */
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 12px;
  flex: 1 1;
}

.DataManager_levelTitle__4ABqU {
  font-style: italic;
  text-decoration: underline;
}

.DataManager_collapsibleContent__FMrts {
  padding: 0 24px 24px 24px;
  animation: DataManager_slideDown__k1hg1 0.2s ease-out;
}

@keyframes DataManager_slideDown__k1hg1 {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.DataManager_levelNameContainer__CEV8U {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.DataManager_summaryRowInput__sQ_mf {
  width: 200px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #444;
  background-color: #333;
  color: white;
  outline: none;
  font-size: 14px;

  height: 20px;
}
/* 1. Reset default button styles to make it look like a clean icon */
.MyInfoButton_button__QFYkP {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  /* Inherits text color from parent */
}

/* Optional: Add a slight opacity hover effect */
/* .button:hover {
  opacity: 0.7;
} */

/* 2. Animation Logic */
.MyInfoButton_icon__kqmZj {
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Nice smooth snap */
}

.MyInfoButton_flipped__1akAG {
  transform: rotate(180deg);
}

@media (hover: hover) {
  .MyInfoButton_button__QFYkP:hover {
    opacity: 0.7;
  }
}
.BeatManager_controlDeck__7sudH {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  /* 3 equal columns */
  grid-gap: 1rem;
  gap: 1rem;

  padding-top: 1rem;
  /* background-color: #1a1a1a; */
  /* border-top: 1px solid #333;  */

  color: #e0e0e0;
}

/* On smaller screens, stack them */
@media (max-width: 1000px) {
  .BeatManager_controlDeck__7sudH {
    grid-template-columns: 1fr;
  }
}

.BeatManager_card__6BiW7 {
  background-color: #252525;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;

  min-width: 0;
}

.BeatManager_cardHeader__j33k6 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  /* color: #888; */
  color: white;
  font-weight: 700;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.BeatManager_row__UmY_X {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
}

.BeatManager_row__UmY_X.BeatManager_centered__TNPBb {
  justify-content: center;
}

/* Input Group: [Input][Button] joined together */
.BeatManager_inputGroup__Oxdrv {
  display: flex;
  width: 100%;
}

.BeatManager_inputGroup__Oxdrv input {
  background: #111;
  border: 1px solid #444;
  border-right: none;
  color: white;
  padding: 6px 10px;
  border-radius: 4px 0 0 4px;
  font-family: monospace;

  flex-grow: 1;
  flex-shrink: 1;
  /* Allows shrinking below default size: */
  min-width: 0;
}

.BeatManager_inputGroup__Oxdrv button {
  border-radius: 0 4px 4px 0;
  white-space: nowrap;
}

/* Info display for selected beat */
.BeatManager_beatInfo__2kZlz {
  font-family: monospace;
  font-size: 1.1rem;
  color: #fff;
  text-align: center;
  background: #111;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #333;
}

/* Utility classes for button colors */
.BeatManager_btnIcon__jqzy1 {
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.BeatManager_btnDanger__rQ6s5 {
  background-color: #3f1515 !important;
  /* Muted red */
  color: #ffcccc !important;
  border: 1px solid #5c2222 !important;
}

.BeatManager_btnDanger__rQ6s5:hover:not(:disabled) {
  background-color: #691e1e !important;
}

.BeatManager_btnAction__dYl7w {
  background-color: #2a2a2a !important;
  border: 1px solid #444 !important;
}

.BeatManager_btnAction__dYl7w:hover:not(:disabled) {
  background-color: #444 !important;
}

.BeatManager_selectInput__1RSPl {
  background: #111;
  color: white;
  border: 1px solid #444;
  padding: 6px;
  border-radius: 4px;

  flex-grow: 1;
  flex-shrink: 1;
  /* Allows shrinking below default size: */
  min-width: 0;
}
.BeatOverlays_container__W__RO {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  text-align: center;
  color: #fff;

  max-width: 100%;
}

.BeatOverlays_tapButton__rCcoS {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #444;
  background-color: #222;
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  outline: none;
}

.BeatOverlays_tapButtonStarted__ecSgh {
  border-color: #0070f3;
  background-color: #111;
}

.BeatOverlays_controlsRow__OWKTd {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.BeatOverlays_infoText__iHJqd {
  font-size: 14px;
  /* color: #aaa; */
  max-width: 400px;
}

.BeatOverlays_bpmDisplay__2FBsv {
  font-size: 32px;
  font-family: monospace;
  font-weight: bold;
  color: #0070f3;
}

.BeatOverlays_bpmLabel__4EeL4 {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #888;
}

.BeatOverlays_bpmInput__bXGA_ {
  font-size: 24px;
  padding: 8px;
  width: 100px;
  text-align: center;
  background: #333;
  border: 1px solid #555;
  color: white;
  border-radius: 4px;
}

.BeatOverlays_bpmInput__bXGA_:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.BeatOverlays_beatsRecorded__kk_hc {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.BeatOverlays_warning__N9eSS {
  color: #ffaa00;
  font-size: 12px;
  max-width: 300px;
}

.BeatOverlays_note__9R7xR {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
}
/* MultiTrackTimeline.module.css */

.MultiTrackTimeline_container__Y02K8 {
  display: flex;
  flex-direction: column;
  background-color: #1a1a1a;
  color: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;

  width: 100vw;
  max-width: 100%;
}

/* --- Toolbar --- */
.MultiTrackTimeline_toolbar__AQ4OC {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background-color: #252525;
  border-bottom: 1px solid #333;
}

.MultiTrackTimeline_controlsGroup__MZDvA {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.MultiTrackTimeline_iconBtn__1kjv5 {
  background: transparent;
  border: 1px solid #444;
  color: #ccc;
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.MultiTrackTimeline_iconBtn__1kjv5:hover:not(:disabled) {
  background-color: #333;
  border-color: #666;
  color: white;
}

.MultiTrackTimeline_iconBtn__1kjv5:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.MultiTrackTimeline_timeDisplay__EEEyc {
  font-family: monospace;
  font-size: 14px;
  color: white;
  font-weight: bold;
  min-width: 60px;
  text-align: center;
}

/* --- Scrollable Timeline Area --- */
.MultiTrackTimeline_scrollArea__wZTQz {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #444 #1a1a1a;
}

.MultiTrackTimeline_scrollArea__wZTQz::-webkit-scrollbar {
  height: 8px;
}

.MultiTrackTimeline_scrollArea__wZTQz::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.MultiTrackTimeline_scrollArea__wZTQz::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 4px;
}

.MultiTrackTimeline_timelineContent__y_oLL {
  position: relative;
  min-height: 150px;
}

/* --- Ruler (Top Scrubber) --- */
.MultiTrackTimeline_ruler__PBAQX {
  height: 24px;
  background-color: #2a2a2a;
  border-bottom: 1px solid #444;
  position: relative;
  cursor: crosshair;
  display: flex;
  align-items: center;
}

.MultiTrackTimeline_rulerHeaderSpace__VzID9 {
  height: 100%;
  border-right: 1px solid #444;
  background-color: #252525;
  /* Removed sticky positioning */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  font-size: 10px;
  color: #888;
  z-index: 25;
}

.MultiTrackTimeline_rulerTick__Npjuc {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid #555;
  font-size: 10px;
  color: #888;
  padding-left: 4px;
  pointer-events: none;
  white-space: nowrap;
}

/* --- Tracks --- */
.MultiTrackTimeline_trackList__cIMb4 {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100px;
}

.MultiTrackTimeline_trackRow__hVnSK {
  position: relative;
  height: 40px;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
}

.MultiTrackTimeline_trackHeader__YMhZO {
  /* Removed sticky positioning */
  flex-shrink: 0;
  height: 100%;
  background-color: #252525;
  border-right: 1px solid #444;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;

  font-size: 12px;
  font-weight: bold;
  color: #aaa;
}

.MultiTrackTimeline_trackLane__Gy65Z {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  cursor: pointer;
}

.MultiTrackTimeline_trackLane__Gy65Z:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* --- Markers --- */
.MultiTrackTimeline_beatMarker__53ndP {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 20px;
  background-color: #888;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.1s, background-color 0.1s;
  z-index: 5;
}

.MultiTrackTimeline_beatMarker__53ndP:hover {
  transform: translate(-50%, -50%) scale(1.2);
  background-color: #fff;
  z-index: 6;
}

.MultiTrackTimeline_beatMarker__53ndP.MultiTrackTimeline_selected__12amV {
  background-color: #0070f3;
  box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.4);
  z-index: 6;
}

.MultiTrackTimeline_beatMarker__53ndP.MultiTrackTimeline_cutoff__9kNO3 {
  background-color: #ff4444;
  opacity: 0.6;
}

/* --- Playhead (The vertical line) --- */
.MultiTrackTimeline_playhead__xUczn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ff0000;
  box-shadow: 0 0 4px rgba(255, 0, 0, 0.5);
  z-index: 26;
  pointer-events: none;
  transform: translateX(-50%);
}

.MultiTrackTimeline_playhead__xUczn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background-color: #ff0000;
  border-radius: 0 0 4px 4px;
}

/* --- Duration Line --- */
.MultiTrackTimeline_durationLine___Zpj0 {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #666;
  pointer-events: none;
  z-index: 1;
}

/* Disabled Zone */
.MultiTrackTimeline_disabledZone__KD8Xa {
  position: absolute;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 0;
}

/* .durationLabel {
  position: absolute;
  top: 28px;
  right: -2px;
  font-size: 10px;
  color: #666;
  transform: translateX(100%);
  white-space: nowrap;
} */


.MultiTrackTimeline_selectedRow__p_Ncb {
  background-color: rgba(255, 255, 255, 0.05);
}

.MultiTrackTimeline_trackName___U8tF {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 8px;
  cursor: pointer;
}

.MultiTrackTimeline_trackControls__7WdXa {
  display: flex;
  gap: 4px;
  opacity: 0.4;
  margin-right: 4px;
  transition: opacity 0.2s;
}

.MultiTrackTimeline_trackHeader__YMhZO:hover .MultiTrackTimeline_trackControls__7WdXa,
.MultiTrackTimeline_selectedRow__p_Ncb .MultiTrackTimeline_trackControls__7WdXa {
  opacity: 1;
}

.MultiTrackTimeline_miniIconBtn__uY2bW {
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 2px;
  display: flex;
}

.MultiTrackTimeline_miniIconBtn__uY2bW:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
.OverlayButton_overlayButton__d_c_I {
  padding: 12px 24px;
  background-color: transparent;
  color: white;
  border: 1px solid white;
  border-radius: 4px;
  cursor: pointer;

  font-size: 20px;
  font-weight: 600;

  transition: background-color 0.3s, color 0.3s;
}

.OverlayButton_overlayButton__d_c_I:hover {
  background-color: white;
  color: black;
}

.OverlayButton_overlayButton__d_c_I:disabled {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;

  transition: none !important;
}

.OverlayButton_overlayButton__d_c_I:disabled:hover {
  background-color: transparent !important;
  color: rgba(255, 255, 255, 0.5) !important;

  transition: none !important;
}
.OverlayButtonContainer_overlayButtonContainer__tE5Os {
  display: flex;
  justify-content: center;
  /* align-items: center; */
  flex-direction: column;

  min-width: 250px;
  gap: 16px;

  margin: 24px 0;
}
/* Original class (used for standard view) */
.OverlayTextInput_input__4EsaS {
  width: 100%;
  padding: 10px;
  background-color: #222;
  color: white;
  border: 1px solid #555;
  border-radius: 4px;
  box-sizing: border-box;
  outline: none;
}

.OverlayTextInput_input__4EsaS:focus {
  border-color: #777;
}

/* NEW: Flex container that acts as the visual border */
.OverlayTextInput_inputGroup__xQ595 {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: #222;
  border: 1px solid #555;
  border-radius: 4px;
  box-sizing: border-box;
  cursor: text;
}

.OverlayTextInput_inputGroup__xQ595:focus-within {
  border-color: #777;
}

/* NEW: Input inside the group (borderless) */
.OverlayTextInput_bareInput__eztQp {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  padding: 10px;
  /* Ensure padding matches .input but handles right side differently */
  padding-right: 2px;
}

/* NEW: The static extension text */
.OverlayTextInput_extensionSuffix__5lBRH {
  color: #888;
  padding-right: 10px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  pointer-events: none;
}

.OverlayTextInput_errorText__MHdUB {
  color: #e74c3c;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}
.ItemSelector_itemSelectorContainer__J7Wuv {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 16px;
}

.ItemSelector_controls__jUb6I {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
}


.ItemSelector_singleItemDisplay__wgmCx {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ItemSelector_iconButton__vkfC1 {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.ItemSelector_iconButton__vkfC1:hover:not(:disabled) {
  background-color: #444;
}

.ItemSelector_iconButton__vkfC1:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ItemSelector_renameInput__ULiNS {
  width: 100%;
  padding: 10px;
  margin: 1rem 0;
  background-color: #222;
  color: white;
  border: 1px solid #555;
  border-radius: 4px;
  box-sizing: border-box;
  /* Ensures padding doesn't affect width */
}
/* src/components/GroupEditor.css */

/* Removed .groupEditorContainer styles to use global roundContainerOne */

.GroupEditor_infoText__b9Nxr {
  color: #888;
  text-align: center;
  padding: 10px 0;
}

.GroupEditor_groupEditorControls__0EeF7 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 8px;
}

.GroupEditor_groupEditorControls__0EeF7 select {
  flex-grow: 1;
  margin: 0;
  text-align: center;
}

.GroupEditor_groupDetails__izhs8 {
  /* background-color: #2a2a2a; */
  margin-top: 16px;
}

.GroupEditor_groupDetails__izhs8 h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #eee;
}

.GroupEditor_groupDetails__izhs8 p {
  margin: 6px 0;
  font-size: 16px;
  line-height: 1.5;
}

.GroupEditor_groupDetails__izhs8 strong {
  color: #aaa;
  display: inline-block;
  width: 90px;
  margin-right: 8px;
  font-weight: 600;

  text-align: right;
}

.GroupEditor_editForm__OBPXm {
  max-width: 450px;

  margin: 16px auto 0 auto;

  /* background-color: #2a2a2a; */

  padding: 16px;
  border-radius: 4px;
}

.GroupEditor_formRow__79ykK {
  display: flex;
  align-items: center;
}

.GroupEditor_formRow__79ykK label {
  color: #aaa;
  font-weight: 600;
  width: 120px;
  flex-shrink: 0;
}

/* Pill Styles (Moved from LevelCreator) */
.GroupEditor_pillContainer__KZAU0 {
  display: flex;
  justify-content: center;
  background-color: #222;
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 16px auto;
  width: -moz-fit-content;
  width: fit-content;
  border: 1px solid #333;
}

.GroupEditor_pillButton__IDvb5 {
  padding: 8px 24px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #888;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.GroupEditor_pillButton__IDvb5:hover {
  color: #ccc;
}

.GroupEditor_pillButtonActive__E6O0j {
  background-color: #4a90e2;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.GroupEditor_pillButtonActive__E6O0j:hover {
  color: white;
}

.GroupEditor_tabContent__9zJqF {
  animation: GroupEditor_fadeIn__fDYmW 0.2s ease-out;
}

@keyframes GroupEditor_fadeIn__fDYmW {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* THE NEW GRID LAYOUT */
.GroupEditor_regenRowGrid__m1bu6 {
  display: grid;
  /* 
     Col 1: Label (fixed width or min-content)
     Col 2: Input (takes remaining space)
     Col 3: Regen Toggle (auto width)
  */
  grid-template-columns: 70px 1fr auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  min-height: 38px;
  /* Ensures consistent height */
}

/* The Label */
.GroupEditor_regenRowLabel__sDf_u {
  color: #aaa;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;

  text-align: right;
}

/* The Input Container */
.GroupEditor_regenRowInput__RKeua {
  display: flex;
  align-items: center;
  width: 100%;
}


/* Force standard HTML selects and your StyledInputs to fill the grid cell */
.GroupEditor_regenRowInput__RKeua select,
.GroupEditor_regenRowInput__RKeua input {
  width: 100% !important;
  /* Override inline styles if necessary */
  box-sizing: border-box;
  height: 36px;
  /* consistent height */
}

/* The Regen Checkbox Area */
.GroupEditor_regenRowToggle__QX8rq {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Utility for the "Select All" row at the bottom */
.GroupEditor_regenAllRow__IwcgM {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  font-size: 14px;
}

.GroupEditor_messageFadeIn__SYGew {
  animation: GroupEditor_fadeIn__fDYmW 0.3s ease-out;
}

.GroupEditor_infoList__pilNv {
  text-align: left;
  margin: 0;
  padding-left: 20px;
  line-height: 1.5;
  font-size: 14px;
}

.GroupEditor_infoList__pilNv li {
  margin-bottom: 4px;
}

.GroupEditor_infoNote__MYmy0 {
  text-align: left;
  margin: 8px 0 2px 0;
  font-size: 12px;
  font-style: italic;
  color: #aaa;
}

@media (max-width: 425px) {
  .GroupEditor_regenRowGrid__m1bu6 {
    grid-template-columns: 70px 1fr auto;
  }
}

.GroupEditor_groupEditorIconButton__3fcL2 {
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 36px;
  height: 36px;
}
.StyledInput_styledInput__BgzYR[type="number"] {
  width: 80px;
  flex-grow: 0;
  text-align: center;
}
/* MainCanvas.module.css files: */

.MainCanvas_playOverlay___GHH6 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease-in-out;
}

.MainCanvas_playOverlay___GHH6:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.MainCanvas_playIcon__9BioR {
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.1s ease-in-out;
}

.MainCanvas_playOverlay___GHH6:hover .MainCanvas_playIcon__9BioR {
  transform: scale(1.1);
  color: #fff;
}
.TimelineAndControls_sharedControlsContainer__RL94L {
  padding: 16px 24px;

  transition: opacity 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.TimelineAndControls_sharedControlsContainer__RL94L.TimelineAndControls_disabled__w6kqV {
  opacity: 0.6;
}

.TimelineAndControls_timelineAndControlsContainer__1F7HS {
  /* Removed background, padding, margin as this is now inside sharedControlsContainer */
  width: 100%;
}

.TimelineAndControls_timelineAndControlsContainer__1F7HS h3 {
  margin: 0 0 1rem 0;
  color: #ddd;
  font-size: 18px;
  text-align: center;
}

.TimelineAndControls_masterControls__ddBa4 {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.TimelineAndControls_playButton__g6Jmq {
  padding: 0;

  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;

  /* Visual centering for play icon */
  flex-shrink: 0;
}

.TimelineAndControls_scrubberIcon__YKcYU {
  width: 100%;
  height: 100%;
}

.TimelineAndControls_playButton__g6Jmq:hover {
  background-color: #3a80d2;
}

.TimelineAndControls_playButton__g6Jmq:disabled,
.TimelineAndControls_stopButton__GUEiC:disabled {
  background-color: #555;
  cursor: not-allowed;
  opacity: 0.5;
}

.TimelineAndControls_currentTimeDisplay__KF1bF,
.TimelineAndControls_totalTimeDisplay__ylHYQ {
  font-family: 'Courier New', Courier, monospace;
  color: #ccc;
  font-size: 16px;
  background-color: #1e1e1e;
  padding: 5px 8px;
  border-radius: 4px;
}

@media (max-width: 425px) {
  .TimelineAndControls_masterControls__ddBa4 {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "play bar"
      "play times";
    grid-gap: 4px 12px;
    gap: 4px 12px;
    align-items: center;
  }

  .TimelineAndControls_playButton__g6Jmq {
    grid-area: play;
  }

  .TimelineAndControls_scrubBarWrapper__lqmuy {
    grid-area: bar;
    min-width: 0;
  }

  .TimelineAndControls_currentTimeDisplay__KF1bF {
    grid-area: times;
    justify-self: start;
    background: transparent;
    padding: 0;
    font-size: 12px;
  }

  .TimelineAndControls_totalTimeDisplay__ylHYQ {
    grid-area: times;
    justify-self: end;
    background: transparent;
    padding: 0;
    font-size: 12px;
  }
}

.TimelineAndControls_scrubberIcon__YKcYU {
  width: 100%;
  height: 100%;
}

.TimelineAndControls_progressBarContainer__IrrGi {
  flex-grow: 1;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.TimelineAndControls_progressBarFill__ccHEX {
  height: 100%;
  background: #4a90e2;
  transition: width 0.1s linear;
}

/* Remove old range input styles */
.TimelineAndControls_scrubBar__UDgHW,
.TimelineAndControls_scrubBarWrapper__lqmuy,
.TimelineAndControls_readOnlyBar__NPQlp {
  display: none;
}

.TimelineAndControls_audioEndMarker__2Ay23 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 1.5em;
  background-color: rgba(0, 255, 255, 0.7);
  pointer-events: none;
  z-index: 1;
}

.TimelineAndControls_readOnlyBar__NPQlp {
  cursor: default !important;
  /* Optional: Change color to indicate it's just a progress bar */
  opacity: 0.8;
}

.TimelineAndControls_readOnlyBar__NPQlp::-webkit-slider-thumb {
  cursor: default;
  /* Optional: Hide the thumb if you just want a progress bar */
  /* display: none; */
}
/* UploadLevel.module.css file: */

.UploadLevel_container__EdPd3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 512px;
}

.UploadLevel_inputContainer__ibOYo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  margin: 16px;
}

.UploadLevel_label__gtWWC {
  color: white;
  text-align: center;
  font-weight: bolder;
  margin-bottom: 4px;
}

.UploadLevel_radioGroup__cSaO8 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.UploadLevel_radioLabel__sGvUf {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  cursor: pointer;
}

.UploadLevel_uploadButton__bH3cW {
  width: 250px;
  margin: auto;
}

.UploadLevel_statusMessageContainer__uC0nv {
  margin: 16px 0;
  width: 100%;
  max-width: 300px;
  word-break: break-word;
}

.UploadLevel_statusMessage__1kIjl {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  width: 100%;
}

.UploadLevel_icon__Z5zjJ {
  flex-shrink: 0;
}

.UploadLevel_errorText__KkT6w {
  color: #ef4444;
}

.UploadLevel_uploadingText__Qp7X1 {
  color: #aaa;
}

.UploadLevel_successText__OYGgx {
  color: #4ade80;
}
.WaveSelector_selectorBar__GuROY {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.WaveSelector_selectorBar__GuROY label {
  font-weight: bold;
  color: #ccc;
  min-width: 50px;
}

.WaveSelector_chevronButton__wUJsc {
  flex-shrink: 0;
  width: 40px;
  margin: 0px;
  height: 36px;
  padding: 0;
}
.LevelCreator_placeholderText__NHWFF {
  text-align: center;
  color: #888;
  margin-top: 2rem;
  font-style: italic;
}

.LevelCreator_canvasParent__MasrT {
  display: flex;
  justify-content: center;
  position: relative;

  margin: 16px;
  /* 16:9 aspect ratio. */
  /* NOTE: This will NOT resize well for resolutions with AR 4:3. But, it won't be too bad. */
  aspect-ratio: 1.777;

  border: solid white 1px;
}

.LevelCreator_canvasParent__MasrT canvas {
  border: solid white 1px;
}

.LevelCreator_noLevelMessage__mfAVh {
  color: white;
  font-size: 1.2rem;
  text-align: center;
  pointer-events: none;
  width: 100%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  padding: 8px;
  box-sizing: border-box;
}

/* Tab Styles (Moved from GroupEditor) */
.LevelCreator_tabHeader__bWcjA {
  display: flex;
  border-bottom: 1px solid #444;
  margin-bottom: 0;
  justify-content: center;
}

.LevelCreator_tabButton__hk0_y {
  flex: 1 1;
  padding: 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #aaa;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.LevelCreator_tabButton__hk0_y:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.LevelCreator_tabButtonActive__Y9ZS1 {
  color: white;
  border-bottom-color: #4a90e2;
  background-color: rgba(0, 122, 204, 0.1);
}
