mirror of
https://github.com/anten-ka/gotelegram_pro.git
synced 2026-05-19 16:36:02 +00:00
411 lines
6.9 KiB
CSS
411 lines
6.9 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--bg: #f5f7fb;
|
|
--panel: #ffffff;
|
|
--panel-2: #f9fbff;
|
|
--text: #172033;
|
|
--muted: #647087;
|
|
--line: #dfe6f1;
|
|
--blue: #2563eb;
|
|
--green: #0f9f6e;
|
|
--amber: #c77700;
|
|
--red: #d92d20;
|
|
--ink: #0d172a;
|
|
--shadow: 0 18px 55px rgba(16, 24, 40, 0.08);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html { scroll-behavior: smooth; }
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
}
|
|
|
|
button, input, select {
|
|
font: inherit;
|
|
}
|
|
|
|
button {
|
|
border: 0;
|
|
border-radius: 8px;
|
|
padding: 10px 14px;
|
|
background: var(--ink);
|
|
color: #fff;
|
|
cursor: pointer;
|
|
transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
|
|
}
|
|
|
|
button:hover { transform: translateY(-1px); box-shadow: 0 12px 25px rgba(16, 24, 40, .16); }
|
|
button:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
|
|
button.ghost { background: #e8eef8; color: var(--ink); }
|
|
button.danger { background: #fee4e2; color: #b42318; }
|
|
button.soft { background: #eef4ff; color: #1d4ed8; }
|
|
|
|
input, select {
|
|
min-height: 42px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
color: var(--text);
|
|
padding: 0 12px;
|
|
outline: none;
|
|
}
|
|
|
|
input:focus, select:focus {
|
|
border-color: #8bb4ff;
|
|
box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
|
|
}
|
|
|
|
.shell {
|
|
display: grid;
|
|
grid-template-columns: 248px minmax(0, 1fr);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.sidebar {
|
|
position: sticky;
|
|
top: 0;
|
|
height: 100vh;
|
|
padding: 24px 18px;
|
|
background: #0f172a;
|
|
color: #e5edf8;
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.brand-mark, .mark {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 8px;
|
|
background: #29b57f;
|
|
color: white;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.brand span {
|
|
display: block;
|
|
color: #93a4bc;
|
|
font-size: 12px;
|
|
}
|
|
|
|
nav {
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
|
|
nav a {
|
|
color: #b8c5d8;
|
|
text-decoration: none;
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
transition: background .18s ease, color .18s ease;
|
|
}
|
|
|
|
nav a:hover, nav a.active {
|
|
background: rgba(255,255,255,.08);
|
|
color: #fff;
|
|
}
|
|
|
|
main {
|
|
width: min(1400px, 100%);
|
|
padding: 26px;
|
|
}
|
|
|
|
.topbar, .section-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
|
|
.topbar {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
h1, h2, p {
|
|
margin: 0;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 30px;
|
|
line-height: 1.15;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.eyebrow {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.section {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.metric-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
.metric-card, .chart-wrap, .table-wrap, .activity, .backup-list, .logs {
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: var(--panel);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.metric-card {
|
|
min-height: 124px;
|
|
padding: 18px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.metric-card span, .metric-card small {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.metric-card strong {
|
|
font-size: 28px;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.service-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
gap: 12px;
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.service {
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: var(--panel-2);
|
|
padding: 14px;
|
|
}
|
|
|
|
.status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.dot {
|
|
width: 9px;
|
|
height: 9px;
|
|
border-radius: 50%;
|
|
background: var(--muted);
|
|
}
|
|
|
|
.running .dot { background: var(--green); }
|
|
.failed .dot, .not_installed .dot { background: var(--red); }
|
|
.inactive .dot, .stopped .dot { background: var(--amber); }
|
|
|
|
.split {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 360px;
|
|
gap: 14px;
|
|
}
|
|
|
|
.chart-wrap {
|
|
margin-top: 14px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.activity {
|
|
padding: 16px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
pre {
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
#runtimeBox, .logs {
|
|
max-height: 340px;
|
|
overflow: auto;
|
|
color: #344054;
|
|
background: #f7f9fc;
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.inline-form {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.table-wrap {
|
|
margin-top: 14px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
th, td {
|
|
padding: 14px 16px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--line);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
th {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
td code {
|
|
display: inline-block;
|
|
max-width: 280px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.backup-list {
|
|
margin-top: 14px;
|
|
padding: 8px;
|
|
}
|
|
|
|
.backup-item {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.backup-item + .backup-item {
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.backup-item span {
|
|
display: block;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
#events {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.event {
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.event small {
|
|
display: block;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.toast {
|
|
position: fixed;
|
|
right: 22px;
|
|
bottom: 22px;
|
|
min-width: 240px;
|
|
max-width: 420px;
|
|
padding: 13px 14px;
|
|
border-radius: 8px;
|
|
background: #0f172a;
|
|
color: white;
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
pointer-events: none;
|
|
transition: opacity .18s ease, transform .18s ease;
|
|
}
|
|
|
|
.toast.show {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.auth-lock {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 20;
|
|
display: grid;
|
|
place-items: center;
|
|
background: rgba(245, 247, 251, .92);
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.auth-panel {
|
|
width: min(420px, calc(100vw - 32px));
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: white;
|
|
padding: 26px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.auth-panel h1 {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.auth-panel p {
|
|
margin-top: 8px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 1040px) {
|
|
.shell { grid-template-columns: 1fr; }
|
|
.sidebar {
|
|
position: static;
|
|
height: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
nav { display: flex; flex-wrap: wrap; }
|
|
.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
.split { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
main { padding: 18px; }
|
|
.sidebar { padding: 18px; align-items: flex-start; flex-direction: column; }
|
|
.metric-grid, .service-grid { grid-template-columns: 1fr; }
|
|
.topbar, .section-head { align-items: flex-start; flex-direction: column; }
|
|
.inline-form { width: 100%; flex-wrap: wrap; }
|
|
.inline-form input, .inline-form select { flex: 1 1 180px; }
|
|
.inline-form button { flex: 0 0 auto; }
|
|
}
|