/* ══ Premium date / time picker (public/js/pickers.js) ══════════════ */
.nxdt { position: relative; width: 100%; }
.nxdt-trigger {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    cursor: pointer; font-family: inherit; min-height: 40px;
}
.nxdt-ic { display: flex; color: var(--accent); flex-shrink: 0; }
.nxdt-ic svg { width: 16px; height: 16px; }
.nxdt-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.nxdt.has-value .nxdt-text { color: var(--text); font-weight: 500; }
.nxdt-clear { display: none; color: var(--muted); padding: 3px; border-radius: 6px; line-height: 0; }
.nxdt-clear svg { width: 12px; height: 12px; }
.nxdt-clear:hover { background: var(--surface-2); color: var(--danger); }
.nxdt.has-value .nxdt-clear { display: block; }
.nxdt.open .nxdt-trigger { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.14); }
.nxdt.invalid .nxdt-trigger { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.nxdt-trigger:focus:not(:focus-visible) { outline: none; }

.nxdt-pop {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 400;
    width: 296px; padding: 14px; background: var(--surface, #fff);
    border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 18px 50px -12px rgba(15,23,42,.28), 0 4px 12px rgba(15,23,42,.06);
    opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top left;
    pointer-events: none; visibility: hidden;
    transition: opacity .16s ease, transform .18s cubic-bezier(.2,.8,.2,1), visibility 0s .18s;
}
.nxdt-pop.up { top: auto; bottom: calc(100% + 8px); transform-origin: bottom left; }
.nxdt-pop.right { left: auto; right: 0; }
.nxdt.open .nxdt-pop { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.nxdt--time .nxdt-pop { width: 236px; }

.nxdt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.nxdt-title { border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--text); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.nxdt-title:hover { background: var(--surface-2); color: var(--accent); }
.nxdt-nav { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface, #fff); border-radius: 9px; cursor: pointer; color: var(--muted); transition: all .14s; }
.nxdt-nav svg { width: 14px; height: 14px; }
.nxdt-nav:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }
.nxdt-dow, .nxdt-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.nxdt-dow span { text-align: center; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 4px 0 6px; }
.nxdt-d { aspect-ratio: 1; border: 0; background: none; border-radius: 9px; font-family: inherit; font-size: 13px; color: var(--text); cursor: pointer; position: relative; transition: background .12s, color .12s; }
.nxdt-d:hover:not(:disabled) { background: var(--accent-light); color: var(--accent); }
.nxdt-d.today { font-weight: 700; color: var(--accent); }
.nxdt-d.today::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nxdt-d.sel { background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 4px 12px -3px rgba(99,102,241,.6); }
.nxdt-d.sel::after { background: #fff; }
.nxdt-d:disabled { opacity: .3; cursor: not-allowed; }
.nxdt-years { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nxdt-y { border: 1px solid var(--border); background: none; border-radius: 10px; padding: 10px 0; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
.nxdt-y:hover { border-color: var(--accent); color: var(--accent); }
.nxdt-y.today { color: var(--accent); }
.nxdt-y.sel { background: var(--accent); border-color: var(--accent); color: #fff; }

.nxdt-time { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 10px; background: var(--surface-2); border-radius: 12px; color: var(--muted); }
.nxdt--time .nxdt-time { margin-top: 0; }
.nxdt-time > svg { width: 16px; height: 16px; margin-right: 4px; }
.nxdt-time b { font-size: 18px; color: var(--text); }
.nxdt-spin { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nxdt-spin button { width: 44px; height: 20px; border: 0; background: none; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; border-radius: 6px; }
.nxdt-spin button:hover { background: var(--surface, #fff); color: var(--accent); }
.nxdt-spin input { width: 48px; height: 36px; text-align: center; border: 1px solid var(--border); border-radius: 9px; background: var(--surface, #fff); font-family: var(--mono, monospace); font-size: 16px; font-weight: 600; color: var(--text); outline: none; }
.nxdt-spin input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.14); }

.nxdt-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.nxdt-foot > span { display: flex; gap: 6px; align-items: center; }
.nxdt-link { border: 0; background: none; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent); cursor: pointer; padding: 6px 8px; border-radius: 7px; }
.nxdt-link:hover { background: var(--accent-light); }
.nxdt-link.muted { color: var(--muted); }
.nxdt-link.muted:hover { background: var(--surface-2); color: var(--danger); }
.nxdt-done { border: 0; background: var(--accent); color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.nxdt-done:hover { background: var(--accent-hover, #4f46e5); }
.nxdt-pop button:focus:not(:focus-visible) { outline: none; }
@media (max-width: 480px) { .nxdt-pop { width: min(296px, calc(100vw - 32px)); } }

/* ══ Premium drag & drop upload ════════════════════════════════════ */
.nxdz {
    position: relative; display: block; width: 100%; cursor: pointer;
    border: 1.5px dashed var(--border); border-radius: 14px;
    background: var(--surface-2); padding: 22px 18px; text-align: center;
    transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}
.nxdz:hover { border-color: var(--accent); background: var(--accent-light); }
.nxdz.drag { border-color: var(--accent); border-style: solid; background: var(--accent-light); box-shadow: 0 0 0 4px rgba(99,102,241,.12); transform: scale(1.01); }
.nxdz.invalid { border-color: var(--danger); background: var(--danger-bg); }
.nxdz > input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; left: 50%; bottom: 0; pointer-events: none; }
.nxdz-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nxdz-ic { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 13px; background: var(--surface, #fff); color: var(--accent); box-shadow: 0 2px 8px rgba(15,23,42,.06); margin-bottom: 4px; transition: transform .2s; }
.nxdz-ic svg { width: 22px; height: 22px; }
.nxdz:hover .nxdz-ic, .nxdz.drag .nxdz-ic { transform: translateY(-3px); }
.nxdz-title { font-size: 13.5px; color: var(--muted); }
.nxdz-title strong { color: var(--accent); font-weight: 600; }
.nxdz-hint { font-size: 12px; color: var(--muted); opacity: .8; }
.nxdz.has-file { padding: 10px; border-style: solid; background: var(--surface, #fff); text-align: left; }
.nxdz.has-file .nxdz-empty { display: none; }
.nxdz-files { display: flex; flex-direction: column; gap: 8px; }
.nxdz-file { display: flex; align-items: center; gap: 12px; padding: 6px; animation: nxdzIn .22s ease; }
@keyframes nxdzIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.nxdz-thumb { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nxdz-thumb svg { width: 20px; height: 20px; }
.nxdz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nxdz-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nxdz-name { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nxdz-size { font-size: 12px; color: #16a34a; }
.nxdz-remove { width: 30px; height: 30px; flex-shrink: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nxdz-remove svg { width: 14px; height: 14px; }
.nxdz-remove:hover { background: var(--danger-bg); color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .nxdt-pop, .nxdz, .nxdz-ic { transition: none; } }
