/* Additions for the PDF, image, text, audio, everyday and seasonal tools. Loaded after style.css. */
:root {
  --sky: #0369a1;    --sky-soft: #e0f0fa;
  --rose: #be123c;   --rose-soft: #fde4ea;
  --indigo: #4338ca; --indigo-soft: #e6e6fb;
  --green: #15803d;  --green-soft: #def3e4;
  --cyan: #0e7490;   --cyan-soft: #dcf2f6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky: #7dd3fc; --sky-soft: #14293a; --rose: #fb7185; --rose-soft: #3b1a22; --indigo: #a5b4fc; --indigo-soft: #24264a;
    --green: #4ade80; --green-soft: #15301f; --cyan: #67e8f9; --cyan-soft: #123138;
  }
}
:root[data-theme="dark"] {
  --sky: #7dd3fc; --sky-soft: #14293a; --rose: #fb7185; --rose-soft: #3b1a22; --indigo: #a5b4fc; --indigo-soft: #24264a;
  --green: #4ade80; --green-soft: #15301f; --cyan: #67e8f9; --cyan-soft: #123138;
}
.c-sky { --c: var(--sky); --cs: var(--sky-soft); }
.c-rose { --c: var(--rose); --cs: var(--rose-soft); }
.c-indigo { --c: var(--indigo); --cs: var(--indigo-soft); }
.c-green { --c: var(--green); --cs: var(--green-soft); }
.c-cyan { --c: var(--cyan); --cs: var(--cyan-soft); }

/* category strip under the header (replaces the inline nav and the mobile menu) */
.main-nav.cat-strip, .nav-open .main-nav.cat-strip { display: block; position: static; padding: 0; border: 0; border-top: 1px solid var(--border); background: var(--surface); }
.cat-strip .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-top: 4px; padding-bottom: 4px; }
.cat-strip .wrap::-webkit-scrollbar { display: none; }
.cat-strip a { padding: 6px 12px; font-size: .9rem; }
.hdr .hdr-search { margin-left: auto; }
#menu-toggle { display: none !important; }
@media (max-width: 860px) { .hdr { gap: 10px; } }

/* file drop zone */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 28px 16px; border: 2px dashed var(--border); border-radius: 14px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--c, var(--accent)); background: var(--cs, var(--accent-soft)); }
.drop svg { width: 36px; height: 36px; color: var(--c, var(--accent)); }
.drop b { font-size: 1.05rem; }
.drop small { color: var(--muted); }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.privacy-note { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .85rem; margin: 10px 0 0; }
.privacy-note svg { width: 16px; height: 16px; flex: none; }

/* file lists */
.file-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.file-list .fl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-list .fl-meta { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.file-list .icon-btn { width: 32px; height: 32px; border: 0; }
.file-list .icon-btn svg { width: 18px; height: 18px; }
.file-list img, .file-list canvas { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: #fff; flex: none; }

/* page thumbnails (PDF tools) */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 14px; }
.thumb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 10px; background: var(--surface-2); border: 2px solid transparent; cursor: pointer; font: inherit; color: var(--text); }
.thumb.sel { border-color: var(--c, var(--accent)); background: var(--cs, var(--accent-soft)); }
.thumb canvas { max-width: 100%; height: auto; box-shadow: 0 1px 3px rgba(0,0,0,.2); background: #fff; transition: transform .2s; }
.thumb span { font-size: .8rem; color: var(--text-2); }

/* generic output + stats */
.out-box { width: 100%; min-height: 120px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; white-space: pre-wrap; word-break: break-word; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--c, var(--accent)); line-height: 1.2; }
.stat span { font-size: .85rem; color: var(--text-2); }
.err { color: var(--coral); min-height: 1.2em; margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.progress { width: 100%; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 10px 0; }
.progress > i { display: block; height: 100%; width: 0; background: var(--c, var(--accent)); transition: width .2s; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0; }
.check-row label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.checker { background-color: #fff; background-image: linear-gradient(45deg, #ddd 25%, transparent 25%), linear-gradient(-45deg, #ddd 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ddd 75%), linear-gradient(-45deg, transparent 75%, #ddd 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
input[type=range] { width: 100%; accent-color: var(--c, var(--accent)); }
