/* Tooltip styling (mirrored from Card Lab) */
.tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.88);
  color: #00ffff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99999;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
  font-weight: 500;
  font-family: 'Gabarito', sans-serif;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 255, 255, 0.25);
  max-width: 280px;
  text-align: center;
  line-height: 1.5;
}

/* Arrow for tooltip positioned above the button (points down) */
.tooltip.tooltip-top:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  margin-left: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(0, 0, 0, 0.88);
  filter: drop-shadow(0 2px 2px rgba(0, 255, 255, 0.1));
}

/* Arrow for tooltip positioned below the button (points up) */
.tooltip.tooltip-bottom:after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  margin-left: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(0, 0, 0, 0.88);
  filter: drop-shadow(0 -2px 2px rgba(0, 255, 255, 0.1));
}

.info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(0, 191, 165, 0.2);
  color: #00ffff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-left: 8px;
  cursor: pointer;
  border: 1px solid rgba(0, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.info-button:hover {
  background: rgba(0, 191, 165, 0.4);
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}
body {
  margin: 0;
  font-family: "Gabarito", sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: white;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.header-left img {
  margin-top: 4px !important;
}

.header-left h1 {
  font-size: 1.5rem;
  margin: 0;
  color: white;
  position: relative;
  font-weight: 700;
  background: linear-gradient(to right, #00fff0, #a600ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-center {
  display: none;
}

.header-right {
  position: relative;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  height: 36px;
}

.header-icon-button {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  height: 36px;
}

.header-icon-button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.15);
}

.header-icon-button img.icon {
  width: 16px;
  height: 16px;
  filter: invert(100%);
}

.poster-tools-brand {
  height: 60px;
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.5));
  transform: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: #cccccc;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #00fff0, #a600ff);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::before {
  width: 80%;
}

.nav-button {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 240, 0.1),
    rgba(166, 0, 255, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-button:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 240, 0.2),
    rgba(166, 0, 255, 0.2)
  );
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.sidebar {
  width: 280px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
  padding: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-sizing: border-box;
  overflow-y: auto;
  max-height: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.sidebar label,
.sidebar .toggle-label {
  font-size: 0.95rem;
  font-weight: 200;
  color: #ffffff;
  letter-spacing: 0.4px;
  filter: brightness(1.2);
}

.sidebar input,
.sidebar select {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem;
  font-size: 0.9rem;
  background: rgba(25, 25, 35, 0.7);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-sizing: border-box;
}

.slider-inline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.4rem 0;
}

.slider-inline label {
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 80px;
}

.slider-inline input[type="range"],
.sidebar input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px !important;
  background: linear-gradient(to right, #00bfa5, #8e24aa);
  border-radius: 3px;
  outline: none;
  margin: 0.4rem 0;
  flex: 1;
  border: none;
  padding: 0;
}

.slider-inline input[type="range"]::-webkit-slider-thumb,
.sidebar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  margin-top: -7px;
}

.slider-inline input[type="range"]::-moz-range-thumb,
.sidebar input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

#logo-scale,
#blur-amount {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100%;
  height: 4px !important;
  background: linear-gradient(to right, #00bfa5, #8e24aa);
  border-radius: 3px;
  outline: none;
  margin: 0.4rem 0;
  padding: 0;
  border: none;
}

#logo-scale::-webkit-slider-thumb,
#blur-amount::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  margin-top: -1px;
}

#logo-scale::-moz-range-thumb,
#blur-amount::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.slider-inline input[type="range"]::-moz-range-track,
.sidebar input[type="range"]::-moz-range-track,
#logo-scale::-moz-range-track,
#blur-amount::-moz-range-track {
  height: 4px !important;
  background: linear-gradient(to right, #00bfa5, #8e24aa);
  border: none;
}

.sidebar button {
  padding: 0.6rem;
  border-radius: 6px;
  border: none;
  background: white;
  color: black;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.5rem;
}

#resetBtn {
  background: linear-gradient(135deg, #ff5252, #ff1744, #d50000);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
  transition: all 0.3s ease;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

#resetBtn:hover {
  background: linear-gradient(135deg, #ff5252, #d50000);
  box-shadow: 0 6px 16px rgba(255, 23, 68, 0.4);
  transform: translateY(-2px);
}

.drop-zone {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 240, 0.1),
    rgba(166, 0, 255, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-weight: 500;
  color: white;
  font-family: "Gabarito", sans-serif;
  margin: 0 auto 8px auto;
  width: 92%;
  position: relative;
  font-size: 0.9rem;
  line-height: 1;
}

.drop-zone::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-right: 8px;
  background-image: url('../assets/poster-showcase icons/upload.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: invert(1);
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.drop-zone:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 240, 0.2),
    rgba(166, 0, 255, 0.2)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.15);
}

