/* List Manager - glass theme (dark, cyan light streaks, frosted cards with cut corners) */
:root {
  --bg: #04070c; --ink: #e8f1fb; --muted: rgba(232, 241, 251, .58); --faint: rgba(232, 241, 251, .38);
  --glass: rgba(255, 255, 255, .055); --glass-2: rgba(255, 255, 255, .085); --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .2); --cyan: #38bdf8; --cyan-2: #0ea5e9; --cyan-soft: rgba(56, 189, 248, .16);
  --ok: #34d399; --okbg: rgba(52, 211, 153, .14); --bad: #f87171; --badbg: rgba(248, 113, 113, .14);
  --warn: #fbbf24; --warnbg: rgba(251, 191, 36, .14); --cut: 18px;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 "Plus Jakarta Sans", Inter, system-ui, "Segoe UI", sans-serif; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7dd3fc; }

/* background: flowing light streaks */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(1200px 600px at 85% -10%, rgba(14, 165, 233, .18), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(56, 189, 248, .12), transparent 60%), var(--bg); }
.bg svg { position: absolute; width: 140%; height: 140%; left: -20%; top: -20%; opacity: .9; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-3%, 2%, 0) rotate(-2deg); } }

/* glass surface with cut corners */
.glass, .box, .card { position: relative; background: linear-gradient(160deg, var(--glass-2), var(--glass) 55%);
  border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08); border-radius: 16px; }
.cut { border-radius: 14px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.cut::before, .cut::after { content: ""; position: absolute; width: calc(var(--cut) * 1.6); height: calc(var(--cut) * 1.6); pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(125, 211, 252, .15) 45%, transparent 46%); }
.cut::before { top: 0; left: 0; }
.cut::after { bottom: 0; right: 0; transform: rotate(180deg); }

