/* =====================================================================================
   FILE BARU (11 Okt 2026): gaya bersama TOOLS BUATAN PAHAMWEB (alat/*.php + kartu di tools.php)
   Memakai variabel tema --sol-* (gelap bawaan, terang lewat html[data-theme="light"]).
===================================================================================== */
.tl-page { max-width: 1040px; padding-top: 1.75rem; padding-bottom: 3rem; }
@media (max-width: 575.98px) { .tl-page { --bs-gutter-x: 2.25rem; padding-top: 1.25rem; } }

.tl-crumb { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .85rem; font-weight: 700; color: var(--sol-text-muted); margin-bottom: 1.25rem; }
.tl-crumb a { color: var(--sol-text-muted); text-decoration: none; }
.tl-crumb a:hover { color: var(--sol-accent); }
.tl-crumb [aria-current] { color: var(--sol-accent); }

.tl-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.tl-head-ico { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--sol-accent-soft); color: var(--sol-accent); }
.tl-head h1 { font-size: 2rem; font-weight: 800; color: var(--sol-text-bright); margin: 0 0 .4rem; letter-spacing: -.5px; line-height: 1.2; }
.tl-lead { color: var(--sol-text-main); margin: 0 0 .75rem; max-width: 46em; line-height: 1.6; }
.tl-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tl-badges li { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: var(--sol-bg-card); border: 1px solid var(--sol-border-soft); color: var(--sol-text-main); }
.tl-badges li svg { color: var(--sol-success); }
@media (max-width: 575.98px) { .tl-head-ico { display: none; } .tl-head h1 { font-size: 1.6rem; } }

/* Panel tool - DIUBAH (11 Okt 2026): ukuran & gaya disamakan dengan kartu formulir situs (pesan.php / contact.php) */
.tl-card { background: var(--sol-bg-card); border: 1px solid var(--sol-border-soft); border-radius: 20px; padding: clamp(1.1rem, 4vw, 2rem); box-shadow: 0 20px 50px var(--sol-shadow-color); }
.tl-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .tl-grid { gap: 2rem; } .tl-grid.is-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tl-grid.is-side { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }

/* Label, petunjuk, sub-judul (= .form-label, .so-hint, .so-sec h2 di formulir situs) */
.tl-label { display: block; font-size: .85rem; font-weight: 700; color: var(--sol-text-bright); margin-bottom: .45rem; }
.tl-hint { display: block; font-size: .78rem; color: var(--sol-text-muted); margin-top: .35rem; line-height: 1.5; }
.tl-sub { font-size: .78rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--sol-text-muted); margin: 0 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--sol-border-soft); }
.tl-field { margin-bottom: 1.1rem; }

/* Kolom isian (= .so-form .form-control): 16 px agar iPhone tidak memperbesar layar saat kolom diketuk */
.tl-input, .tl-select, .tl-textarea {
    display: block; width: 100%; min-width: 0; min-height: 50px; font: inherit; font-size: 1rem; line-height: 1.5; color: var(--sol-text-bright);
    background: var(--sol-bg-main); border: 1px solid var(--sol-border-soft); border-radius: .6rem; padding: .7rem .95rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075); transition: border-color .2s ease, box-shadow .2s ease; -webkit-appearance: none; appearance: none;
}
textarea.tl-input { resize: vertical; }
.tl-input::placeholder, .tl-textarea::placeholder { color: var(--sol-placeholder, var(--sol-text-muted)); opacity: .8; }
.tl-input:focus, .tl-select:focus, .tl-textarea:focus { outline: none; border-color: var(--sol-accent); box-shadow: 0 0 0 4px var(--sol-accent-soft); }
.tl-input[readonly], .tl-textarea[readonly] { background: color-mix(in srgb, var(--sol-bg-main) 70%, var(--sol-bg-card)); }
.tl-textarea { min-height: 220px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .9rem; line-height: 1.6; tab-size: 2; }
.tl-mono.tl-input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .3px; }
.tl-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.tl-row > .tl-field { flex: 1 1 180px; margin-bottom: 0; }
.tl-row > .tl-input { flex: 1 1 0; width: auto; }
input[type="color"].tl-color { width: 50px; height: 50px; padding: 4px; border-radius: .6rem; border: 1px solid var(--sol-border-soft); background: var(--sol-bg-main); cursor: pointer; flex: 0 0 auto; box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075); }
input[type="color"].tl-color::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"].tl-color::-webkit-color-swatch { border: 0; border-radius: .4rem; }
input[type="range"] { accent-color: var(--sol-accent); width: 100%; height: 28px; }
.tl-check { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--sol-text-main); cursor: pointer; min-height: 44px; }
.tl-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--sol-accent); flex: 0 0 auto; }

