Files
virtuality/web/static/app.css
T

282 строки
7.5 KiB
CSS

:root {
--bg: #070b12;
--panel: #101722;
--panel-2: #0d131d;
--line: #233044;
--text: #e8eef8;
--muted: #8d9bb0;
--accent: #37d6ff;
--green: #3dff9d;
--yellow: #ffd166;
--red: #ff5c7a;
}
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
background: radial-gradient(circle at top left, rgba(55, 214, 255, .14), transparent 34%), var(--bg);
color: var(--text);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell {
width: min(1440px, calc(100% - 32px));
margin: 0 auto;
padding: 24px 0 48px;
}
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 18px 20px;
margin-bottom: 18px;
background: rgba(16, 23, 34, .86);
border: 1px solid var(--line);
border-radius: 22px;
box-shadow: 0 24px 70px rgba(0,0,0,.28);
backdrop-filter: blur(12px);
}
.brand {
font-size: 28px;
font-weight: 800;
letter-spacing: -.04em;
}
.muted { color: var(--muted); }
.small-note { font-size: 13px; line-height: 1.45; }
.top-meta {
display: flex;
gap: 10px;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
}
.top-meta span,
.pill,
.link-pill {
display: inline-flex;
align-items: center;
min-height: 30px;
padding: 6px 10px;
border: 1px solid var(--line);
border-radius: 999px;
color: var(--muted);
background: rgba(13, 19, 29, .8);
font-size: 13px;
text-decoration: none;
}
.link-pill.accent { color: var(--accent); border-color: rgba(55,214,255,.38); background: rgba(55,214,255,.08); font-weight: 800; }
.link-pill:hover { border-color: var(--accent); }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.card,
.auth-card {
background: linear-gradient(180deg, rgba(16, 23, 34, .96), rgba(13, 19, 29, .96));
border: 1px solid var(--line);
border-radius: 22px;
padding: 18px;
box-shadow: 0 18px 50px rgba(0,0,0,.22);
margin-bottom: 16px;
}
.card-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 14px;
}
h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.label { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.value { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.value.small { font-size: 16px; }
.strong { font-weight: 700; }
.services { display: grid; gap: 10px; }
.service-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 11px 12px;
background: rgba(255,255,255,.03);
border: 1px solid rgba(255,255,255,.06);
border-radius: 14px;
}
.service-row small { display: block; margin-top: 4px; color: var(--muted); }
.service-link { color: var(--text); text-decoration: none; }
.service-link:hover { border-color: rgba(55,214,255,.42); background: rgba(55,214,255,.055); }
.status {
display: inline-flex;
padding: 5px 9px;
border-radius: 999px;
font-size: 12px;
font-weight: 800;
border: 1px solid currentColor;
white-space: nowrap;
}
.status.ok { color: var(--green); background: rgba(61,255,157,.09); }
.status.warn { color: var(--yellow); background: rgba(255,209,102,.09); }
.status.err { color: var(--red); background: rgba(255,92,122,.09); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
th { color: var(--muted); font-size: 13px; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions form, .logout-form { margin: 0; }
button {
border: 1px solid var(--line);
background: rgba(55,214,255,.08);
color: var(--text);
padding: 8px 10px;
border-radius: 12px;
cursor: pointer;
font-weight: 700;
}
button:hover { border-color: var(--accent); }
button.danger { background: rgba(255,92,122,.09); color: var(--red); }
button.primary { background: rgba(55,214,255,.18); border-color: rgba(55,214,255,.55); }
button.ghost { background: rgba(255,255,255,.035); color: var(--muted); }
button.wide { width: 100%; padding: 12px 14px; }
button:disabled { cursor: not-allowed; opacity: .45; }
pre {
overflow: auto;
margin: 14px 0 0;
padding: 14px;
border-radius: 14px;
background: #070b12;
border: 1px solid rgba(255,255,255,.06);
color: #d9e5f6;
line-height: 1.55;
}
.auth-body {
display: grid;
place-items: center;
padding: 20px;
}
.auth-shell { width: min(440px, 100%); }
.auth-card { padding: 28px; }
.auth-brand { margin-bottom: 6px; }
.auth-form,
.form-grid { display: grid; gap: 14px; margin-top: 22px; }
.auth-form label,
.form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-form input,
.form-grid input,
.form-grid select {
width: 100%;
border: 1px solid var(--line);
background: rgba(7,11,18,.82);
color: var(--text);
border-radius: 14px;
padding: 12px 13px;
outline: none;
}
.auth-form input:focus,
.form-grid input:focus,
.form-grid select:focus { border-color: var(--accent); }
.alert,
.notice {
padding: 12px 13px;
border-radius: 14px;
margin: 0 0 16px;
font-weight: 700;
}
.notice { margin: 0; color: var(--accent); background: rgba(55,214,255,.07); border: 1px solid rgba(55,214,255,.22); }
.alert.danger { color: var(--red); background: rgba(255,92,122,.08); border: 1px solid rgba(255,92,122,.28); }
.quick-actions { display: grid; gap: 10px; }
.big-action {
display: grid;
gap: 5px;
padding: 14px;
color: var(--text);
text-decoration: none;
background: rgba(255,255,255,.03);
border: 1px solid rgba(255,255,255,.06);
border-radius: 16px;
}
.big-action:hover { border-color: rgba(55,214,255,.42); background: rgba(55,214,255,.055); }
.big-action span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.progress {
height: 9px;
overflow: hidden;
background: rgba(255,255,255,.065);
border: 1px solid rgba(255,255,255,.08);
border-radius: 999px;
}
.progress.big { height: 14px; }
.progress span {
display: block;
height: 100%;
width: 0;
min-width: 3px;
background: linear-gradient(90deg, rgba(55,214,255,.75), rgba(61,255,157,.9));
border-radius: inherit;
transition: width .35s ease;
}
.operation-summary {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
margin-bottom: 16px;
}
.meta-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
}
.meta-grid div {
display: grid;
gap: 5px;
padding: 11px 12px;
border-radius: 14px;
background: rgba(255,255,255,.03);
border: 1px solid rgba(255,255,255,.06);
}
.meta-grid span { color: var(--muted); font-size: 12px; }
.meta-grid strong { overflow-wrap: anywhere; }
.command-box { white-space: pre-wrap; overflow-wrap: anywhere; }
.op-log {
min-height: 420px;
max-height: 620px;
white-space: pre-wrap;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
font-size: 13px;
}
.live-dot::before {
content: "";
width: 7px;
height: 7px;
margin-right: 6px;
border-radius: 50%;
background: var(--green);
box-shadow: 0 0 18px rgba(61,255,157,.8);
}
@media (max-width: 900px) {
.topbar { align-items: flex-start; flex-direction: column; }
.stats, .two, .form-row, .operation-summary, .meta-grid { grid-template-columns: 1fr; }
.shell { width: min(100% - 20px, 1440px); padding-top: 10px; }
table { display: block; overflow-x: auto; }
}