

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden; /* ✅ prevent hidden scroll creep */
    background-image: url('./images/background.jpg');
  font-family: 'Outfit', sans-serif;
}

.wrapper {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.sidebar {
  /* background-color: #d32f2f; /* red */
  width: 320px;
  flex-shrink: 0;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
    max-width: 320px; /* or same as .sidebar */
  overflow-x: hidden; /* 👈 Prevents horizontal growth */
  min-width: 320px;
  /* background-color: blue; */
  margin: 20px 0 20px 20px;
}

#sidebar {
  display: flex; 
  flex-direction: column;
    width: 100%;
  max-width: 320px; /* match .sidebar */
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

.container {
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;      /* ✅ Include padding in height */
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* Header */
.header {
  height: 60px;
  width: 100%;
  /* background: lightblue;*/
  flex-shrink: 0;
}

/* Canvas area */
.canvas {
  flex-grow: 1;           /* ✅ Take all remaining space */
  width: 100%;
  /* background: lightgray;*/
  overflow: hidden;
}

/* Footer */
.utility-footer {
  height: 60px;
  width: 100%;
  display: flex;
  justify-content: flex-end; /* ✅ Aligns content to the right */
  align-items: center;       /* ✅ Vertically centers the content */
  /*background-color: lightcoral; for visual debug — remove if not needed */
    gap: 20px; /* 👈 adds 20px space between children */
  padding: 0; /* 👈 no padding on container edges */
}




#search_item::placeholder {
  color: #D9D9D9; /* 👈 Replace with any color you want */
  opacity: 1;  /* Ensure full visibility */
}

h2 {
  font-weight:400;
  font-size: 20px;
}


#container {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

#cableModeToggle:checked + #toggleThumb {
  left: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #888;
    transition: 0.4s;
    border-radius: 26px;
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 20px; width: 20px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }

  input:checked + .slider {
    background-color: #4caf50;
  }

  input:checked + .slider:before {
    transform: translateX(24px);
  }

  /*
.thumb-img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  object-fit:contain;
}
  */

img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

  .label-text {
    color: white;
    font-size: 14px;
    padding-left: 6px;
  }

  /* 🎯 Modal container */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  width: 80%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
  padding: 20px;
  position: relative;
}

/* ❌ Close button */
.close-btn {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

/* 🔍 Search bar */
#exploreSearch {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* 🏷️ Hashtag tag pills */
.tag-container {
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  background-color: #eee;
  border-radius: 20px;
  padding: 6px 12px;
  margin: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.tag:hover {
  background-color: #ddd;
}

.tag.selected {
  background-color: #333;
  color: #fff;
  position: relative;
}

.tag .x {
  margin-left: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* ❌ Clear filter */
.clear-btn {
  background-color: #aaa;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  cursor: pointer;
}

.clear-btn.hidden {
  display: none;
}

/* 🖼️ Grid of pedalboards */
/*
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 15px;
}
  */

.pedalboard-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding: 10px;
  background-color: #fafafa;
}

.pedalboard-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.pedalboard-card h4 {
  margin: 8px 0 4px;
}

.pedalboard-card .hashtags {
  font-size: 12px;
  color: #555;
}

.pb-meta {
  font-size: 0.8em;
  color: #666;
  margin: 5px 0;
  line-height: 1.4;
}


.sidebar-container {
  background-color: #1E1E1E;
  width: 100%;
  height: calc(100vh - 40px);
  padding:20px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: inset 0 1px 1px #4B4542, 0 4px 2px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}


#itemsContainer {
  flex-grow: 1;
  margin-bottom: 16px;
  overflow-y: auto;
  width: 100%;
}


.thumb-wrapper {
  width: 40px;  /* slightly more space */
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}






.item-card {
  background-color: #2D2C2F;
  display: flex;
  align-items: center;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 5px;
  width: 100%; /* ✅ fill available space only */
  max-width: 100%;
  word-break: break-word;
  box-sizing: border-box; /* ✅ respect padding inside flexbox */
}


.item-card-name {
  color: white;
  font-size: 14px; /* or 13px if you want even smaller */
  font-weight: 400;
}

.item-card-brand {
  color: gray;
  font-size: 12px;
  font-weight: normal; /* removes bold */
}


.bottom-menu {
  display: flex;
  justify-content: space-between;
  /* border-top: 1px solid #444;*/
}

.add-button {
  width: 20px;
  height: 20px;
  background-image: url('./images/btn_add_item.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
}


.menu-btn {
  width: 64px;
  height: 64px;
  background: none;
  border: none;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  --icon-url: none;
  line-height: 1;
  gap: 10px; /* 👈 tighten vertical space */
  padding-bottom: 8px;
}

/* Load icon using pseudo-element */
.menu-btn::before {
  content: "";
  display: block;
  width: 72px;        /* ⬆️ increase width */
  height: 72px;       /* ⬆️ increase height */
  margin-top: 2px;
  margin-bottom: -2px;
  margin-top:10px;
  background-image: var(--icon-url);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}



/* Active style */
.menu-btn.selected {
  background-color: white;
  color: black;
}

/* Invert icon color when selected */
.menu-btn.selected::before {
  filter: brightness(0);
}





.pedal-shadow {
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.6));
}

.pedal-selected {
  outline: 3px solid #00ffff;
  outline-offset: -3px;
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.8));
  z-index: 100;
}