/* Combobox: komponen bersama situs (assets/css/pw-select.css). Varian pil kecil di baris tombol. */
.tl-card .pw-sel.is-field { margin: 0; }
.tl-row .pw-sel:not(.is-field) .pw-sel-btn { min-width: 9rem; background: var(--sol-bg-main); }

/* Tombol (= .btn rounded-pill fw-bold situs), minimal 44 px agar nyaman disentuh */
.tl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: inherit; font-size: .95rem; font-weight: 700;
    min-height: 44px; padding: .55rem 1.3rem; border-radius: 50px; border: 1px solid var(--sol-accent); cursor: pointer; text-decoration: none; white-space: nowrap;
    background: var(--sol-accent); color: #fff; -webkit-tap-highlight-color: transparent;
    transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tl-btn:hover { background: var(--sol-accent-hover, var(--sol-accent)); border-color: var(--sol-accent-hover, var(--sol-accent)); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--sol-accent) 30%, transparent); }
.tl-btn:active { transform: scale(.96); }
.tl-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.tl-btn.is-ghost { background: var(--sol-bg-card); color: var(--sol-text-bright); border-color: var(--sol-border-soft); }
.tl-btn.is-ghost:hover { border-color: var(--sol-accent); color: var(--sol-accent); background: var(--sol-accent-soft); box-shadow: none; }
.tl-btn.is-sm { min-height: 38px; padding: .35rem .95rem; font-size: .85rem; }
.tl-btn.is-done, .tl-btn.is-done:hover { background: var(--sol-success); border-color: var(--sol-success); color: #fff; }

/* Pilihan bertab (= pil pilihan .so-radio di formulir situs) */
.tl-seg { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tl-seg button {
    font: inherit; font-size: .92rem; font-weight: 700; min-height: 44px; padding: .45rem 1.1rem; border-radius: 50px; cursor: pointer;
    border: 1px solid var(--sol-border-soft); background: var(--sol-bg-main); color: var(--sol-text-main); -webkit-tap-highlight-color: transparent;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.tl-seg button:hover { border-color: var(--sol-accent); }
.tl-seg button[aria-selected="true"], .tl-seg button.is-on { border-color: var(--sol-accent); background: var(--sol-accent-soft); color: var(--sol-text-bright); box-shadow: 0 0 0 3px var(--sol-accent-soft); }
.tl-seg button:focus-visible, .tl-btn:focus-visible { outline: 2px solid var(--sol-accent); outline-offset: 2px; }

/* HP: pilihan tab sama lebar, deretan tombol aksi melebar penuh */
@media (max-width: 575.98px) {
    .tl-seg button { flex: 1 1 0; padding-left: .6rem; padding-right: .6rem; }
    .tl-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .tl-actions > * { width: 100%; }
    .tl-actions > :only-child, .tl-actions > .is-wide { grid-column: 1 / -1; }
    .tl-actions .pw-sel, .tl-actions .pw-sel-btn { width: 100%; min-width: 0; }
    .tl-actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .tl-actions .tl-btn.is-sm { min-height: 44px; font-size: .95rem; }
    .tl-textarea { min-height: 170px; }
}
/* Area jatuhkan file */
.tl-drop {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center;
    padding: 2rem 1rem; border: 2px dashed var(--sol-border-soft); border-radius: 1rem; background: var(--sol-bg-main);
    color: var(--sol-text-main); cursor: pointer; transition: border-color .2s ease, background-color .2s ease;
}
.tl-drop:hover, .tl-drop.is-over { border-color: var(--sol-accent); background: var(--sol-accent-soft); }
.tl-drop strong { color: var(--sol-text-bright); font-size: 1.02rem; }
.tl-drop small { color: var(--sol-text-muted); }
.tl-drop svg { color: var(--sol-accent); }

.tl-note { font-size: .82rem; color: var(--sol-text-main); padding: .65rem .85rem; border-radius: .75rem; background: var(--sol-bg-main); border-left: 3px solid var(--sol-accent); }
.tl-note.is-warn { border-left-color: var(--sol-warning); }
.tl-note.is-bad { border-left-color: var(--sol-error); }
.tl-ok { color: var(--sol-success); font-weight: 800; }
.tl-bad { color: var(--sol-error); font-weight: 800; }
.tl-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* Bagian info di bawah tool */
.tl-info { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .tl-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tl-sec { margin-top: 2.5rem; }
.tl-info .tl-sec { margin-top: 0; }
.tl-sec h2 { font-size: 1.25rem; font-weight: 800; color: var(--sol-text-bright); margin-bottom: 1rem; }
.tl-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.tl-steps li { counter-increment: s; position: relative; padding: .1rem 0 .1rem 2.4rem; color: var(--sol-text-main); line-height: 1.55; }
.tl-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; background: var(--sol-accent-soft); color: var(--sol-accent); }
.tl-faq details { border: 1px solid var(--sol-border-soft); border-radius: .85rem; background: var(--sol-bg-card); margin-bottom: .5rem; }
.tl-faq summary { cursor: pointer; padding: .8rem 1rem; font-weight: 700; color: var(--sol-text-bright); list-style: none; }
.tl-faq summary::-webkit-details-marker { display: none; }
.tl-faq summary::after { content: "+"; float: right; color: var(--sol-accent); font-weight: 800; }
.tl-faq details[open] summary::after { content: "\2212"; }
.tl-faq p { margin: 0; padding: 0 1rem .9rem; color: var(--sol-text-main); font-size: .92rem; line-height: 1.6; }

/* Kartu daftar tools (juga dipakai tools.php) */
.tl-tiles { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tl-tile {
    display: flex; align-items: center; gap: .85rem; padding: .95rem 1rem; border-radius: 1rem; text-decoration: none;
    background: var(--sol-bg-card); border: 1px solid var(--sol-border-soft); color: var(--sol-text-main);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), border-color .25s ease, box-shadow .25s ease;
}
.tl-tile:hover { transform: translateY(-3px); border-color: var(--sol-accent); box-shadow: 0 10px 22px var(--sol-shadow-color); color: var(--sol-text-main); }
.tl-tile-ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--sol-accent-soft); color: var(--sol-accent); }
.tl-tile-body { min-width: 0; display: flex; flex-direction: column; }
.tl-tile-group { font-size: .66rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--sol-accent); }
.tl-tile strong { color: var(--sol-text-bright); font-size: .95rem; line-height: 1.3; }
.tl-tile small { color: var(--sol-text-muted); font-size: .78rem; line-height: 1.4; margin-top: .15rem; }
.tl-tile-go { margin-left: auto; color: var(--sol-accent); flex-shrink: 0; transition: transform .25s ease; }
.tl-tile:hover .tl-tile-go { transform: translateX(3px); }
.tl-more-all { margin: 1rem 0 0; font-size: .9rem; font-weight: 700; }
.tl-more-all a { color: var(--sol-accent); text-decoration: none; }

