/* HTML Entities Decoder Pro — matches the Deecliq Data Transfer shape. */

/* ── Decode Options panel ── */
.hed-opts-toggle {
    position:absolute; top:14px; right:14px;
    display:inline-flex; align-items:center; gap:7px;
    padding:7px 14px; border-radius:8px;
    background:var(--surface,#fff); border:1px solid var(--border,#e5e7eb);
    color:var(--txt-2,#6b7280); font-size:.78rem; font-weight:700;
    cursor:pointer; font-family:inherit; position:absolute; top:14px; right:14px;
    transition:background .15s, border-color .15s, color .15s;
    z-index:10;
}
.hed-opts-toggle:hover,
.hed-opts-toggle--active { background:rgba(99,102,241,.08); border-color:#6366f1; color:#6366f1; }
.hed-opts-badge {
    background:#6366f1; color:#fff; border-radius:99px;
    font-size:.65rem; font-weight:900; padding:1px 6px; min-width:18px; text-align:center;
}
.hed-opts-panel {
    display:none; position:absolute; top:52px; right:14px; z-index:200;
    width:280px; background:var(--surface,#fff);
    border:1px solid var(--border,#e5e7eb); border-radius:14px;
    box-shadow:0 8px 32px rgba(0,0,0,.13); padding:16px;
}
.hed-opts-panel--open { display:block; }
.hed-opts-title {
    font-size:.78rem; font-weight:800; color:var(--txt,#111);
    display:flex; align-items:center; gap:7px; margin-bottom:4px;
}
.hed-opts-title i { color:#6366f1; }
.hed-opts-hint {
    font-size:.72rem; color:var(--txt-3,#9ca3af); margin:0 0 12px; line-height:1.5;
}
.hed-opt-row {
    display:flex; align-items:center; gap:9px;
    padding:7px 10px; border-radius:8px; cursor:pointer;
    font-size:.8rem; color:var(--txt-2,#374151);
    transition:background .12s;
    margin-bottom:2px;
}
.hed-opt-row:hover { background:rgba(99,102,241,.06); }
.hed-opt-row input[type=checkbox] {
    width:15px; height:15px; accent-color:#6366f1; flex-shrink:0; cursor:pointer;
}
.hed-opt-row code {
    background:rgba(99,102,241,.09); color:#6366f1;
    padding:1px 6px; border-radius:4px; font-size:.74rem; flex-shrink:0;
}
.hed-opt-row strong { color:var(--txt,#111); flex-shrink:0; }
.hed-opt-row span { color:var(--txt-3,#9ca3af); font-size:.72rem; margin-left:auto; }


.hed-fit.hed-scope {
  display: flex; flex-direction: column; gap: 10px;
  height: 100vh;
  max-width: 1600px; margin: 0 auto;
  padding: 72px 4vw 12px; /* 72px clears the fixed navbar */
  overflow: hidden;
}

.hed-hero { text-align: center; flex-shrink: 0; padding: 4px 0; }
.hed-hero h1 {
  font-size: 1.35rem !important; font-weight: 800 !important;
  color: var(--brand, #8b5cf6) !important;
  margin: 0 0 4px !important;
}
#hedScope .hed-hero p {
  font-size: .82rem !important; color: var(--txt-2, #64748b) !important;
  margin: 0 auto !important; max-width: 760px; line-height: 1.5;
}

#hedScope .hed-card {
  max-width: 100% !important; width: 100%;
  padding: 14px 24px 16px !important;
  background: var(--page-bg, #f8fafc) !important;
  border: 1px solid var(--border, #e2e8f0) !important;
  box-shadow: none !important;
  margin: 0 auto !important;
  flex: 1; display: flex; flex-direction: column; gap: 0; overflow: hidden;
}

.hed-label {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; color: var(--txt, #0f172a); margin-bottom: 6px;
}
.hed-label i { color: var(--brand, #8b5cf6); }
.hed-output-stat { font-weight: 400; color: var(--txt-2, #64748b); font-size: .74rem; }

#hedScope .form-group { flex: 1; display: flex; flex-direction: column; min-height: 0; margin-bottom: 0; }

.hed-textarea {
  width: 100%; flex: 1; resize: none; min-height: 0;
  border: 1px solid var(--border, #e2e8f0); border-radius: 10px;
  background: var(--surface, #fff); color: var(--txt, #0f172a);
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: .82rem; line-height: 1.6;
  padding: 10px 12px;
}
.hed-textarea:focus { outline: none; border-color: var(--brand, #8b5cf6); }

#hedScope .controls {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin: 10px 0; flex-shrink: 0;
}
#hedScope .btn code {
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: .7rem;
  background: rgba(255,255,255,.18); padding: 1px 5px; border-radius: 5px; margin-left: 2px;
}
#hedScope .btn-primary, #hedScope .btn-success, #hedScope .btn-warning {
  padding: 10px 20px; font-weight: 700; font-size: .88rem; border-radius: 10px;
}

@media (max-width: 768px) {
  .hed-fit.hed-scope { height: auto; overflow: visible; padding: 80px 4vw 40px; }
  .hed-textarea { height: 160px; flex: none; }
  #hedScope .form-group { flex: none; }
  #hedScope .hed-card { flex: none; }
}
