:root {
    --bg: #0b1020;
    --card: #121a33;
    --muted: #95a0c0;
    --text: #eaf0ff;
    --accent: #6ae4ff;
    --danger: #ff5f7a;
}

* {
    box-sizing: border-box;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

body {
    margin: 0;
    background: radial-gradient(1200px 600px at 20% 0%, #18224a 0%, var(--bg) 60%);
    color: var(--text);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.brand {
    font-weight: 800;
    letter-spacing: .4px;
}

.card {
    background: rgba(18, 26, 51, .85);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
}

label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin: 12px 0 6px;
}

input,
select {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .25);
    color: var(--text);
}

input {
  min-width: 180px;
}

input:invalid {
  border-color: #c0392b;
}

button {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: linear-gradient(180deg, rgba(106, 228, 255, .25), rgba(106, 228, 255, .12));
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

button.danger {
    background: linear-gradient(180deg, rgba(255, 95, 122, .35), rgba(255, 95, 122, .18));
}

.row {
    display: flex;
    gap: 10px;
    /*align-items: center;*/
}

.space-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.compact input,
.compact select,
.compact button {
  height: 30px;
  font-size: 13px;
  padding: 4px 8px;
}

.compact select {
  min-width: 90px;
}

.compact button {
  min-width: 32px;
  padding: 4px 6px;
}

.small {
    font-size: 12px;
    color: var(--muted);
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin: 14px 0;
}

video,
canvas,
img.thumb {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .25);
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
}

.badge.ok {
    color: var(--accent);
}

.badge.no {
    color: var(--danger);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 14px;
    vertical-align: middle;
}

td img.thumb {
  display: block;
  margin: 0 auto;
}

a {
    color: var(--accent);
    text-decoration: none;
}

/* Thumbnail images in tables */
.thumb {
  width: 64px;          /* fixed width for alignment */
  height: auto;         /* keep aspect ratio */
  max-height: 64px;     /* prevents very tall images */
  object-fit: contain;  /* no cropping, no distortion */
  cursor: zoom-in;
  border-radius: 6px;
}

/* IMAGE OVERLAY */
#imgOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#imgOverlay img {
    max-width: 96%;
    max-height: 96%;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 0, 0, .6);
}

button.danger {
  background: #c0392b;
  color: #fff;
  border: none;
}

button.danger:hover {
  background: #a93226;
}