.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: #48454E;
  padding: 6px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
  height: 30px;
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  padding-left: 26px; /* space for icon */
  height: 36px;
  outline: none;
}

.search-bar input::placeholder {
  color: #ccc;
  font-size: 14px;
}

.search-bar .search-icon {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  filter: brightness(0) saturate(100%) invert(92%) sepia(0%) saturate(0%) hue-rotate(141deg) brightness(88%) contrast(90%);
  pointer-events: none;
  opacity: 1;
}

.search-bar button {
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  display: none;
}




.btn-clear-cables {
  width: 20px;
  height: 20px;
  background-image: url('./images/btn_delete_cables.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
  cursor: pointer;
}


/*
.header {
  display: flex;
  justify-content: flex-end;  
  align-items: center;
  padding:0 0 0 20px;
  gap: 30px; 
  background: hotpink;
}
*/

.header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;            /* ✅ Ensure full-width */
  height: 60px;
  /* background: hotpink;*/
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-left: 20px;
  gap: 30px;
  box-sizing: border-box;
  z-index: 100;
}




.header-group {
  display: flex;
  gap: 10px;
  margin-right: 30px; /* ⬅️ adds 50px between blocks */
}

.header-group:last-child {
  margin-right: 2px; /* prevents extra space at the end */
}
.header-btn {
  width: 36px;
  height: 36px;
  background-color: #1E1E1E;
  border-radius: 8px;
  border: none;
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: background-color 0.2s;
}

.header-btn:hover {
  background-color: #333;
}

/* 👇 Apply specific icons */
#btn-explore {
  background-image: url('./images/btn_explore.svg');
  background-size: 70% 70%;
  background-repeat: no-repeat;
  background-position: center;
}
#btn-shoutboard    { background-image: url('./images/btn_contact.svg'); }

#zoomInBtn         { background-image: url('./images/btn_zoom-in.svg'); }
#zoomOutBtn        { background-image: url('./images/btn_zoom-out.svg'); }
#clearCanvasBtn    { background-image: url('./images/btn_clear.svg'); }
#exportBtn         { background-image: url('./images/btn-snapshot.svg'); }
#savePedalboardBtn { background-image: url('./images/btn-save.svg'); }

/* #login-button      { background-image: url('./images/btn_login.svg'); } */
/* #signup-button     { background-image: url('./images/btn_signup.svg'); } */

.header-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #444 !important;
  filter: grayscale(100%) brightness(80%);
}