/* layout: glass sidebar + content */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
aside.side { position: sticky; top: 0; height: 100vh; padding: 22px 14px; display: flex; flex-direction: column; gap: 6px;
  background: rgba(6, 12, 20, .55); border-right: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.brand { display: flex; flex-direction: column; gap: 6px; padding: 2px 10px 20px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.brand img { width: 170px; height: auto; filter: drop-shadow(0 0 14px rgba(56, 189, 248, .35)); }
.brand span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.brand b { color: var(--cyan); font-weight: 700; }
.login-logo { display: block; width: 200px; height: auto; margin: 0 auto 6px; filter: drop-shadow(0 0 18px rgba(56, 189, 248, .4)); }
.app-name { text-align: center; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 24px; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(140deg, #7dd3fc, var(--cyan-2) 55%, #0369a1);
  box-shadow: 0 0 22px rgba(56, 189, 248, .55); position: relative; flex: none; display: block; }
.logo::after { content: ""; position: absolute; left: 7px; right: 7px; top: 50%; height: 2px; background: rgba(255, 255, 255, .85); transform: rotate(-45deg); }
aside nav { display: flex; flex-direction: column; gap: 2px; }
aside nav a { display: flex; align-items: center; gap: 11px; color: var(--muted); padding: 9px 12px; border-radius: 10px; font-weight: 600; transition: .18s; }
aside nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
aside nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
aside nav a.on { color: #fff; background: linear-gradient(90deg, var(--cyan-soft), rgba(56, 189, 248, .04)); box-shadow: inset 2px 0 0 var(--cyan); }
aside .who { margin-top: auto; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
aside .who b { color: var(--ink); }
main { padding: 28px 28px 70px; max-width: 1400px; width: 100%; min-width: 0; }
.shell > * { min-width: 0; }
.note { white-space: normal; }
h1 { font-size: 26px; font-weight: 800; margin: 0 0 18px; letter-spacing: -.3px; }
h2 { font-size: 15px; font-weight: 700; margin: 28px 0 12px; color: var(--ink); letter-spacing: .2px; }

/* stat cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.card { padding: 18px 20px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; overflow: hidden; }
.card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .28), transparent 70%); }
.card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 26px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(56, 189, 248, .15); }
.card .k { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.card .v { font-size: 26px; font-weight: 800; margin-top: 6px; color: #fff; }

/* boxes + tables */
.box { padding: 18px; margin-bottom: 18px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); text-align: left; white-space: nowrap; }
th { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .7px; font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: rgba(56, 189, 248, .045); }
tr:last-child td { border-bottom: 0; }
.muted { color: var(--muted); }

/* pills, notes, flash */
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .07);
  color: var(--muted); border: 1px solid rgba(255, 255, 255, .08); }
.pill.ok { background: var(--okbg); color: var(--ok); border-color: rgba(52, 211, 153, .25); }
.pill.bad { background: var(--badbg); color: var(--bad); border-color: rgba(248, 113, 113, .25); }
.pill.warn { background: var(--warnbg); color: var(--warn); border-color: rgba(251, 191, 36, .25); }
.flash, .note { padding: 11px 15px; border-radius: 12px; margin-bottom: 16px; border: 1px solid; backdrop-filter: blur(12px); }
.flash.ok { background: var(--okbg); color: var(--ok); border-color: rgba(52, 211, 153, .3); }
.flash.bad { background: var(--badbg); color: var(--bad); border-color: rgba(248, 113, 113, .3); }
.note { background: rgba(56, 189, 248, .08); color: #bae6fd; border-color: rgba(56, 189, 248, .25); }
ul.muted li { margin: 3px 0; }

/* forms */
form.inline { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=number], input[type=password], input[type=time], input[type=file], select {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink);
  background: rgba(0, 0, 0, .28); outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus { border-color: rgba(56, 189, 248, .65); box-shadow: 0 0 0 3px rgba(56, 189, 248, .18); }
select option { background: #0b1520; color: var(--ink); }
input[type=number] { width: 90px; }
input[type=time] { width: 116px; color-scheme: dark; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--cyan); }
input::placeholder { color: var(--faint); }
button, .btn { background: linear-gradient(180deg, #5cc9fa, var(--cyan-2)); color: #03121d; border: 0; padding: 10px 20px; border-radius: 10px;
  font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 8px 24px rgba(14, 165, 233, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .15s, box-shadow .2s, filter .2s; }
button:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 12px 30px rgba(14, 165, 233, .5), inset 0 1px 0 rgba(255, 255, 255, .5); }
button.ghost { background: rgba(255, 255, 255, .07); color: var(--ink); box-shadow: none; border: 1px solid var(--line); font-weight: 600; }
.bar { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 4px; overflow: hidden; min-width: 90px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan-2), #7dd3fc); box-shadow: 0 0 10px var(--cyan); }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: 100%; max-width: 440px; padding: 38px 34px 32px; --cut: 26px; animation: pop .7s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes pop { from { opacity: 0; transform: scale(.86) translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.login .logo { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 20px; }
.login .logo::after { left: 10px; right: 10px; }
.login h1 { font-size: 30px; margin: 0 0 4px; }
.login h1 span { color: var(--cyan); }
.login p.sub { color: var(--muted); margin: 0 0 26px; font-size: 13px; }
.field { position: relative; margin-bottom: 16px; }
.field svg { position: absolute; left: 13px; bottom: 12px; width: 17px; height: 17px; color: var(--faint); pointer-events: none; }
.login input { width: 100%; padding-left: 40px; height: 44px; }
.login button { width: 100%; height: 46px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.login .foot { text-align: center; color: var(--faint); font-size: 12px; margin-top: 18px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  aside.side { position: sticky; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; overflow-x: auto; z-index: 5; }
  .brand { padding: 0; margin: 0; border: 0; flex: none; }
  .brand img { width: 96px; }
  .brand span { display: none; }
  aside nav { flex-direction: row; }
  aside nav a { padding: 8px 10px; white-space: nowrap; }
  aside nav a svg { display: none; }
  aside .who { margin: 0; padding: 6px 10px; white-space: nowrap; }
  main { padding: 20px 16px 60px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 14px; }
  .card .v { font-size: 20px; }
}
