You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

537 lines
9.5 KiB
CSS

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap");
:root {
--bg-main: #f5f7fb;
--bg-secondary: #edf2ff;
--bg-tertiary: #fff7ee;
--card: rgba(255, 255, 255, 0.84);
--card-strong: rgba(255, 255, 255, 0.94);
--text: #1e2a3a;
--muted: #5f6b80;
--line: rgba(37, 53, 88, 0.14);
--accent: #246bff;
--accent-strong: #104fcf;
--accent-soft: #eaf0ff;
--accent-warm: #ff8a3d;
--success: #14a37f;
--shadow: 0 18px 40px rgba(24, 38, 66, 0.1);
--anim-fast: 170ms;
--anim-mid: 340ms;
--anim-slow: 680ms;
}
* {
box-sizing: border-box;
}
html,
body {
min-height: 100%;
}
body {
margin: 0;
font-family: "Manrope", "Noto Sans", sans-serif;
color: var(--text);
background:
radial-gradient(1200px 800px at 14% -20%, #dce6ff 0%, transparent 60%),
radial-gradient(920px 560px at 120% 12%, #ffe5cd 0%, transparent 58%),
linear-gradient(160deg, var(--bg-main), var(--bg-secondary) 50%, var(--bg-tertiary));
overflow-x: hidden;
}
.app-shell {
width: min(1320px, 96vw);
margin: 20px auto;
display: grid;
grid-template-columns: 300px 1fr;
align-items: start;
gap: 16px;
position: relative;
z-index: 2;
}
.card {
background: linear-gradient(165deg, var(--card-strong), var(--card));
border: 1px solid var(--line);
border-radius: 18px;
padding: 16px;
backdrop-filter: blur(10px);
box-shadow: var(--shadow);
position: relative;
overflow: hidden;
animation: rise 460ms ease both;
transition:
transform var(--anim-fast) ease,
box-shadow var(--anim-fast) ease,
border-color var(--anim-fast) ease;
}
.card::before {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
background:
linear-gradient(
120deg,
transparent 0%,
rgba(255, 255, 255, 0.18) 28%,
transparent 50%,
transparent 100%
);
transform: translateX(-140%);
animation: sheen 6.6s linear infinite;
}
.card:hover {
transform: translateY(-2px);
border-color: color-mix(in oklab, var(--accent), #ffffff 76%);
box-shadow: 0 22px 48px rgba(20, 38, 72, 0.14);
}
.side-nav {
position: sticky;
top: 12px;
min-height: 0;
max-height: calc(100dvh - 24px);
overflow-y: auto;
overscroll-behavior: contain;
display: grid;
gap: 12px;
scrollbar-gutter: stable;
}
.kicker {
margin: 0;
text-transform: uppercase;
letter-spacing: 0.16em;
color: var(--accent-strong);
font-weight: 800;
font-size: 0.7rem;
}
.side-title {
margin: 0;
font-size: 1.4rem;
letter-spacing: 0.02em;
}
.content-area {
display: grid;
min-width: 0;
}
.panel {
display: none;
animation: fadeSlide var(--anim-mid) ease;
}
.panel-active {
display: grid;
gap: 16px;
min-width: 0;
}
.hero h2 {
margin: 0 0 8px;
font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem);
}
.hero-actions,
.editor-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-top: 10px;
}
.btn {
border: 1px solid var(--line);
background: #fff;
color: var(--text);
border-radius: 11px;
padding: 8px 13px;
cursor: pointer;
font-family: inherit;
font-weight: 600;
transition:
transform var(--anim-fast) ease,
background-color var(--anim-fast) ease,
box-shadow var(--anim-fast) ease,
border-color var(--anim-fast) ease;
}
.btn:hover {
transform: translateY(-1px);
border-color: color-mix(in oklab, var(--accent), #ffffff 68%);
box-shadow: 0 10px 22px rgba(36, 107, 255, 0.16);
}
.btn-primary {
background: linear-gradient(140deg, var(--accent), var(--accent-strong));
border-color: var(--accent-strong);
color: #fff;
}
.btn-primary:hover {
box-shadow: 0 12px 26px rgba(19, 87, 222, 0.32);
}
.menu-wrap {
display: grid;
gap: 8px;
}
.menu-toggle {
width: 100%;
}
.menu-list {
display: none;
position: static;
border: 1px solid var(--line);
border-radius: 12px;
background: rgba(255, 255, 255, 0.94);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.7),
0 8px 24px rgba(21, 37, 73, 0.08);
padding: 6px;
max-height: min(48dvh, 440px);
overflow-y: auto;
overscroll-behavior: contain;
transform-origin: top center;
animation: menuIn var(--anim-mid) ease both;
}
.menu-list-open {
display: grid;
gap: 5px;
}
.menu-item {
border: 1px solid transparent;
background: #f9fbff;
color: var(--text);
border-radius: 9px;
padding: 8px 10px;
text-align: left;
cursor: pointer;
font-family: inherit;
transition:
transform var(--anim-fast) ease,
border-color var(--anim-fast) ease,
background-color var(--anim-fast) ease;
}
.menu-item:hover {
transform: translateX(4px);
border-color: color-mix(in oklab, var(--accent), #ffffff 70%);
}
.menu-item-active {
background: linear-gradient(90deg, var(--accent-soft), #f4f7ff);
border-color: color-mix(in oklab, var(--accent), #ffffff 64%);
}
.side-meta {
display: grid;
gap: 7px;
}
.badge {
border: 1px solid var(--line);
background: rgba(236, 244, 255, 0.72);
border-radius: 999px;
padding: 6px 12px 6px 30px;
line-height: 1.2;
font-size: 0.8rem;
width: fit-content;
position: relative;
overflow: hidden;
display: inline-flex;
align-items: center;
}
.badge::after {
content: "";
position: absolute;
left: 12px;
top: 50%;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--success);
transform: translateY(-50%);
opacity: 0.78;
animation: badgePulse 1.9s ease-in-out infinite;
}
.badge-meta {
background: rgba(241, 246, 255, 0.78);
font-variant-numeric: tabular-nums;
}
.badge-meta::after {
background: var(--accent);
}
.result-box {
display: grid;
gap: 7px;
}
.muted {
color: var(--muted);
}
.small {
font-size: 0.86rem;
}
.mono {
font-family: "JetBrains Mono", "Cascadia Code", "Fira Code", ui-monospace, monospace;
}
.table-wrap {
overflow-x: auto;
border: 1px solid var(--line);
border-radius: 12px;
background: rgba(255, 255, 255, 0.56);
}
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
text-align: left;
padding: 9px 10px;
border-bottom: 1px solid var(--line);
font-size: 0.9rem;
}
thead th {
font-size: 0.82rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #4a5a74;
background: rgba(245, 249, 255, 0.9);
}
tbody tr {
transition: background-color var(--anim-fast) ease;
}
tbody tr:hover {
background: rgba(230, 239, 255, 0.58);
}
.row-enter {
opacity: 0;
transform: translateY(6px);
animation: rowEnter var(--anim-mid) ease forwards;
}
.value-updated {
animation: valuePulse 640ms ease;
}
.editor {
width: 100%;
min-height: 340px;
border: 1px solid var(--line);
border-radius: 12px;
padding: 11px;
background: rgba(250, 253, 255, 0.88);
font-family: "JetBrains Mono", "Cascadia Code", "Fira Code", ui-monospace, monospace;
font-size: 0.85rem;
margin-top: 10px;
}
.server-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px 14px;
}
.servers-title {
margin: 16px 0 10px;
font-size: 0.98rem;
letter-spacing: 0.02em;
}
.server-actions-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.server-grid label {
display: grid;
gap: 6px;
font-size: 0.88rem;
color: #34425c;
}
.server-grid input,
.server-grid select {
border: 1px solid var(--line);
border-radius: 9px;
padding: 8px 10px;
font-size: 0.9rem;
background: #fff;
color: var(--text);
font-family: inherit;
transition: border-color var(--anim-fast) ease, box-shadow var(--anim-fast) ease;
}
.server-grid input:focus,
.server-grid select:focus,
.editor:focus {
outline: none;
border-color: color-mix(in oklab, var(--accent), #ffffff 50%);
box-shadow: 0 0 0 3px rgba(36, 107, 255, 0.14);
}
.bg-glow {
position: fixed;
width: 420px;
height: 420px;
border-radius: 50%;
filter: blur(70px);
opacity: 0.34;
pointer-events: none;
z-index: 1;
animation: drift 11s ease-in-out infinite alternate;
}
.bg-glow-a {
background: #7eacff;
top: -130px;
right: -90px;
}
.bg-glow-b {
background: #ffbb80;
bottom: -145px;
left: -90px;
animation-delay: 1.3s;
}
@keyframes rise {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeSlide {
from {
opacity: 0;
transform: translateX(10px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes drift {
from {
transform: translate(0, 0) scale(1);
}
to {
transform: translate(26px, -18px) scale(1.12);
}
}
@keyframes sheen {
0% {
transform: translateX(-140%);
}
100% {
transform: translateX(170%);
}
}
@keyframes menuIn {
from {
opacity: 0;
transform: translateY(-8px) scale(0.986);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes rowEnter {
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes valuePulse {
0% {
text-shadow: 0 0 0 rgba(36, 107, 255, 0);
}
40% {
text-shadow: 0 0 18px rgba(36, 107, 255, 0.35);
}
100% {
text-shadow: 0 0 0 rgba(36, 107, 255, 0);
}
}
@keyframes badgePulse {
0%,
100% {
transform: translateY(-50%) scale(1);
opacity: 0.68;
}
50% {
transform: translateY(-50%) scale(1.4);
opacity: 1;
}
}
@media (max-width: 1040px) {
.app-shell {
grid-template-columns: 1fr;
}
.side-nav {
position: static;
max-height: none;
overflow: visible;
}
}
@media (max-width: 760px) {
.server-grid {
grid-template-columns: 1fr;
}
.card {
padding: 14px;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
}
}