/* LOGIN & SIGNUP BUTTON STYLES (override icon style) */
#login-button,
#signup-button {
  height: 30px;
  width: 90px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-radius: 16px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* LOGIN: black bg, white border + text */
#login-button {
  /* background: black;*/
  color: white;
  border: 1.5px solid white;
}

/* SIGN UP: white bg, black text */
#signup-button {
  background: white;
  color: black;
  border: none;
}

/* Hover states */
#login-button:hover {
  background-color: #222;
}

#signup-button:hover {
  background-color: #f1f1f1;
}

.header-btn[title] {
  position: relative;
}

.header-btn[title]::after {
  content: attr(title);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30,30,30,0.95);
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 999;
}

.header-btn[title]:hover::after {
  opacity: 1;
}

#addFixedAnchorSelect {
  background: transparent;
  color: white;
  border: 1.5px solid white;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
  appearance: none;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600;
  height: 32px;
  line-height: 1;
}

#addFixedAnchorSelect:focus {
  outline: none;
  border-color: #ccc;
}

#addFixedAnchorSelect {
  background-image: url('./images/arrow-down-white.svg'); /* Optional */
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  padding-right: 30px;
}


/* CUSTOM FORM ------------------------------------------- */
/* ------------------------------------------------------- */

/* ====== CUSTOM ITEM FORM ====== */
#custom_form.custom-form {
  font-family: 'Outfit', sans-serif;
  /* padding: 20px;*/
  color: white;
  display: flex;
  flex-direction: column;
}

#custom_form .form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Labels */
#custom_form label {
  font-size: 13px;
  font-weight: 300;  /* Regular weight */
  margin-bottom: 6px;
  display: block;
}


/* Input fields */
#custom_form input[type="text"],
#custom_form input[type="number"] {
  background-color: #2D2C2F;
  border: 1px solid #444;
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}

#custom_form input[type="text"]::placeholder {
  color: #999;
}

/* Character limit warning */
#char-limit-warning {
  margin-top: 4px;
  font-size: 12px;
}

/* Toggle buttons */
/*
.toggle-group {
  display: flex;
  background-color: #2D2C2F;
  border-radius: 10px;
  overflow: hidden;
  gap: 6px;
}
  */


  #color {
  background-color: #2d2c2f;   /* match other inputs */
  border: 1px solid #444;
  border-radius: 8px;          /* ✅ match other input radius */
  height: 36px;
  width: 100%;
  padding: 4px 6px;
  cursor: pointer;
  box-sizing: border-box;
}

#color::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 8px;
}

#color::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}




.toggle-group {
  display: flex;
  background-color: #2D2C2F;
  border-radius: 10px;
  overflow: hidden;
  width: 99%;
  max-width: 100%;
  border: 1px solid #444;
  height: 40px;
}



.toggle {
  flex: 1; /* 👈 make each toggle fill equally */
  text-align: center;
}

.toggle input[type="radio"] {
  display: none;
}



  .toggle .label-text {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: 100%;
  padding: 0 10px;
  font-size: 13px;
  height: 100%;
  text-align: center;
}


  .toggle input[type="radio"]:checked + .label-text {
  background-color: white;
  color: black;
  border-radius: 8px;
}

/* Dimensions group */
.dimension-group {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.dimension-group > div {
  flex: 1;
}

/* Unit switch inside dimensions */
.dimension-group label input[type="radio"] {
  display: none;
}

/*
.dimension-group label {
  display: inline-block;
  background: #000;
  color: white;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 6px;
  user-select: none;
}
  */

.dimension-group input[type="radio"]:checked + label {
  background: white;
  color: black;
}

/* Color Picker */
#custom_form input[type="color"] {
  appearance: none;
  width: 100%;
  height: 30px;
  border-radius: 8px;
  border: none;
  margin-top: 8px;
  cursor: pointer;
}

/* Submit Button */
#submit-custom-item {
  margin-top: 16px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  background-color: transparent;
  color: white;
  border: 1.5px solid white;
  border-radius: 32px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}

#submit-custom-item:hover {
  background-color: white;
  color: black;
}

