/* styles for Accordion Markup Generator v1.0.2 */ 

:root {
  --ink: #1c2430;
  --ink-muted: #4b5a6b;
  --bg: #f5f7fb;
  --panel: #fff;
  --panel-border: #dbe3ee;
  --panel-elev-shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --blue: #1673ff;
}
html, body {
  height: 100%;
}
body {
  font-family: Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
*, *::before, *::after {
  box-sizing: border-box;
}
.small, small {
  font-size: .875em;
}
.muted {
  color: rgba(255, 255, 255, .75);
}
.page-header {
  background: #333;
  color: #fff;
  padding: 3rem 0 1.5rem;
  margin: 0 0 2rem;
  box-shadow: var(--panel-elev-shadow);
}
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 20px;
}
.page-header h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0;
}
main {
  padding: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: 375px 1fr;
  min-height: calc(100vh - 120px);
}
@media (max-width:960px) {
  main {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: var(--panel-elev-shadow);
}
.panel {
  padding: 16px;
}
.panel:first-child {
  padding-bottom: 0;
}
section.card.panel:has(#output) {
  display: flex;
  flex-direction: column;
}
fieldset {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 12px;
  margin: 0 0 12px;
}
legend {
  padding: 0 6px;
  margin-left: -6px;
  color: var(--ink-muted);
  font-size: .9rem;
  font-weight: 900;
}
label {
  display: block;
  font-size: .9rem;
  margin: 0 0 6px;
  color: var(--ink-muted);
}
input[type="text"], textarea, select {
  font-family: inherit;
  width: 100%;
  max-width: 100%;
  padding: 10px 8px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  outline: none;
}
textarea {
  resize: vertical;
}
input:focus, textarea:focus, select:focus {
  border-color: #a9c1ff;
  box-shadow: 0 0 0 3px rgba(20, 109, 255, .12);
}
.row {
  display: grid;
  grid-template-columns: 1fr;
}
.row + .row {
  margin-top: 1.3rem;
}
.help {
  font-size: .85rem;
  color: var(--ink-muted);
  margin: 6px 0 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--ink);
}
.checkline input {
  transform: translateY(1px);
}
.btn {
  appearance: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 14px;
}
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.btn-primary {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #1062e6;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  transition: .2s ease;
}
.btn-primary:hover {
  background: #0056b3;
}
.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.btn-medium {
  border: 1px solid var(--panel-border);
  background: #fff;
  color: var(--ink);
  transition: .2s ease;
}
.btn-medium:hover {
  background: var(--bg);
}
#output {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  flex: 1;
  min-height: 420px;
  background: #e9ecef;
  color: var(--ink);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px 12px;
}
#config {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#config .footer-actions {
  margin-top: auto;
  position: sticky;
  bottom: -4px;
  background: #fff;
  padding-block: 10px 20px;
  border-top: 1px solid var(--panel-border);
}
.inline-warning {
  font-size: .85rem;
  color: #8a3b00;
  background: #fff6e5;
  border: 1px solid #ffe2b3;
  border-radius: 8px;
  padding: 6px 8px;
  margin-top: 6px;
}
/* Scroll hint (left column) */
.scroll-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: .5rem 0 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: color .2s ease, opacity .2s ease;
}
.scroll-hint:hover {
  color: var(--ink);
}
.scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}
/* Safari-friendly custom select with consistent arrow */
.select-wrap {
  position: relative;
  display: block;
}
/* Remove native styling in Safari/iOS while keeping your look */
.select-wrap select {
  -webkit-appearance: none; /* Safari/iOS */
  appearance: none;
  background-color: #fff; /* required on iOS when removing appearance */
  border-radius: 10px; /* you already use 10px—keep it for iOS */
  padding-right: 2.25rem; /* make room for the custom arrow */
  line-height: 1.2; /* avoids clipped text in Safari */
  background-image: none; /* suppress any UA arrow */
}
/* The arrow */
.select-wrap::after {
  content: "";
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  /* SVG chevron that matches your ink color */
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  background-image: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%234b5a6b">\
<path d="M4.2 6.2a1 1 0 0 1 1.4 0L8 8.6l2.4-2.4a1 1 0 1 1 1.4 1.4L8.7 10.7a1 1 0 0 1-1.4 0L4.2 7.6a1 1 0 0 1 0-1.4z"/>\
</svg>');
  opacity: .9;
}
/* Use your existing focus style—extend it to the wrapper so the arrow gets the ring too */
.select-wrap:has(select:focus) {
  box-shadow: 0 0 0 3px rgba(20, 109, 255, .12); /* matches your focus ring */
  border-radius: 12px; /* soft ring corners */
}
/* Disabled state */
.select-wrap select:disabled {
  color: var(--ink-muted);
  background-color: #f8fafc;
  cursor: not-allowed;
}
.select-wrap:has(select:disabled)::after {
  opacity: .4;
}
/* Optional: high-contrast arrow on hover to match your buttons */
.select-wrap:hover::after {
  opacity: 1;
}
#actionAnnouncer {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: .9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
#actionAnnouncer.show {
  opacity: 1;
}