.tl-cta { display: grid; gap: .75rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .tl-cta { grid-template-columns: 1fr 1fr; } }
.tl-cta a { display: flex; gap: .85rem; align-items: center; padding: 1rem 1.1rem; border-radius: 1rem; text-decoration: none; background: var(--sol-accent-soft); border: 1px solid var(--sol-border-soft); color: var(--sol-text-main); }
.tl-cta a > span:first-child { color: var(--sol-accent); display: inline-flex; }
.tl-cta strong { display: block; color: var(--sol-text-bright); }
.tl-cta small { display: block; color: var(--sol-text-muted); font-size: .8rem; }
.tl-cta a:hover { border-color: var(--sol-accent); }

/* Bagian "Tools Buatan PahamWeb" di tools.php */
.tl-home { margin-bottom: 2.5rem; }
.tl-home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.tl-home-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--sol-text-bright); display: flex; align-items: center; gap: .5rem; }
.tl-home-head p { margin: 0; font-size: .85rem; color: var(--sol-text-muted); }
@media (min-width: 992px) { .tl-home .tl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
    .tl-home .tl-tiles { gap: .5rem; }
    .tl-home .tl-tile { padding: .7rem .85rem; }
    .tl-home .tl-tile small, .tl-home .tl-tile-group { display: none; }
    .tl-home .tl-tile-ico { flex-basis: 38px; width: 38px; height: 38px; border-radius: 11px; }
}
.tl-home-new { font-size: .62rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: .2rem .5rem; border-radius: 999px; background: var(--sol-success); color: #fff; }

/* Notifikasi kecil */
.tl-toast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 3000; transform: translate(-50%, 150%); opacity: 0;
    background: var(--sol-bg-card); color: var(--sol-text-bright); border: 1px solid var(--sol-success); border-radius: 999px; padding: .55rem 1.1rem;
    font-weight: 700; font-size: .88rem; box-shadow: 0 10px 25px var(--sol-shadow-color); transition: transform .35s ease, opacity .25s ease; pointer-events: none; }
.tl-toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) { .tl-tile, .tl-btn, .tl-toast { transition: none; } }

/* Combobox di dalam baris (pembungkus .pw-sel dari pw-select.js) */
.tl-row > .pw-sel.is-field { flex: 1 1 160px; width: auto; }
.tl-row > .pw-sel:not(.is-field) { flex: 0 0 auto; }
