/* ==========================================================================
   DocsDown — image-converter.css (v2, modern)
   Dipakai: /image-converter/ + /image-converter/{from}-to-{to}/
   ========================================================================== */

.ix-wrap { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* --- Hero --- */
.ix-hero {
  position: relative;
  background:
    radial-gradient(1000px 320px at 15% -30%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(900px 300px at 85% 0%, rgba(168, 85, 247, 0.18), transparent 62%),
    linear-gradient(140deg, #070f1f 0%, #0d2242 55%, #13386e 100%);
  color: #fff;
  padding: 3.25rem 0 3.5rem;
  text-align: center;
  overflow: hidden;
}
.ix-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}
.ix-hero .ix-wrap { position: relative; z-index: 1; }
.ix-hero h1 {
  font-size: clamp(1.75rem, 4.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0.65rem 0 0.7rem;
}
.ix-hero p { color: rgba(255,255,255,0.84); max-width: 660px; margin: 0 auto; font-size: 1.03rem; }
.ix-hero-sm { padding: 2.5rem 0 2.75rem; }
.ix-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #dbeafe;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* --- Breadcrumb --- */
.ix-breadcrumb { background: #fff; border-bottom: 1px solid #e8eaed; }
.ix-breadcrumb .ix-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; padding: 0.65rem 1.25rem; font-size: 0.86rem; color: #5f6368; }
.ix-breadcrumb a { color: #1a73e8; text-decoration: none; font-weight: 600; }
.ix-breadcrumb a:hover { text-decoration: underline; }
.ix-breadcrumb .sep { color: #94a3b8; font-size: 0.72rem; }
.ix-breadcrumb .current { color: #202124; font-weight: 700; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ix-main { padding-bottom: 3rem; }

/* --- Tool card --- */
.ix-tool {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid #e6ecf5;
  border-radius: 20px;
  padding: 1.5rem;
  margin: -2.25rem auto 2.5rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 18px 45px rgba(15, 34, 66, 0.1), 0 2px 6px rgba(15, 34, 66, 0.05);
}
.ix-drop {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.3rem;
  text-align: center;
  border: 2px dashed #c3d4ee;
  border-radius: 16px;
  background: #f8fbff;
  padding: 2.35rem 1.25rem;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
  overflow: hidden;
}
.ix-drop:hover, .ix-drop.drag {
  border-color: #1a73e8;
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26, 115, 232, 0.14);
}
.ix-drop-glow {
  position: absolute; inset: -40% -10% auto -10%; height: 60%;
  background: radial-gradient(closest-side, rgba(26,115,232,0.16), transparent);
  pointer-events: none;
}
.ix-drop-ico { font-size: 2.5rem; line-height: 1; }
.ix-drop strong { font-size: 1.08rem; color: #16233a; font-weight: 800; }
.ix-drop small { color: #64748b; font-size: 0.85rem; }

/* --- Controls --- */
.ix-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.15rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid #e9eef6;
  border-radius: 15px;
}
.ix-ctrl label {
  display: block;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: #7b8794; margin-bottom: 0.4rem;
}
.ix-ctrl select, .ix-ctrl input[type=number] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #dfe6f0;
  border-radius: 11px;
  font-size: 0.95rem;
  color: #16233a;
  background: #fbfdff;
  transition: border-color .15s, box-shadow .15s;
}
.ix-ctrl select:focus, .ix-ctrl input:focus {
  outline: none; border-color: #1a73e8; box-shadow: 0 0 0 4px rgba(26,115,232,0.13); background: #fff;
}
.ix-ctrl-range { grid-column: 1 / -1; }
.ix-range { display: flex; align-items: center; gap: 0.9rem; }
.ix-range input[type=range] {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, #1a73e8 0%, #60a5fa 100%);
  outline: none;
}
.ix-range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid #1a73e8;
  box-shadow: 0 2px 6px rgba(26,115,232,0.35);
  cursor: pointer;
}
.ix-range input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid #1a73e8; cursor: pointer;
}
.ix-range span { font-weight: 800; color: #1a73e8; min-width: 48px; text-align: right; font-variant-numeric: tabular-nums; }

/* --- File list --- */
.ix-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.25rem; }
.ix-item {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid #e9eef6; border-radius: 14px; padding: 0.8rem 1rem;
  animation: ixIn .25s ease;
}
@keyframes ixIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ix-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #eef2f8; border: 1px solid #e6ecf5; }
.ix-meta { min-width: 0; }
.ix-name { font-weight: 700; font-size: 0.94rem; color: #16233a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-detail { font-size: 0.82rem; color: #64748b; margin-top: 0.25rem; }
.ix-detail b { color: #059669; }
.ix-actions { display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-end; }
.ix-btn {
  border: none; border-radius: 10px; padding: 0.55rem 1rem;
  font-weight: 800; font-size: 0.84rem; cursor: pointer; white-space: nowrap;
  transition: transform .12s, background .15s, box-shadow .15s;
}
.ix-btn:active { transform: scale(0.97); }
.ix-btn-dl { background: linear-gradient(135deg, #1a73e8, #0d5bbd); color: #fff; box-shadow: 0 4px 12px rgba(26,115,232,0.28); }
.ix-btn-dl:hover { box-shadow: 0 6px 18px rgba(26,115,232,0.38); }
.ix-btn-rm { background: transparent; color: #64748b; border: 1px solid #dfe6f0; }
.ix-btn-rm:hover { color: #dc2626; border-color: #fca5a5; background: #fef2f2; }

/* --- CTA --- */
.ix-cta-row { display: flex; flex-direction: column; gap: 0.7rem; align-items: center; margin-top: 1.5rem; }
.ix-btn-primary, .ix-btn-green {
  width: 100%; max-width: 380px; padding: 1rem 1.5rem; font-size: 1.03rem; border-radius: 13px;
}
.ix-btn-primary { background: linear-gradient(135deg, #1a73e8, #0d5bbd); color: #fff; box-shadow: 0 10px 26px rgba(26,115,232,0.3); }
.ix-btn-primary:hover { box-shadow: 0 14px 32px rgba(26,115,232,0.4); }
.ix-btn-primary[disabled] { opacity: .6; cursor: wait; }
.ix-btn-green { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 10px 26px rgba(16,185,129,0.28); }
.ix-note { text-align: center; color: #64748b; font-size: 0.82rem; margin: 1.1rem 0 0; }

/* --- Sections / cards --- */
.ix-sec { margin: 2.75rem 0 0; }
.ix-sec h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 0.75rem; color: #16233a; }
.ix-sec p { color: #3f4a5a; line-height: 1.75; font-size: 0.96rem; margin: 0 0 0.85rem; }
.ix-sec-sub { color: #64748b !important; font-size: 0.92rem !important; }
.ix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 0.85rem; margin-top: 1.1rem; }
.ix-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  padding: 0.95rem 1rem;
  background: #fff; border: 1px solid #e6ecf5; border-radius: 14px;
  text-decoration: none; color: #16233a;
  transition: border-color .15s, box-shadow .18s, transform .15s;
}
.ix-card:hover { border-color: #1a73e8; box-shadow: 0 10px 26px rgba(26,115,232,0.13); transform: translateY(-2px); }
.ix-card-fmt { font-weight: 800; font-size: 0.92rem; }
.ix-card-to { color: #1a73e8; }
.ix-card-arrow { color: #94a3b8; font-weight: 700; }
.ix-card-desc { flex-basis: 100%; font-size: 0.78rem; color: #64748b; }

.ix-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.ix-chip {
  display: inline-flex; align-items: center;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  background: #fff; border: 1px solid #dfe6f0;
  color: #1a73e8; font-weight: 700; font-size: 0.84rem; text-decoration: none;
  transition: background .15s, border-color .15s, transform .12s;
}
.ix-chip:hover { background: #f0f7ff; border-color: #1a73e8; transform: translateY(-1px); }
.ix-chip-all { background: linear-gradient(135deg, #1a73e8, #0d5bbd); color: #fff; border-color: transparent; }

/* --- Steps --- */
.ix-steps { counter-reset: ix; list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.ix-steps li {
  counter-increment: ix;
  position: relative;
  background: #fff; border: 1px solid #e6ecf5; border-radius: 14px;
  padding: 1rem 1.1rem 1rem 3.5rem;
}
.ix-steps li::before {
  content: counter(ix);
  position: absolute; left: 1rem; top: 1rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8, #60a5fa); color: #fff;
  font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.ix-steps b { display: block; color: #16233a; font-size: 0.98rem; margin-bottom: 0.25rem; }
.ix-steps p { margin: 0; font-size: 0.9rem; color: #566274; }

/* --- FAQ --- */
.ix-faq details {
  background: #fff; border: 1px solid #e6ecf5; border-radius: 13px;
  padding: 0.95rem 1.15rem; margin-bottom: 0.6rem;
}
.ix-faq summary {
  cursor: pointer; font-weight: 700; color: #16233a; font-size: 0.96rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.ix-faq summary::-webkit-details-marker { display: none; }
.ix-faq summary::after { content: "+"; color: #1a73e8; font-weight: 800; font-size: 1.15rem; }
.ix-faq details[open] summary::after { content: "−"; }
.ix-faq p { color: #566274; font-size: 0.92rem; line-height: 1.7; margin: 0.65rem 0 0; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .ix-controls { grid-template-columns: 1fr; }
  .ix-item { grid-template-columns: 56px 1fr; }
  .ix-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .ix-tool { padding: 1.1rem; border-radius: 16px; margin-top: -1.75rem; }
  .ix-drop { padding: 1.85rem 1rem; }
}

.ix-sec { content-visibility: auto; contain-intrinsic-size: auto 500px; }
@media (pointer: coarse) {
  .ix-card, .ix-chip { min-height: 44px; }
}