.main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 5rem;
}

#export-wrapper {
  --bg-start: #2c3e50;
  --bg-end: #6a11cb;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  background-clip: padding-box;
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 500px;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  gap: 1rem;
  box-shadow: none !important;
  border-color: transparent !important;
  position: relative;
  z-index: 1;
  border: none !important;
  outline: none !important;
  overflow: hidden !important;
}

#export-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 12px;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #2c3e50, #6a11cb);
}

#export-background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

#export-wrapper > *:not(#export-bg-container) {
  position: relative;
  z-index: 1;
}

#logo-preview {
  max-height: 100px;
  display: none;
}

#backdrop-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 12px;
  margin: 0;
  padding: 0;
}

#backdrop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #f0f0f0;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
  margin: 0.5rem 0 0.5rem 0;
}

.grid-section {
  display: flex;
  justify-content: center;
  width: 100%;
}

.row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}

.season-header {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 0.25rem;
  margin-bottom: 0.4rem;
  align-self: flex-start;
  width: 100%;
  text-align: left;
  padding-left: 10px;
  color: white;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.poster-wrapper,
.titlecard-wrapper,
.album-art-wrapper {
  width: 200px;
  position: relative;
}

.poster,
.titlecard,
.album-art {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.album-art {
  height: 200px;
}

.delete-btn {
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 1.2rem;
  cursor: pointer;
}

.credit-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.9rem;
  text-shadow: 0 0 4px black;
  margin-top: 1rem;
}

.credit-line img {
  height: 22px;
}

.created-by,
.powered-by {
  display: flex;
  align-items: center;
  gap: 8px;
}

#creator-icon {
  height: 35px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  display: none;
}

.creator-icon-container {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}

.creator-text {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

#credit-text {
  margin-left: 0;
}

.powered-by img {
  height: 17px;
  width: auto;
  max-width: 100%;
  margin-bottom: -0.1rem;
  object-fit: contain;
}

.set-id-line {
  font-size: 0.9rem;
  text-shadow: 0 0 4px black;
}

.toggle-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0.25rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

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

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

input:checked + .toggle-slider {
  background: linear-gradient(90deg, #00bfa5 0%, #8e24aa 100%);
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.toggle-label {
  font-size: 0.85rem;
  color: #ccc;
}

.toggle-pair-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.25rem;
}

.section-separator {
  width: 100%;
  border-top: 1px solid rgba(0, 255, 255, 0.1);
  margin: 0.4rem 0;
  padding: 0;
  position: relative;
}

.section-separator::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(0, 255, 255, 0.3),
    rgba(255, 255, 255, 0.05),
    rgba(0, 255, 255, 0.3)
  );
  opacity: 0.5;
}

.api-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.2rem;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.api-fields label {
  font-size: 0.9rem;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 0.3rem;
  display: block;
  text-shadow: 0 0 2px rgba(0, 255, 255, 0.25);
}

.api-fields input {
  background: rgba(255, 255, 255, 0.07);
  color: white;
  border: 1px solid rgba(0, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

#connect-api-btn {
  background: linear-gradient(135deg, #00fff0, #6a11cb);
  color: white;
  border: none;
  width: 100%;
  border-radius: 6px;
  padding: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  position: relative;
  overflow: hidden;
}

#connect-api-btn:hover {
  background: linear-gradient(135deg, #00e5ff, #8e2de2);
  box-shadow: 0 6px 16px rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
}

#api-status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  margin-top: 0.3rem;
  margin-bottom: 0;
}

.status-connected {
  background-color: rgba(0, 255, 127, 0.15);
  color: #00ffcc;
}

.status-disconnected {
  background-color: rgba(255, 0, 0, 0.15);
  color: #ff6666;
  border-radius: 8px;
  text-align: center;
}

.set-selector {
  max-height: 240px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.6rem;
  margin-top: 0.6rem;
  display: none;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.05);
}

.set-item {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.65rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  color: white;
}

.set-item:hover {
  background-color: rgba(0, 255, 255, 0.15);
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.2);
}

.set-item .set-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.2);
}

.set-item .set-details {
  font-size: 0.78rem;
  color: #bbbbbb;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.sidebar-action-row {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin-top: -0.75rem;
}

.icon-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 1;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.icon-button img.icon {
  width: 22px;
  height: 22px;
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(1.5);
}

