Files
MSCO-Dedicated-Server/Panel/app.css
T
MrMahoandClaude Opus 5.5 905d191807 Panel: pulsing dot on Update when a new server version is available
The dot replaces the small 'new' badge; the first update check now starts as
soon as the panel asks for the update status instead of 60 s after start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 17:56:00 +02:00

302 lines
20 KiB
CSS

:root {
--bg: #17171b;
--panel: #1e1e23;
--panel-2: #24242a;
--sidebar: #0f0f12;
--border: #2e2e36;
--text: #ececf1;
--muted: #8e8e99;
--accent: #f26b1d;
--accent-hover: #ff823a;
--online: #3dd68c;
--pending: #f2c230;
--danger: #e5484d;
--danger-hover: #f2555a;
--radius: 10px;
--mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
background: var(--bg);
color: var(--text);
font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
-webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--danger); margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* ---------------------------------------------------------------- Knöpfe & Felder */
.btn {
border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer;
background: var(--panel-2); color: var(--text); transition: background .12s, transform .06s;
white-space: nowrap;
}
.btn:hover { background: #2f2f37; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { background: rgba(229, 72, 77, .14); color: #ff8a8d; }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }
.btn.small { padding: 6px 11px; font-size: 13px; }
.btn.wide { width: 100%; }
input, select, textarea {
width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
border-radius: 8px; padding: 9px 12px; font: inherit; outline: none; transition: border-color .12s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
label input, label select { margin-top: 6px; text-transform: none; letter-spacing: normal; font-size: 14px; font-weight: 400; }
.pill {
display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
background: rgba(242, 107, 29, .16); color: var(--accent); letter-spacing: .03em;
}
.pill.gray { background: rgba(255, 255, 255, .08); color: var(--muted); }
.pill.green { background: rgba(61, 214, 140, .14); color: var(--online); }
.pill.red { background: rgba(229, 72, 77, .15); color: #ff8a8d; }
/* ---------------------------------------------------------------- Anmeldung */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px 16px;
background: radial-gradient(ellipse at top, rgba(242, 107, 29, .12), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--border);
border-radius: 14px; padding: 28px; display: grid; gap: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.auth-card h1 { margin-top: 6px; }
.auth-card p { margin: -8px 0 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.brand-title { font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.brand-sub { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
/* ---------------------------------------------------------------- Layout */
.layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100%; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px 16px;
background: linear-gradient(180deg, #121216 0%, #0d0d10 100%); border-right: 1px solid var(--border); overflow-y: auto; }
.sidebar .brand { padding: 2px 8px 0; }
.server-card { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px;
background: rgba(255, 255, 255, .03); border: 1px solid var(--border); }
.sc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--pending); box-shadow: 0 0 0 4px rgba(242, 194, 48, .12); }
.sc-dot.ok { background: var(--online); box-shadow: 0 0 0 4px rgba(61, 214, 140, .14); }
.sc-dot.bad { background: var(--danger); box-shadow: 0 0 0 4px rgba(229, 72, 77, .14); }
.sc-text { min-width: 0; display: grid; }
.sc-text b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-text small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
nav { display: grid; gap: 2px; }
.nav-group { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #5f5f6b; padding: 14px 12px 6px; }
.nav-group:first-child { padding-top: 2px; }
nav button { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: transparent; border: 0;
color: #a4a4af; font: inherit; font-weight: 600; padding: 7px 10px; border-radius: 10px; cursor: pointer; transition: background .12s, color .12s; }
nav button:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
nav .ico { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; font-size: 13px;
background: rgba(255, 255, 255, .04); color: #c9c9d2; transition: background .12s, color .12s; }
nav button.active { background: linear-gradient(90deg, rgba(242, 107, 29, .16), rgba(242, 107, 29, .04)); color: #fff; }
nav button.active .ico { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(242, 107, 29, .35); }
.nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot { margin-top: auto; display: grid; gap: 10px; }
.me-card { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); }
.me-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: transparent; border: 0; color: var(--text);
font: inherit; text-align: left; padding: 4px; border-radius: 8px; cursor: pointer; }
.me-main:hover, .me-main.active { background: rgba(255, 255, 255, .05); }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
background: linear-gradient(135deg, #ffa24d, #e5561a); color: #fff; }
.me-text { min-width: 0; display: grid; }
.me-text b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text small { color: var(--muted); font-size: 11.5px; }
.icon-btn { width: 32px; height: 32px; flex: none; border: 0; border-radius: 8px; background: transparent; color: var(--muted);
font-size: 15px; cursor: pointer; }
.icon-btn:hover { background: rgba(229, 72, 77, .14); color: #ff8a8d; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); justify-self: start; }
.lang-switch button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700;
padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.lang-switch button.on { background: var(--panel-2); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .04); }
.auth-lang { position: fixed; top: 16px; right: 16px; }
.content { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 18px 28px; border-bottom: 1px solid var(--border);
background: rgba(23, 23, 27, .85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.server-name { font-weight: 700; font-size: 16px; }
.server-meta { color: var(--muted); font-size: 12px; }
.status-dot { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--pending); box-shadow: 0 0 0 4px rgba(242, 194, 48, .15); }
.status-dot.ok { background: var(--online); box-shadow: 0 0 0 4px rgba(61, 214, 140, .15); }
.status-dot.bad { background: var(--danger); box-shadow: 0 0 0 4px rgba(229, 72, 77, .15); }
.menu { display: none; }
.page { padding: 24px 28px 40px; display: grid; gap: 20px; align-content: start; }
/* ---------------------------------------------------------------- Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.cards.wide { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-width: 0;
display: flex; flex-direction: column; gap: 10px; overflow-wrap: anywhere; }
.card p { margin: 0; }
.card > .btn, .card > .row { margin-top: auto; }
.card .row { gap: 8px; }
.card .row > input, .card .row > input[type=file] { flex: 1 1 100%; min-width: 0; width: 100%; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-size: 26px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.section { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.section-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.section-head h2 { margin-right: auto; }
.section-body { padding: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > input { flex: 1; min-width: min(180px, 100%); }
.small-text { font-size: 13px; padding-top: 0; }
.page { min-width: 0; }
.empty { color: var(--muted); padding: 26px 18px; text-align: center; }
/* ---------------------------------------------------------------- Tabellen */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
font-weight: 700; padding: 10px 18px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 11px 18px; border-bottom: 1px solid #26262d; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.id { font-family: var(--mono); color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; }
.player-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
/* ---------------------------------------------------------------- Konsole */
.console { background: #0c0c0f; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; height: 60vh; min-height: 300px;
overflow-y: auto; padding: 14px 16px; white-space: pre-wrap; word-break: break-word; }
.console .t { color: #5d5d68; margin-right: 8px; }
.console .l-chat { color: #9fd3ff; }
.console .l-panel { color: #ffb37f; }
.console .l-cmd { color: var(--accent); }
.console .l-warn { color: #ff8a8d; }
.console.small { height: 260px; min-height: 0; }
.form-grid { display: grid; gap: 14px; max-width: 420px; }
.grid-2 { display: grid; gap: 20px; }
.form-grid.wide { max-width: none; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 20px; }
.label-row { display: inline-flex; align-items: center; gap: 6px; }
.hint { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; text-transform: none; letter-spacing: normal; font-weight: 400; }
.toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding-top: 18px; }
.toggle input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
input[type=file] { padding: 7px; }
input[type=file]::file-selector-button { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; margin-right: 10px; cursor: pointer; }
.control { display: grid; gap: 14px; }
.state-label { font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.state-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pending); }
.state-label.running::before { background: var(--online); }
.state-label.error::before { background: var(--danger); }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 14px;
border-radius: 10px; background: rgba(242, 194, 48, .08); border: 1px solid rgba(242, 194, 48, .25); }
.notice.bad { background: rgba(229, 72, 77, .08); border-color: rgba(229, 72, 77, .3); }
.notice b { display: block; margin-bottom: 2px; }
.console-input { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); background: var(--panel); }
.console-input input { font-family: var(--mono); }
/* ---------------------------------------------------------------- Modal & Hinweise */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; z-index: 50;
animation: fade .12s ease-out; }
.modal { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
padding: 22px; display: grid; gap: 14px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5); }
.modal.danger { border-top: 3px solid var(--danger); }
.modal p { margin: 0; color: var(--muted); }
.modal .buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
@keyframes fade { from { opacity: 0; } }
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 60; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--panel-2); border: 1px solid var(--border); border-left: 3px solid var(--online); border-radius: 10px;
padding: 11px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: slide .2s ease-out; white-space: pre-wrap; }
.toast.err { border-left-color: var(--danger); }
@keyframes slide { from { transform: translateX(20px); opacity: 0; } }
/* ---------------------------------------------------------------- Handy */
@media (max-width: 820px) {
.layout { grid-template-columns: 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 40; transform: translateX(-100%); transition: transform .18s; }
.sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
.menu { display: inline-block; }
.topbar { padding: 14px 16px; }
.page { padding: 16px 16px 32px; }
th, td { padding: 10px 12px; }
.console { height: 55vh; }
}
/* ---------------------------------------------------------------- Updates */
.nav-badge { margin-left: auto; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px;
border-radius: 999px; background: var(--accent); color: #fff; box-shadow: 0 0 0 3px rgba(242, 107, 29, .18); }
.card.accent { border-color: rgba(242, 107, 29, .45); background: linear-gradient(180deg, rgba(242, 107, 29, .10), transparent 70%), var(--panel); }
.notice.ok { background: rgba(61, 214, 140, .07); border-color: rgba(61, 214, 140, .3); }
.notice.update-notice { background: rgba(242, 107, 29, .08); border-color: rgba(242, 107, 29, .35); }
.warn-text { color: var(--pending); margin-top: 4px; }
.update-body > * + * { margin-top: 14px; }
.small-print { font-size: 12.5px; margin-bottom: 0; }
.changes { list-style: none; margin: 0; padding: 0; display: grid; }
.changes li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; padding: 8px 4px; border-bottom: 1px solid var(--border); }
.changes li:last-child { border-bottom: 0; }
.change-sha { color: var(--accent); font-size: 12px; font-family: var(--mono); }
.change-title { overflow-wrap: anywhere; }
@media (max-width: 560px) { .changes li { grid-template-columns: auto 1fr; } .changes li small { grid-column: 2; } }
.update-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
background: radial-gradient(1200px 600px at 50% 0%, rgba(242, 107, 29, .14), transparent 60%), rgba(10, 10, 13, .92);
backdrop-filter: blur(6px); animation: us-in .2s ease-out; }
@keyframes us-in { from { opacity: 0; } to { opacity: 1; } }
.update-card { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--border);
border-radius: 16px; padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); display: grid; gap: 16px; }
.update-card.success { border-color: rgba(61, 214, 140, .45); }
.us-head { display: flex; align-items: center; gap: 14px; }
.us-head img { width: 44px; height: 44px; border-radius: 10px; }
.us-versions { color: var(--muted); margin-top: 2px; }
.us-versions .mono { color: var(--text); font-family: var(--mono); }
.us-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.us-steps li { display: grid; justify-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); text-align: center; position: relative; }
.us-steps li::before { content: ""; position: absolute; top: 11px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; background: var(--border); }
.us-steps li:first-child::before { display: none; }
.us-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); background: var(--panel-2); display: grid; place-items: center;
font-size: 12px; font-weight: 800; color: #fff; position: relative; z-index: 1; }
.us-steps li.done { color: var(--text); }
.us-steps li.done .us-dot { background: var(--online); border-color: var(--online); }
.us-steps li.done .us-dot::after { content: "✓"; }
.us-steps li.done::before, .us-steps li.active::before, .us-steps li.failed::before { background: var(--online); }
.us-steps li.active { color: #fff; font-weight: 700; }
.us-steps li.active .us-dot { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 107, 29, .2); animation: us-pulse 1.4s ease-in-out infinite; }
.us-steps li.active .us-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.us-steps li.failed { color: #ff8a8d; font-weight: 700; }
.us-steps li.failed .us-dot { background: var(--danger); border-color: var(--danger); }
.us-steps li.failed .us-dot::after { content: "!"; }
@keyframes us-pulse { 50% { box-shadow: 0 0 0 7px rgba(242, 107, 29, .08); } }
.us-bar { height: 10px; border-radius: 999px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--border); }
.us-fill { height: 100%; width: 0; border-radius: 999px; transition: width .6s ease;
background: linear-gradient(90deg, #e5561a, #ffa24d, #e5561a); background-size: 200% 100%; animation: us-flow 2s linear infinite; }
.update-card.success .us-fill { background: var(--online); animation: none; }
@keyframes us-flow { to { background-position: -200% 0; } }
.us-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.us-msg { min-width: 0; overflow-wrap: anywhere; }
.us-pct, .us-clock { font-variant-numeric: tabular-nums; }
.us-log { height: 240px; min-height: 0; }
.update-card .buttons { display: flex; justify-content: flex-end; gap: 10px; }
.update-card .buttons:empty { display: none; }
@media (max-width: 560px) {
.update-card { padding: 18px; }
.us-steps li { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .us-fill, .us-steps li.active .us-dot, .update-overlay { animation: none; } }
/* Punkt an "Update", wenn eine neue Server-Version da ist */
nav button { position: relative; }
.nav-dot { margin-left: auto; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--accent);
box-shadow: 0 0 0 3px rgba(242, 107, 29, .22); animation: nav-dot-pulse 1.8s ease-in-out infinite; }
@keyframes nav-dot-pulse { 50% { box-shadow: 0 0 0 6px rgba(242, 107, 29, .08); } }
@media (prefers-reduced-motion: reduce) { .nav-dot { animation: none; } }