#custom_form fieldset {
  padding:5px 5px 0 5px;
  background-color: #2D2C2F;
  border: 1px solid #444;
}


.btn-outline {
  width: 100%;
  height: 28px;
  line-height: 4px; /* Adjust this to center text vertically */
  border: 1.5px solid white;
  border-radius: 25px;
  background: transparent;
  color: white;
  font-weight: bold;
  font-size: 11px !important;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.2s ease;
  padding: 0; /* Remove extra vertical padding */
}

.btn-outline:hover {
  background: white;
  color: black;
}

#unitSelect {
  background-color: #2D2C2F;
  border: 1px solid #444;
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
  font-family: 'Outfit', sans-serif;
  box-sizing: border-box;
  appearance: none;
}


#unitSelect:focus {
  outline: none;
  border-color: #ccc;
}


#clear-search {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}





/* MODALS ------------------------------------------- */
/* ------------------------------------------------------- */


/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal Container */
.modal-box {
  background: #fff;
  color: #000;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  font-family: 'Outfit', sans-serif;
   position: relative;
}

/* Modal Heading */
.modal-box h2 {
  font-size: 20px;
  margin: 0 0 16px;
}

/* Modal Description */
.modal-box p {
  font-size: 14px;
  margin: 0 0 20px;
  color: #333;
}

/* Modal Inputs */
.modal-box input[type="email"],
.modal-box textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #000;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  resize: vertical;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

/* Modal Buttons Row */
.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* Button Styles */
.modal-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
}

/* Cancel (outline) */
.modal-btn-cancel {
  background: transparent;
  border: 1.5px solid #000;
  color: #000;
}

/* Send (black filled) */
.modal-btn-send {
  background: #000;
  color: #fff;
}

/* Close button (X) */
.modal-close {
  position: absolute;
  top: 20px;
  right: 32px;
  font-size: 20px;
  color: #000;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: Outfit, sans-serif;
}


.modal-box label {
  font-size: 14px;
  color: #000;
  display: block;
  margin-top: 16px;   /* more space above the label */
  margin-bottom: 6px; /* space below label before input */
  font-weight: 500;
}


.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px; /* 🔽 reduce from current ~16px */
}








.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 20px;
  color: #000;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: Outfit, sans-serif;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 16px;
}

.modal-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
  display: block;
  margin-top: 12px;
}

/*
.modal-input {
  width: 100%;
  padding: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #000;
  margin-bottom: 8px;
}
  */

.modal-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid black;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Outfit', sans-serif;
  box-sizing: border-box;
  margin-bottom: 12px;
}

/* ✅ Optional utility class for full width */
.full-width {
  width: 100%;
}




.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.modal-btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #000;
}

.modal-btn-cancel {
  background: white;
  color: black;
}

.modal-btn-send {
  background: black;
  color: white;
  border: none;
}

.modal-btn:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}


/* Switch styling (reused from previous) */
.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#switch-label {
  margin-top: 7px;  
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #444;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #FF69B4; /* hotpink */
}

input:checked + .slider:before {
  transform: translateX(20px);
}


.modal-error {
  color: red;
  font-size: 14px;
  margin-top: 4px;
  margin-bottom: 10px;
}

.modal-switch {
  margin-top: 20px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  color: #000;
  font-family: 'Outfit', sans-serif;
}


.board-thumbnail-wrapper {
  background-color: #333;
  border-radius: 10px;
  width: 80px;
  height: 80px;               /* ⬅️ Make it square */
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.board-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* ⬅️ Keeps aspect ratio inside square */
  display: block;
}



/* USER MENU ------------------------------------- */

#user-menu {
  position: relative;
}

.avatar {
  background-color: white;
  color: black;
  font-weight: bold;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: Outfit, sans-serif;
  font-size: 14px;
  box-shadow: 0 0 0 2px white;
  z-index: 1;
}