.icon-button.teal {
  background: linear-gradient(135deg, #00fff0, #6a11cb);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.icon-button.teal:hover {
  background: linear-gradient(135deg, #00e5ff, #8e2de2);
  box-shadow: 0 6px 16px rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
}

.icon-button.teal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  animation: shine 1.5s infinite;
  animation-delay: 0.5s;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

.icon-button.red {
  background: linear-gradient(135deg, #ff5252, #ff1744, #d50000);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.icon-button.red:hover {
  background: linear-gradient(135deg, #ff5252, #d50000);
  box-shadow: 0 6px 16px rgba(255, 23, 68, 0.4);
  transform: translateY(-2px);
}

.icon-button.teal:hover,
.icon-button.red:hover {
  transform: translateY(-3px);
  transition: all 0.2s ease;
}

.creator-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.creator-row input {
  flex: 1;
}

.icon-upload-btn {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 240, 0.1),
    rgba(166, 0, 255, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
  height: 22px;
  width: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.icon-upload-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 240, 0.2),
    rgba(166, 0, 255, 0.2)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.15);
}

.icon-upload-btn img.icon {
  width: 18px;
  height: 18px;
  filter: invert(100%) brightness(1.5);
}

.compact-row-selects {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.inline-select label {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 0 0 2px rgba(0, 255, 255, 0.2);
  white-space: nowrap;
}

.inline-select select {
  flex: 0 0 72px;
  padding: 0.35rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  border-radius: 6px;
  background: #111;
  max-width: 70px;
  color: white;
  border: 1px solid rgba(0, 255, 255, 0.2);
  text-align: center;
  box-shadow: 0 0 3px rgba(0, 255, 255, 0.1);
}

.gradient-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.gradient-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 0 3px rgba(0, 255, 255, 0.2);
}

.gradient-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.gradient-row input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  width: 100%;
  height: 12px;
  border-radius: 0px;
  padding: 0;
  cursor: pointer;
  background-color: transparent;
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 6px rgba(0, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.gradient-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 999px;
}

.gradient-row input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 999px;
}

.gradient-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  width: 100%;
}

.mini-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-left: 2px;
  margin-bottom: 0.25rem;
}

.pickr-bar-container {
  height: 30px !important;
  width: 100%;
}

.pickr .pcr-button {
  width: 100% !important;
  height: 18px !important;
  border-radius: 4px !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 6px rgba(0, 255, 255, 0.15);
}

.pcr-app[data-theme="monolith"] {
  background: #111 !important;
  border-radius: 10px !important;
  border: 1px solid rgba(0, 255, 255, 0.2) !important;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1) !important;
  color: white !important;
  z-index: 1000 !important;
}

.pcr-app[data-theme="monolith"] .pcr-result {
  background: #222 !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.pcr-app[data-theme="monolith"] input {
  background: #222 !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.pcr-app[data-theme="monolith"] .pcr-save {
  background: linear-gradient(135deg, #00bfa5, #8e24aa) !important;
  color: white !important;
  font-weight: bold;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.4rem 0.8rem !important;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.2) !important;
}

.pcr-app[data-theme="monolith"] .pcr-slider {
  border-radius: 6px !important;
  height: 10px !important;
}

.custom-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
}

.custom-modal {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  width: 400px;
}

.custom-modal h3 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: white;
  background: linear-gradient(to right, #00fff0, #a600ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.custom-modal p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: white;
}

.custom-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.custom-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-btn-red {
  background: linear-gradient(135deg, #ff5252, #ff1744, #d50000);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
}

.custom-btn-red:hover {
  background: linear-gradient(135deg, #ff5252, #d50000);
  box-shadow: 0 6px 16px rgba(255, 23, 68, 0.4);
  transform: translateY(-2px);
}

.custom-btn-blue {
  background: linear-gradient(135deg, #00bfa5, #8e24aa);
  color: white;
}

.custom-btn-blue:hover {
  background: linear-gradient(135deg, #1de9b6, #a600ff);
  transform: translateY(-2px);
}

.custom-btn-gray {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-btn-gray:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

#custom-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#custom-confirm-modal {
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  padding: 20px 25px;
  width: 320px;
  text-align: center;
  color: white;
}

.custom-confirm-buttons button {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin: 0 5px;
}

#confirmYes {
  background: #ff4d4d;
  color: white;
}

#confirmNo {
  background: #ccc;
  color: #111;
}

.loading-modal {
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.loading-spinner-large {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #00bfa5;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.loading-spinner {
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid #00bfa5;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: none;
  margin: 10px auto 0;
}

.progress-container {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 15px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00bfa5, #6a11cb);
  width: 0;
  transition: width 0.3s ease;
  border-radius: 3px;
}

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

.header-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 240, 0.1),
    rgba(166, 0, 255, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-family: "Gabarito", sans-serif;
  margin-left: 0.5rem;
  height: auto;
}

.action-button:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 240, 0.2),
    rgba(166, 0, 255, 0.2)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.15);
}

