/* === Base Styles === */
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  gap: 1rem;
  margin-bottom: 10rem;
}

/* === Typography === */
h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.subtitle {
  margin-top: 0;
  margin-bottom: 3rem;
  font-size: 1rem;
  color: #aaaaaa;
}

h2 {
  font-size: 1.25rem;
  margin: 0;
}

p {
  font-size: .5rem;
}


/* === Archive Filename === */
.output{
  max-width: 341.5px;
}

.output h2 {
  margin-bottom: 0.5rem;
}
.filename-output {
  width: 100%;   
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filename-output code {
  width: 100%;
  font-family: monospace;
  background: #1a1a1a;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  height: 25px;
  overflow-x: auto;
  white-space: nowrap;
  overflow-y: hidden;
  scrollbar-width: thin;           
  scrollbar-color: #555 transparent;

}

/* WebKit (Chrome, Edge, Safari) */
.filename-output code::-webkit-scrollbar {
  height: 6px;  /* horizontal bar thickness */
}
.filename-output code::-webkit-scrollbar-track {
  background: transparent;
}
.filename-output code::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 3px;
}


#archiveInput {
  position: absolute;
  left: -9999px;
  pointer-events: none; /* optional safety */
}

#copyBtn {
  padding: 0.3rem 0.75rem;
  background-color: #2e2e2e;
  color: #e0e0e0;
  border: 1px solid #555;
  border-radius: 4px;
  cursor: pointer;
}

#copyBtn:hover {
  background-color: #3a3a3a;
}


/* === Main 2-Column Layout === */
.main-columns {
  display: flex;
  margin-top: 2rem;
  gap: 5rem;
  width: 100%;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
  min-width: 225px;
}

.right-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* === Variant Selectors and Output === */


.selections{
  display: flex;
  flex-direction: column;
  gap: 4rem;

}

.variant-selectors .variant-group {
  margin-bottom: 1rem;
}

.variant-group label {
  display: block;
  margin-bottom: 0.25rem;
}

select {
  width: 100%;
  padding: 0.3rem;
  background-color: #1e1e1e;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
}


/* === Body Region Configuration === */


.config h2 {
  margin-bottom: 1rem;
}

.selectors {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* NEW: Slider Row for Label + Slider Alignment */


.slider-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.region-label {
  width: 190px;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}

.slider {
  display: flex;
  gap: 0.5rem;
}

.slider span.value {
  width: 2ch;
  text-align: center;
  font-weight: bold;
}

.slider button {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
}

.slider button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* === Preview Section === */

.right-column .variant-selectors {
  width: auto;
}

.right-column .variant-selectors select {
  min-width: 11rem;
}

.right-column .variant-selectors h2 {
  text-align: center;
  width: 100%;
  margin-bottom: .5rem;
}

.bodymod-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: .5rem;
}

.bodymod-pills button {
  padding: 0.4rem 0.8rem;
  border: 1px solid #444;
  border-radius: 3px; /* pill shape */
  background: #1e1e1e;
  color: #e0e0e0;
  cursor: pointer;
}

.bodymod-pills button:is(:hover, :focus-visible) {
  outline: none;
  border-color: #666;
  background: #242424;
}

.bodymod-pills button.active {
  background: #444;
  border-color: #777;
  /* optional stronger focus ring instead of bold jump */
  box-shadow: 0 0 0 2px #666 inset;
}

#previewImage {
  max-width: 100%;
  max-height: 700px; /* or whatever fits nicely within your container */
  border: 1px solid #333;
  border-radius: 8px;
  object-fit: contain;
}


/* Make the preview flex to available space without overlapping buttons */
.preview-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px; /* reduces layout jump on first load; tweak if you prefer */
}

.angle-switcher {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 720px; /* prevents the image from stretching too wide */
}

.angle-switcher button {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
}

.angle-switcher span {
  font-weight: bold;
}


.flip-horizontal {
  transform: scaleX(-1);
  display: inline-block; /* Required to allow transform to apply properly */
}

/* === Responsive (optional) === */
@media (max-width: 710px) {
  .pill { padding: .35rem .7rem;
  }
  .main-columns {
    flex-direction: column;
    gap: 3rem;
  }
  .left-column{
    margin-bottom: 0;
  }
  .output{
  max-width: none;
  }
  .angle-switcher button {
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
}

}

.material-symbols-outlined {
  vertical-align: middle;
}


.filename-output code em {
  color: #aaa;
  font-style: italic;
  
}