.dropdown {
  position: absolute;
  top: 48px; /* 🔧 adjusted to appear *below* the avatar */
  right: 0;
  background: #1e1e1e;
  border-radius: 12px; /* ✅ rounded corners */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  z-index: 10;
  text-align: right;
}

.dropdown-item {
  background: none;
  border: none;
  padding: 10px;
  text-align: right;
  font-size: 14px;
  color: white;
  cursor: pointer;
  font-family: Outfit, sans-serif;
  border-radius: 6px;
  width: 100%; 
}

.dropdown-item:hover {
  background: #2a2a2a;
}



.modal-scroll ul {
  padding-left: 20px;
  font-size: 16px; /* or match your modal p */
}
.modal-scroll li {
  margin-bottom: 6px;
}

.icon-button {
  background: transparent;
  border: none;
  cursor: pointer;
}

#jackCount {
  background-color: #2D2C2F;
  border: 1px solid #444;
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  appearance: none;
    background-image: url('./images/arrow-down-white.svg');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  padding-right: 30px;
}


/* ---------------------------------------------- */
/* SAVE LOADER ---------------------------------- */

#save-pedalboard-modal .modal-box {
  width: 470px;
  min-height: 420px;      /* ⬅️ Increased */
  max-height: 90vh;       /* ⬅️ Allow it to grow more */
  overflow-y: auto;       /* ⬅️ Add scrolling if content grows */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* Hidden by default, toggled via JS */
.fixed-loader-box {
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Dots animation */
.dot-loader {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dot-loader span {
  font-size: 30px;
  color: #999;
  animation: dotBlink 1.2s infinite ease-in-out;
  margin: 0 6px;
}

.dot-loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.dot-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBlink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

/* Message */
.modal-message {
  display: none;
  text-align: center;
  font-size: 15px;
  color: #333;
  margin-top: 20px;
}

.modal-message.success {
  color: green;
}
.modal-message.error {
  color: red;
}

.modal-btn.full-width {
  width: 100%;
  margin-top: 24px;
}


.centered-box {
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dot-loader {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dot-loader span {
  font-size: 36px;
  color: #999;
  animation: dotBlink 1.2s infinite ease-in-out;
  margin: 0 4px;
}

.dot-loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.dot-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBlink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

.save-loader {
  position: absolute;
  top: 180px;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* optional: prevent clicks if needed */
}

.save-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dot-loader {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.dot-loader span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #000;
  border-radius: 50%;
  opacity: 0.2;
  animation: pulse 1s infinite;
}

.dot-loader span:nth-child(1) { animation-delay: 0s; }
.dot-loader span:nth-child(2) { animation-delay: 0.1s; }
.dot-loader span:nth-child(3) { animation-delay: 0.2s; }
.dot-loader span:nth-child(4) { animation-delay: 0.3s; }
.dot-loader span:nth-child(5) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.loader-text {
  font-size: 14px;
  color: #000;
}


.save-success, .save-error {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 40px 20px 20px; /* top, horizontal, bottom */
  text-align: center;
  box-sizing: border-box;
}

.save-success img {
  height: 64px;
  margin: 20px 0;
}

.save-success button {
  top:120px;
  margin-top:80px
}

.save-success-text {
  font-size: 16px;
  margin: 12px 0 20px;
}

.save-success .modal-buttons {
margin-top:70px;
}

.modal-box {
  position: relative;
}

.save-error .modal-buttons {
margin-top:70px;
}



/* Expot pedalboard LOADER */

#exportBtn {
  position: relative;
}

#exportStatus {
  position: absolute;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  font-size: 13px;
  font-family: monospace;
  padding: 6px 12px;
  border-radius: 8px;
  z-index: 1000;
  display: none;
  width:150px;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes blinkSlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

#exportStatusText {
  animation: blinkSlow 1.5s ease-in-out infinite;
}




/* Cable buttons */
#cableButtons {
  display: none;
  position: absolute;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Wrapper: black outer circle */
.cable-color-wrapper {
  position: relative;
  width: 30px;
  height: 30px;
  background-color: black;
  border-radius: 50%;
  overflow: hidden;
}

/* Hidden color input (still clickable) */
#cableColorPicker {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
}

/* Force swatch into clean circle */
#cableColorPicker::-webkit-color-swatch-wrapper {
  padding: 0;
  margin: 0;
}