.action-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin-right: 8px;
  filter: invert(1);
  display: inline-block;
  vertical-align: middle;
}

/* Collapsible sections */
.collapsible {
  margin-bottom: 0.75rem;
  width: 100%;
}

.collapsible-header {
  background: linear-gradient(90deg, rgba(0, 187, 170, 0.2), rgba(12, 38, 70, 0.4));
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid #00fff0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.collapsible-header:hover {
  background: linear-gradient(90deg, rgba(0, 187, 170, 0.25), rgba(12, 38, 70, 0.45));
}

.collapsible-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.toggle-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}

.toggle-icon::before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  display: block;
  transition: transform 0.3s ease;
}

.collapsible.active .toggle-icon::before {
  transform: rotate(-135deg);
}

.collapsible-content {
  padding: 1rem;
  display: none;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0 0 6px 6px;
  margin-top: -0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.collapsible.active .collapsible-content {
  display: block;
}

.collapsible.active .collapsible-header {
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, rgba(0, 187, 170, 0.25), rgba(12, 38, 70, 0.45));
}

/* Collapsible section content styling */
.sidebar .collapsible .drop-zone {
  margin: 0.75rem 0;
  padding: 0.7rem;
  text-align: center;
  height: auto;
  display: block;
}

.sidebar .collapsible .slider-inline {
  margin: 0.8rem 0;
}

.sidebar .collapsible .inline-select {
  margin: 0.8rem 0;
  align-items: center;
}

.sidebar .collapsible .toggle-container {
  margin: 0.8rem 0;
}

.sidebar .collapsible .gradient-section {
  margin-top: 1rem;
}

.sidebar .collapsible .collapsible-content > input[type="text"] {
  margin-bottom: 0.75rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

input[type="file"] {
  display: none;
}

@media (max-width: 768px) {
  .logo-container {
    position: static;
    transform: none;
  }
}

@media screen and (min-width: 901px) {
  .sidebar-toggle {
    display: none;
  }

  .mobile-canvas-actions {
    display: none !important;
  }

  .header-mobile-menu {
    display: none;
  }

  .header-mobile-dropdown {
    display: none !important;
  }

  .header-actions {
    justify-content: flex-end;
    flex: 0 0 auto;
  }
}

@media screen and (max-width: 900px) {
  .mobile-canvas-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 550px;
    margin: 1rem auto;
    padding: 0 1rem;
  }
}

@media (max-height: 700px) {
  .sidebar {
    padding-right: 1rem;
  }
}

/* Config Save/Load Dialog Styles */
.settings-selection {
  max-height: none;
  overflow-y: visible;
  margin: 1rem 0;
  padding: 0.8rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 255, 255, 0.1);
}

.settings-group {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.settings-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.settings-group h5 {
  margin: 0 0 0.8rem;
  color: #00bfa5;
  font-size: 1.1rem;
  text-align: center;
}

.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 0;
  margin-bottom: 0.7rem;
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
  color: white;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  background: rgba(17, 18, 35, 0.5);
  transition: all 0.2s ease;
  height: 40px;
}

.checkbox-container:hover {
  background: rgba(30, 33, 58, 0.5);
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 22px;
  width: 22px;
  min-width: 22px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-right: 12px;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.checkbox-container input:checked ~ .checkmark {
  background: linear-gradient(135deg, #00bfa5, #8e24aa);
  border-color: transparent;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.setting-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.setting-name {
  font-weight: 500;
  color: white;
  font-size: 0.95rem;
}

.setting-status {
  font-size: 0.9rem;
  color: #00bfa5;
  font-weight: normal;
  margin-left: 8px;
}

.save-selection-actions {
  display: flex;
  justify-content: center;
  margin: 1rem 0 0.5rem;
  gap: 0.8rem;
}

.mini-btn {
  background: rgba(42, 43, 70, 0.7);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 0 1 auto;
  width: 120px;
}

.mini-btn:hover {
  background: rgba(75, 76, 100, 0.7);
}

#save-confirm-overlay .custom-modal,
#load-confirm-overlay .custom-modal {
  width: 500px;
  max-width: 90%;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

#save-confirm-overlay h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  background: linear-gradient(to right, #00fff0, #a600ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#save-confirm-overlay h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: white;
  text-align: center;
}

#saveConfirmOk {
  padding: 0.6rem 2rem;
  font-size: 1rem;
  background: linear-gradient(135deg, #00fff0, #6a11cb) !important;
  border: none;
  color: white;
  font-weight: 500;
  margin-top: 0.5rem;
  display: block;
  width: 180px;
  margin-left: auto;
  margin-right: auto;
}


