Files
2026-09-13 20:23:05 +01:00

313 lines
15 KiB
CSS

:root {
--bg: #0d0f22;
--bg-2: #151935;
--panel: #1b2044;
--ink: #eef0ff;
--muted: #9aa1d6;
--faint: #6a6fa0;
--line: rgba(255, 255, 255, 0.10);
--line-strong: rgba(255, 255, 255, 0.18);
--accent: #ffb020; /* "on air" signal amber — the one bold note */
--accent-ink: #2a1c00;
--indigo: #7b86ff;
--ok: #47d6a0;
--danger: #ff6b6b;
--radius: 14px;
--shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
--display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
--body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
font-family: var(--body);
color: var(--ink);
background:
radial-gradient(1200px 600px at 82% -8%, rgba(123, 134, 255, 0.16), transparent 60%),
radial-gradient(900px 500px at 6% 108%, rgba(255, 176, 32, 0.10), transparent 55%),
var(--bg);
-webkit-font-smoothing: antialiased;
line-height: 1.5;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 22px 72px; }
/* --- top bar --- */
.topbar {
display: flex; align-items: center; justify-content: space-between;
gap: 16px; padding-bottom: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; }
.lamp {
width: 12px; height: 12px; border-radius: 50%;
background: var(--faint); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}
.lamp.on { background: var(--accent); box-shadow: 0 0 14px 2px rgba(255, 176, 32, 0.7); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
.brand small { color: var(--muted); font-weight: 400; letter-spacing: 0.02em; }
.eyebrow {
font-family: var(--display); text-transform: uppercase; letter-spacing: 0.22em;
font-size: 11px; color: var(--accent); font-weight: 600;
}
/* --- buttons --- */
.btn {
font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--line-strong);
background: var(--panel); color: var(--ink); padding: 10px 16px; border-radius: 10px;
display: inline-flex; align-items: center; gap: 8px; transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { border-color: var(--indigo); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: rgba(255, 107, 107, 0.35); background: transparent; }
.btn.small { padding: 7px 11px; font-size: 13px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
/* --- cards --- */
.card {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--bg-2);
border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
/* --- upload dropzone --- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; align-items: stretch; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.02; }
.hero p.lede { color: var(--muted); font-size: 17px; margin: 16px 0 0; max-width: 42ch; }
.drop {
margin-top: 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
padding: 30px; text-align: center; background: rgba(255, 255, 255, 0.015);
transition: border-color .15s ease, background .15s ease;
}
.drop.drag { border-color: var(--accent); background: rgba(255, 176, 32, 0.06); }
.drop .big { font-family: var(--display); font-size: 18px; }
.drop .sub { color: var(--faint); font-size: 13px; margin-top: 6px; }
.field { margin-top: 14px; }
.field input[type="text"] {
width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong);
padding: 11px 13px; border-radius: 10px;
}
.progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 14px; display: none; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }
/* --- session list --- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 44px 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tile { padding: 16px; display: flex; gap: 14px; }
.tile .qr { width: 84px; height: 84px; border-radius: 10px; background: #fff; padding: 6px; flex: none; }
.tile .qr img { width: 100%; height: 100%; display: block; }
.tile .meta { min-width: 0; flex: 1; }
.tile .title { font-family: var(--display); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); text-transform: capitalize; }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.tag.ready .dot { background: var(--ok); } .tag.ready { color: var(--ok); }
.tag.processing .dot { background: var(--accent); }
.tag.error .dot { background: var(--danger); } .tag.error { color: var(--danger); }
.tile .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.empty { color: var(--faint); border: 1px dashed var(--line); border-radius: var(--radius); padding: 34px; text-align: center; }
.note { font-size: 13px; color: var(--faint); margin-top: 10px; }
.warn { color: var(--accent); }
/* --- stage (present + view) --- */
.stage-page { display: flex; flex-direction: column; height: 100dvh; }
.stage-bar {
display: flex; align-items: center; gap: 12px; padding: 10px 16px;
border-bottom: 1px solid var(--line); background: rgba(9, 10, 26, 0.6); backdrop-filter: blur(8px);
}
.stage-bar .spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted);
border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; }
.pill b { color: var(--ink); }
.stage {
flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
overflow: hidden; padding: 14px; min-height: 0;
}
.pdf-canvas, .stage video, .stage img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.stage video { background: #000; }
.stage .msg { color: var(--muted); text-align: center; max-width: 34ch; }
.stage .msg .spinner {
width: 34px; height: 34px; margin: 0 auto 16px; border-radius: 50%;
border: 3px solid var(--line-strong); border-top-color: var(--accent); animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* presenter control bar */
.controls { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pageind { font-family: var(--display); min-width: 74px; text-align: center; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.seg button { font: inherit; font-weight: 600; background: transparent; color: var(--muted); border: 0; padding: 8px 12px; cursor: pointer; }
.seg button.active { background: var(--accent); color: var(--accent-ink); }
/* audience follow banner */
.followbar {
position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
display: none; align-items: center; gap: 10px;
background: var(--panel); border: 1px solid var(--line-strong); border-radius: 99px;
padding: 8px 8px 8px 16px; box-shadow: var(--shadow); font-size: 14px;
}
.followbar.show { display: flex; }
/* tap-to-join overlay for synced video (autoplay policy) */
.tapjoin {
position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center;
gap: 14px; background: rgba(8, 9, 22, 0.82); backdrop-filter: blur(4px); text-align: center; padding: 24px;
}
.tapjoin.show { display: flex; }
.tapjoin .big { font-family: var(--display); font-size: 22px; }
/* --- present: QR sidebar --- */
.share { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: center; }
.ticket {
background: #fff; color: #111; border-radius: 16px; padding: 16px; text-align: center; box-shadow: var(--shadow);
}
.ticket img { width: 100%; display: block; border-radius: 8px; }
.ticket .cap { font-family: var(--display); font-weight: 600; margin-top: 10px; font-size: 14px; color: #333; }
.linkbox { display: flex; gap: 8px; margin-top: 12px; }
.linkbox input { flex: 1; font: inherit; background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
background: var(--ink); color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 600;
opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* modal (login + share) */
.overlay { position: fixed; inset: 0; background: rgba(6, 7, 18, 0.7); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 40; }
.overlay.show { display: flex; }
.modal { width: 100%; max-width: 420px; padding: 26px; }
.modal h2 { font-size: 22px; }
.modal p { color: var(--muted); margin: 8px 0 18px; }
@media (max-width: 820px) {
.hero { grid-template-columns: 1fr; }
.share { grid-template-columns: 1fr; }
.ticket { max-width: 300px; margin: 0 auto; }
}
/* ===================== v1.2 additions ===================== */
/* footer (every page except the login page) */
.app-footer {
text-align: center; color: var(--faint); font-size: 12.5px; letter-spacing: 0.01em;
padding: 22px 16px; border-top: 1px solid var(--line); margin-top: 40px;
}
.stage-page .app-footer { margin-top: 0; padding: 7px 16px; font-size: 11.5px; flex: none; }
/* login page */
.login-shell { min-height: 100dvh; display: grid; place-items: center; padding: 22px; }
.login-card { width: 100%; max-width: 400px; padding: 30px; }
.login-card .brand { justify-content: center; margin-bottom: 4px; font-size: 20px; }
.login-card h1 { font-size: 24px; text-align: center; margin-top: 14px; }
.login-card p.sub { color: var(--muted); text-align: center; margin: 6px 0 22px; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input {
width: 100%; font: inherit; color: var(--ink); background: var(--bg);
border: 1px solid var(--line-strong); padding: 11px 13px; border-radius: 10px;
}
.input:focus-visible { outline: 2px solid var(--indigo); outline-offset: 1px; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 4px; }
/* user menu in the top bar */
.usermenu { display: flex; align-items: center; gap: 12px; }
.usermenu .who { font-size: 13px; color: var(--muted); }
.usermenu .who b { color: var(--ink); }
.role-badge { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted); }
.role-badge.admin { color: var(--accent); border-color: rgba(255,176,32,0.4); }
/* tabs (management page) */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 18px 0 22px; }
.tabs button {
font: inherit; font-weight: 600; background: transparent; border: 0; color: var(--muted);
padding: 12px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
/* tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table th { color: var(--faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.table td .row { display: flex; gap: 6px; flex-wrap: wrap; }
.mono { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
/* forms grid */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid2 .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.panel-pad { padding: 22px; }
.hint { color: var(--faint); font-size: 13px; margin: 4px 0 0; }
/* log stream */
.logs { font-size: 13px; }
.log-line { display: grid; grid-template-columns: 150px 80px 130px 1fr; gap: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); align-items: baseline; }
.log-line .lv { text-transform: uppercase; font-size: 10px; letter-spacing: 0.1em; }
.log-line .lv.warn { color: var(--accent); } .log-line .lv.error { color: var(--danger); } .log-line .lv.info { color: var(--faint); }
.log-line .actor { color: var(--muted); }
@media (max-width: 720px) {
.grid2 { grid-template-columns: 1fr; }
.log-line { grid-template-columns: 1fr; gap: 2px; }
}
/* ===================== v1.3 additions ===================== */
/* brand: logo image + full product name */
.brand-logo { height: 30px; width: auto; display: block; flex: none; }
.brand-name { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.brand-name small { color: var(--muted); font-weight: 400; }
.login-logo { display: block; width: 190px; max-width: 72%; height: auto; margin: 2px auto 8px; }
/* presentation cards: twice as wide and 50% taller */
.grid { grid-template-columns: repeat(auto-fill, minmax(min(600px, 100%), 1fr)); }
.tile { min-height: 200px; padding: 22px; gap: 20px; align-items: center; }
.tile .qr { width: 132px; height: 132px; }
.tile .title { font-size: 19px; }
/* large-format QR page */
.qr-page { min-height: 100dvh; display: flex; flex-direction: column; }
.qr-head { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.qr-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px; gap: 14px; }
.qr-stage h1 { font-size: clamp(24px, 4vw, 40px); }
.qr-big { background: #fff; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.qr-big img { display: block; width: min(58vh, 78vw); height: auto; image-rendering: pixelated; }
.qr-big .msg { width: min(58vh, 78vw); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.qr-link { color: var(--indigo); word-break: break-all; font-size: 15px; }
.qr-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
@media print {
.qr-head, .qr-actions, .qr-link, .app-footer, .eyebrow { display: none !important; }
body { background: #fff; }
.qr-big { box-shadow: none; }
.qr-stage h1 { color: #111; }
}
/* ===================== v1.5 additions ===================== */
/* chrome-free projection surface (Present Local Only) */
.display-stage {
position: fixed; inset: 0; background: #000;
display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.display-stage .pdf-canvas,
.display-stage img,
.display-stage video {
max-width: 100vw; max-height: 100vh; width: auto; height: auto;
border-radius: 0; box-shadow: none; display: block;
}
.display-stage video { background: #000; }
.display-msg {
color: var(--muted); font-family: var(--body); font-size: 18px; text-align: center; padding: 24px;
}