/* PornSentry's pages: sign-in, account, people, and the dashboard around the image viewer (dark.css). Black and white
   with yellow for what can be clicked, as the dashboard has always been. */
:root {
    --bg: #000000;
    --panel: #141414;
    --panel-2: #1e1e1e;
    --line: #464646;
    --text: #ffffff;
    --muted: #a0a0a0;
    --accent: #ffff00;
    --accent-ink: #000000;
    --danger: #ff6b6b;
    --ok: #7ee787;
    --row-hover: #323232;
    --row-selected: #3232ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body.site { font-family: 'Segoe UI', Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.45; min-width: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- header */
header.top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
header.top .brand { display: flex; align-items: center; gap: 10px; font-family: 'Arial Black', Arial, sans-serif; font-size: 26px; color: var(--text); text-decoration: none; }
header.top .brand img { height: 36px; }
header.top .spacer { flex: 1; }
.usermenu { position: relative; }
.usermenu > button { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 18px; padding: 6px 14px; cursor: pointer; font: inherit; }
.usermenu .menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 240px; padding: 8px 0; z-index: 50; }
.usermenu .menu .who { padding: 6px 16px 10px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.usermenu .menu .who b { color: var(--text); display: block; font-size: 15px; }
.usermenu .menu a, .usermenu .menu button { display: block; width: 100%; text-align: left; padding: 8px 16px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--row-hover); text-decoration: none; }

/* ---------------------------------------------------------------- cards and forms */
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
.wrap-levels { padding-bottom: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin: 0 0 20px; }
.card-narrow { max-width: 420px; margin: 40px auto; }
.card h1 { font-size: 22px; margin: 0 0 4px; }
.card h2 { font-size: 18px; margin: 0 0 12px; }
.card .sub { color: var(--muted); margin: 0 0 18px; }
.field { margin: 0 0 14px; }
.field label { display: block; margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field select {
    width: 100%; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.check { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; }
.check input { margin-top: 3px; }
.btn { display: inline-block; padding: 9px 18px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn-primary:hover { background: #ffff66; }
.btn-danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn-block { display: block; width: 100%; }
.btn-small { padding: 4px 10px; font-size: 13px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.msg { display: none; padding: 10px 12px; border-radius: 6px; margin: 0 0 14px; }
.msg.show { display: block; }
.msg-error { background: rgba(255, 107, 107, 0.12); border: 1px solid var(--danger); color: #ffd0d0; }
.msg-ok { background: rgba(126, 231, 135, 0.12); border: 1px solid var(--ok); color: #d7ffdc; }
.sep { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 18px 0; font-size: 13px; }
.sep::before, .sep::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.foot-note { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- tables */
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-weight: 600; background: #323232; padding: 8px 10px; }
table.list td { padding: 8px 10px; border-top: 1px solid #262626; vertical-align: top; }
table.list td.num, table.list th.num { text-align: right; }
table.list tr.pick { cursor: pointer; }
table.list tr.pick:hover td { background: var(--row-hover); }
table.list tr.selected td { background: var(--row-selected); font-weight: 600; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; border: 1px solid var(--line); color: var(--muted); margin: 1px 2px 1px 0; }
.pill-on { border-color: var(--ok); color: var(--ok); }
.pill-off { border-color: var(--danger); color: var(--danger); }
.pill-wait { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------------- dashboard */
.crumbs { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.crumbs a { color: var(--accent); }
.level { margin: 0 0 22px; }
.level h2 { font-size: 18px; margin: 0 0 8px; }
/* A drive's files: the whole width of the window, as many a line as the reviewer picks (--per-row, set by the page). */
.files-level { margin: 0; padding: 0 6px 60px; }
.files-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin: 0 0 10px; padding: 0 4px; }
.files-bar h2 { margin: 0; }
.files-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.opt { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.opt input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.opt select, .opt input[type=number] { padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.opt input[type=number] { width: 4.5em; }
.opt select:focus, .opt input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tiles { display: grid; grid-template-columns: repeat(var(--per-row, 4), minmax(0, 1fr)); gap: 6px; }
.tile { position: relative; aspect-ratio: 1 / 1; background: #111; overflow: hidden; cursor: pointer; border-radius: 4px; }
/* contain, not cover: a reviewer needs to see the whole image, not its middle. */
.tile img, .tile video { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile .badge { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,0.7); color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.tile .copies { position: absolute; right: 6px; top: 6px; background: rgba(0,0,0,0.7); color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.tile .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; color: rgba(255,255,255,0.85); text-shadow: 0 0 12px #000; pointer-events: none; }
.tiles-more { text-align: center; color: var(--muted); padding: 16px; }
#image-pop-up video#enlarged-image { width: 100%; height: 100%; object-fit: contain; background: #000; }
/* A whole video's own controls run along the bottom of the viewer: the layer that catches the viewer's taps and clicks,
   and its buttons, stop above them so the controls can be used. */
#image-pop-up.has-video #img-pop-control { height: auto; bottom: 72px; }
/* Two lines (where the file was; its scores and dates), wrapping on a narrow screen rather than cut short, so the dates
   are never lost off the end. */
#image-pop-up .caption { position: absolute; left: 0; right: 0; top: 0; padding: 8px 160px 8px 16px; background: rgba(0,0,0,0.45); color: #ddd; font-size: 13px; line-height: 1.5; z-index: 1003; pointer-events: none; white-space: pre-line; overflow-wrap: anywhere; }
.nostore { padding: 24px; text-align: center; color: var(--muted); }

@media (max-width: 700px) {
    header.top .brand { font-size: 20px; }
    table.list th.hide-sm, table.list td.hide-sm { display: none; }
}
