/* Drop: basis. Kleuren als tokens, lettertypen, knoppen, velden en kleine onderdelen die app en deelpagina delen. */
@font-face { font-family: "Gothic"; src: url("/fonts/URWGothic-Demi.otf") format("opentype"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Gothic"; src: url("/fonts/URWGothic-Book.otf") format("opentype"); font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Nimbus"; src: url("/fonts/NimbusSans-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nimbus"; src: url("/fonts/NimbusSans-Bold.otf") format("opentype"); font-weight: 600 800; font-display: swap; }

:root {
  --ink: #0F1530; --ink-2: #4A5372; --ink-3: #6F7996;
  --bg: #F4F5F9; --surface: #FFFFFF; --surface-2: #F8F9FC; --line: #E3E6EF; --line-2: #CFD5E5;
  --accent: #2F4BFF; --accent-2: #1F38E3; --accent-wash: #E9EDFF; --accent-ink: #FFFFFF; --accent-text: #2339E0;
  --side: #0F1530; --side-2: #19224A; --side-ink: #C9D0EC; --side-ink-2: #8F9AC4; --side-accent: #93A1FF;
  --ok: #0A7F57; --ok-wash: #E2F5EC; --warn: #8F5B00; --warn-wash: #FFF0D1; --bad: #C42A41; --bad-wash: #FDE8EB;
  --pop: 0 14px 44px rgba(15, 21, 48, .2), 0 2px 8px rgba(15, 21, 48, .08);
  --focus: #2F4BFF;
  --r-s: 6px; --r-m: 10px; --r-l: 16px;
  --f-display: "Gothic", "URW Gothic", "Avant Garde", "Century Gothic", "Trebuchet MS", sans-serif;
  --f-ui: "Nimbus", "Nimbus Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --t-folder: #2F4BFF; --t-image: #0B8794; --t-video: #CC3550; --t-audio: #7144CF; --t-pdf: #CC3B28; --t-doc: #2460D6; --t-text: #566080; --t-sheet: #0F7F4C; --t-slides: #C96412; --t-archive: #98690F; --t-code: #44507A; --t-app: #5F4FC4; --t-font: #8A3F9B; --t-other: #566080;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E8EBFA; --ink-2: #AEB7D8; --ink-3: #8691B8; --bg: #0A0E22; --surface: #111733; --surface-2: #0E1330; --line: #212A52; --line-2: #313D6E;
    --accent: #7587FF; --accent-2: #93A1FF; --accent-wash: #1B2557; --accent-ink: #090D22; --accent-text: #A3AFFF;
    --side: #070A18; --side-2: #121A3A; --side-ink: #B9C2E6; --side-ink-2: #7F8AB6;
    --ok: #46D6A0; --ok-wash: #0E2B23; --warn: #F0B04A; --warn-wash: #2D2310; --bad: #FF7088; --bad-wash: #331421;
    --pop: 0 14px 44px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .35); --focus: #93A1FF;
    --t-folder: #8C9BFF; --t-image: #48CBDB; --t-video: #FF7C93; --t-audio: #B297FF; --t-pdf: #FF8A78; --t-doc: #7DAAFF; --t-text: #A5AED0; --t-sheet: #4FD79B; --t-slides: #FFAE6B; --t-archive: #E8BC62; --t-code: #9BA6CB; --t-app: #AFA5FF; --t-font: #D699E8; --t-other: #A5AED0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #E8EBFA; --ink-2: #AEB7D8; --ink-3: #8691B8; --bg: #0A0E22; --surface: #111733; --surface-2: #0E1330; --line: #212A52; --line-2: #313D6E;
  --accent: #7587FF; --accent-2: #93A1FF; --accent-wash: #1B2557; --accent-ink: #090D22; --accent-text: #A3AFFF;
  --side: #070A18; --side-2: #121A3A; --side-ink: #B9C2E6; --side-ink-2: #7F8AB6;
  --ok: #46D6A0; --ok-wash: #0E2B23; --warn: #F0B04A; --warn-wash: #2D2310; --bad: #FF7088; --bad-wash: #331421;
  --pop: 0 14px 44px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .35); --focus: #93A1FF;
  --t-folder: #8C9BFF; --t-image: #48CBDB; --t-video: #FF7C93; --t-audio: #B297FF; --t-pdf: #FF8A78; --t-doc: #7DAAFF; --t-text: #A5AED0; --t-sheet: #4FD79B; --t-slides: #FFAE6B; --t-archive: #E8BC62; --t-code: #9BA6CB; --t-app: #AFA5FF; --t-font: #D699E8; --t-other: #A5AED0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14.5px/1.45 var(--f-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; min-height: 100dvh; }
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.005em; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled, .btn:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.danger-text { color: var(--bad) !important; }
.i { flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }
.i-fill path { stroke: none; }

/* knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r-m); border: 1px solid transparent; background: transparent; font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap; transition: background .12s, border-color .12s, transform .06s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); }
.btn-quiet { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.btn-quiet:hover:not(:disabled) { background: var(--surface-2); border-color: color-mix(in srgb, var(--ink) 30%, var(--line-2)); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(.92); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 12px; }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--accent-ink) 35%, transparent); border-top-color: var(--accent-ink); animation: spin .7s linear infinite; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); padding: 0; transition: background .12s, color .12s; flex: none; }
.icon-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.icon-btn:disabled { opacity: .35; }

/* velden */
.lbl { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 400; transition: border-color .12s, box-shadow .12s; }
select.field { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a84a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field::placeholder { color: var(--ink-3); opacity: .85; }
.field:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line-2)); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent); }
.field[readonly] { background: var(--surface-2); }
.field-wrap { position: relative; display: block; }
.field-wrap .field { padding-right: 46px; }
.field-eye { position: absolute; right: 4px; top: 4px; height: 36px; }
.code-field { letter-spacing: .28em; font-variant-numeric: tabular-nums; text-align: center; font-size: 20px; }
.form-err { color: var(--bad); font-size: 13.5px; font-weight: 600; }
.form-msg.ok { color: var(--ok); font-size: 13.5px; font-weight: 600; }
.form-err[hidden], .form-msg[hidden] { display: none; }
.stack { display: grid; gap: 10px; justify-items: start; width: 100%; }
.stack > .field { max-width: 360px; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip-ok { background: var(--ok-wash); color: var(--ok); border-color: transparent; }
.chip-warn { background: var(--warn-wash); color: var(--warn); border-color: transparent; }
.chip-bad { background: var(--bad-wash); color: var(--bad); border-color: transparent; }

/* tegels per bestandssoort */
.tile { --tc: var(--t-other); display: inline-grid; place-items: center; flex: none; color: var(--tc); background: color-mix(in srgb, var(--tc) 13%, var(--surface)); overflow: hidden; }
.tile-s { width: 28px; height: 28px; border-radius: 8px; }
.tile-m { width: 38px; height: 38px; border-radius: 10px; }
.tile-l { width: 68px; height: 68px; border-radius: 18px; }
.tile-img { background: var(--line); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-folder { --tc: var(--t-folder); } .t-image { --tc: var(--t-image); } .t-video { --tc: var(--t-video); } .t-audio { --tc: var(--t-audio); } .t-pdf { --tc: var(--t-pdf); } .t-doc { --tc: var(--t-doc); } .t-text { --tc: var(--t-text); } .t-sheet { --tc: var(--t-sheet); } .t-slides { --tc: var(--t-slides); } .t-archive { --tc: var(--t-archive); } .t-code { --tc: var(--t-code); } .t-app { --tc: var(--t-app); } .t-font { --tc: var(--t-font); } .t-other { --tc: var(--t-other); }
.t-folder .i { fill: color-mix(in srgb, var(--tc) 22%, transparent); }

/* wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 7px; color: inherit; font-family: var(--f-display); font-weight: 600; font-size: 27px; letter-spacing: -.02em; line-height: 1; }
.wordmark .wm-drop { color: var(--side-accent); }
.wordmark .wm-text { transform: translateY(-1px); }
.wm-xl { font-size: 46px; gap: 11px; } .wm-xl .i { width: 40px; height: 40px; }

/* rimpels: het terugkerende motief van Drop */
.ripples { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ripples i { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ripple 2.7s cubic-bezier(.2, .6, .3, 1) infinite; }
.ripples i:nth-child(2) { animation-delay: .9s; } .ripples i:nth-child(3) { animation-delay: 1.8s; } .ripples i:nth-child(4) { animation-delay: 2.7s; }
@keyframes ripple { 0% { transform: scale(.12); opacity: .75; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--accent); animation: spin .7s linear infinite; }

/* meldingen */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 300; width: max-content; max-width: calc(100vw - 32px); justify-items: center; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: var(--pop); animation: toast-in .2s ease-out; max-width: 100%; }
.toast.out { opacity: 0; transform: translateY(6px); transition: .2s; }
.toast-error { background: var(--bad); color: #fff; } .toast-ok .i { color: #46D6A0; }
.toast-act { border: 0; background: transparent; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 4px 6px; margin-left: 4px; border-radius: 6px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* dialogen */
.scrim { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(9, 13, 32, .55); animation: fade .14s ease-out; overflow: auto; }
.scrim.out { opacity: 0; transition: opacity .14s; }
.dlg { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--pop); display: flex; flex-direction: column; max-height: calc(100dvh - 32px); animation: pop .16s ease-out; outline: none; }
.dlg-wide { width: min(620px, 100%); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 14px 6px 24px; }
.dlg-title { font-size: 21px; line-height: 1.2; }
.dlg-body { padding: 8px 24px 22px; overflow: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 20px; border-top: 1px solid var(--line); }
.dlg-text { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.dlg-row { display: flex; justify-content: flex-end; margin-top: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }

/* menu */
.menu { position: fixed; z-index: 250; min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--pop); animation: fade .1s ease-out; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; text-align: left; font-size: 14px; color: var(--ink); }
.menu-item:hover:not(:disabled), .menu-item:focus-visible { background: var(--accent-wash); outline: none; }
.menu-item.danger { color: var(--bad); }
.menu-item .i { color: var(--ink-2); } .menu-item.danger .i { color: var(--bad); }
.menu-gap { width: 18px; flex: none; }
.menu-label { flex: 1; white-space: nowrap; }
.menu-hint { color: var(--ink-3); font-size: 12px; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* delen */
.share-item { display: flex; gap: 14px; align-items: center; padding: 4px 0 16px; }
.share-name { font-weight: 700; font-size: 16px; word-break: break-word; }
.sub-title { font-size: 14px; margin: 18px 0 10px; font-family: var(--f-ui); font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
.link-row { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-bottom: 8px; }
.link-row.dead { opacity: .7; }
.link-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.link-field { flex: 1 1 200px; height: 38px; font-size: 13.5px; min-width: 0; }
.link-meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr 1fr; }
.form-grid .field { height: 42px; font-size: 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } .ripples i { display: none; } }