#cableColorPicker::-webkit-color-swatch {
  width: 40%;
  height: 40%;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


#cableColorPicker::-moz-color-swatch {
  border: none;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  aspect-ratio: 1 / 1;
}

/* Delete button */
#deleteCableBtn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background-color: black;
  background-image: url('./images/icon_delete.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px 30px;
  cursor: pointer;
}


/* Default: black switch */
.switch input:checked + .slider {
  background-color: #000;  /* black */
}

/* Cable Mode switch ONLY stays hotpink */
#cableModeToggle:checked + .slider {
  background-color: #FF69B4; /* hotpink */
}


/* --- Welcome modal small tweaks (uses your .modal-overlay / .modal-box) --- */
.welcome-lead {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.welcome-cta {
  margin-top: 14px;
  width: 100%;
}



/* --- Temporary highlight for #btn-shoutboard --- */
.pulse-highlight {
  position: relative;
  z-index: 10001; /* above header */
  box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 10px rgba(255,105,180,0.35);
  animation: pulseRing 1.6s ease-in-out infinite;
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 10px rgba(255,105,180,0.35); }
  70%  { box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 18px rgba(255,105,180,0); }
  100% { box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 10px rgba(255,105,180,0); }
}

/* Small bubble tooltip that points at the shoutboard button */
.highlight-tip {
  position: fixed;
  z-index: 10050; /* stays above modal */
  background: rgba(30,30,30,0.95);
  color: #fff;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 8px;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, calc(100% + 12px)); /* ⬅️ below the button */
}

.highlight-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;  /* arrow at top of bubble */
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(30,30,30,0.95); /* arrow points UP */
}



/* SHARE MODAL */
.modal.hidden { display: none; }
.modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 320px;
  max-width: 90%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}



.form-group { margin: 12px 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
#share-url { width: 100%; padding: 8px; }

#btn-share { background-image: url('./images/btn_share.svg'); }

/* Make "Explore Public Pedalboards" the same width as "My Pedalboards" */
#exploreModal .modal-content {
  max-width: 700px;   /* same as My Pedalboards */
  width: 100%;
}

.btn-loading {
  position: relative;
}

.btn-loading::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* keep aspect ratio, no stretching */
.thumb-img {
  width: auto;          /* was 80% */
  height: auto;         /* was 80% */
  max-width: 80%;       /* keep some padding inside the box */
  max-height: 80%;
  object-fit: contain;  /* letterbox if needed */
  display: block;
  image-rendering: auto;
  flex-shrink: 0;
}

/* force aspect-ratio-friendly sizing for thumbs */
#sidebar .thumb-wrapper .thumb-img {
  width: auto !important;
  height: auto !important;
  max-width: 80% !important;
  max-height: 80% !important;
  object-fit: contain !important;
}

#btn-tutorial {
  background-image: url('./images/btn_tutorial.svg'); /* ⬅️ place your icon here */
  background-size: 70% 70%;  /* keeps icon consistent with Explore */
  background-repeat: no-repeat;
  background-position: center;
}

  .video-modal { max-width: 900px; }
  .responsive-video { position: relative; width: 100%; padding-top: 56.25%; }
  .responsive-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

  /* --- Fix tutorial modal size (override Share modal's 320px) --- */
#tutorial_modal .modal-content {
  width: 80% !important;
  max-width: 900px !important;
}

#tutorial_modal .responsive-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

#tutorial_modal .responsive-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Make welcome modal buttons equal width */
#welcome_modal .modal-buttons button {
  flex: 1;
}

/* Shoutboard success — make OK full width */
#popup_shoutboard .modal-buttons .modal-btn-send { width: 100%; }
