:root {
    --bg: #1a1d24;
    --card-bg: #262a35;
    --border: #333;
    --input-border: #444;
    --input-bg: #1a1d24;
    --text: #eee;
    --muted: #9aa0ab;
    --accent: #4f7cff;
    --link: #7ab8ff;
    --link-hover: #a9cbff;
    --link-visited: #b39ddb;
    --success: #4fdc7c;
    --error: #ff6b6b;
}

body {
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 2rem;
}

h1, h2 { font-weight: 600; margin-top: 0; }

a { color: var(--link); }
a:visited { color: var(--link-visited); }
a:hover { color: var(--link-hover); }

.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }

label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.25rem; }

input, select, button, a.button {
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text);
    box-sizing: border-box;
    font-family: inherit;
}

button, a.button {
    background: var(--accent);
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button.danger { background: var(--error); }
button.subtle { background: #3a3f4b; }

.message, .saved { color: var(--success); margin-bottom: 1rem; }
.error { color: var(--error); margin-bottom: 1rem; }
.hint { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }

.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
a.logout { color: var(--muted); text-decoration: none; font-size: 0.85rem; }

/* "Classic View" / "New View" at the top of the dashboard: the version in place is lit, the other one is dim */
.view-switch { display: inline-flex; gap: 0.35rem; margin: 0; }
.view-switch button { background: #3a3f4b; color: var(--muted); font-weight: 600; border: 2px solid transparent; }
.view-switch button:hover { color: var(--text); }
.view-switch button.active { background: var(--accent); color: #fff; border-color: #fff; cursor: default; }

.status-running { color: var(--success); }
.status-completed { color: var(--muted); }
.status-error { color: var(--error); }

/* Pause switches (see core/pause.php) */
.paused-banner { background: #4a3b12; border: 1px solid #b8860b; color: #ffe29a; border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 0.9rem; }
.paused-banner a { color: #ffd166; }
.pause-all-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border: 1px solid var(--border); background: var(--card-bg); border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 1.5rem; }
.pause-all-bar.is-paused { background: #4a3b12; border-color: #b8860b; color: #ffe29a; }
.pause-all-bar .pause-all-text { font-size: 0.9rem; }
button.pause-btn { background: #d97706; color: #fff; }
button.resume-btn { background: #2e9e5b; color: #fff; }
/* Dashboard "Current Status" card (see core/status_card.php) */
.status-table-wrap { overflow-x: auto; }
table.status-table { width: 100%; border-collapse: collapse; }
table.status-table th, table.status-table td { white-space: nowrap; text-align: left; }
table.status-table th[rowspan] { vertical-align: bottom; }
table.status-table th.st-group { text-align: center; border-bottom: 1px solid var(--border); }      /* the "Summons" heading over Common / Elite / Artifact x10 */
table.status-table td.st-ok { color: var(--success); }
table.status-table td.st-no { color: var(--error); opacity: 0.85; }
table.status-table td.st-none { color: var(--muted); }
.st-now { color: var(--success); font-size: 0.75em; margin-left: 0.25rem; }
/* the per-hero Pause button on the Current Status card, and a paused hero's row */
.hero-pause-btn { margin-left: 0.5rem; padding: 0.05rem 0.5rem; font-size: 0.75em; background: transparent; border: 1px solid var(--muted); color: var(--muted); border-radius: 4px; cursor: pointer; }
.hero-pause-btn:hover { border-color: #ffd166; color: #ffd166; }
.hero-pause-btn.is-paused { border-color: #ffd166; color: #ffd166; font-weight: 600; }
.st-paused-tag { margin-left: 0.4rem; font-size: 0.7em; font-weight: 700; color: #ffd166; letter-spacing: 0.04em; }
table.status-table tr.st-hero-paused td { opacity: 0.6; }
table.status-table tr.st-hero-paused td:first-child { opacity: 1; }
/* the view buttons of the Current Status card, and the totals row of its summed views */
.view-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.view-tabs button.view-btn { background: #3a3f4b; font-weight: normal; border: 2px solid transparent; }
/* the view being shown: green border and glow, a tick, tinted background */
.view-tabs button.view-btn.active { background: #1f4d33; color: #fff; font-weight: bold; border: 2px solid var(--success); box-shadow: 0 0 8px rgba(79, 220, 124, 0.55); }
.view-tabs button.view-btn.active::before { content: "\2713\00a0"; color: var(--success); }
table.status-table tr.st-total td { border-top: 1px solid var(--border); font-weight: bold; color: var(--text); }
/* the "Columns..." chooser of the Current Status card: a button at the end of the view buttons, and a panel with a tick + up/down arrows per column */
.view-tabs button.col-open-btn { margin-left: auto; }
.col-panel { border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem 1rem; margin-bottom: 1rem; }
.col-panel ul.col-list { list-style: none; margin: 0 0 0.75rem; padding: 0; columns: 2 20rem; }
.col-panel ul.col-list li { display: flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0; break-inside: avoid; }
.col-panel ul.col-list li label { flex: 1; }
.col-panel .col-note { color: var(--muted); font-size: 0.8em; }
.col-panel button.col-move { padding: 0 0.4rem; font-size: 0.75em; background: transparent; border: 1px solid var(--muted); color: var(--muted); border-radius: 4px; cursor: pointer; }
.col-panel button.col-move:hover { border-color: var(--text); color: var(--text); }
.col-panel .col-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.status-paused { color: #ffd166; margin-bottom: 1rem; }