Update styles.css

This commit is contained in:
oliver
2026-06-08 09:27:02 -03:00
parent 14e1c45faf
commit 76401469ad
+97 -73
View File
@@ -8,29 +8,33 @@
} }
:root { :root {
--bg: #0f1117; --bg: #000810;
--bg-card: #1a1d27; --bg-card: #010f20;
--bg-hover: #22263a; --bg-inner: #000d1a;
--bg-input: #12151f; --bg-hover: #001a30;
--border: #2a2f45; --bg-input: #000813;
--accent: #4f8ef7; --border: #0a3060;
--accent-dim: #2a4a8a; --border-hi: rgba(0, 245, 255, 0.45);
--danger: #e05252; --accent: #00f5ff;
--danger-dim: #5a1f1f; --accent-dim: #002535;
--success: #3fc97e; --danger: #ff3b3b;
--warning: #f0a04b; --danger-dim: #3b0000;
--text: #e4e8f5; --success: #00ff88;
--text-muted: #7a82a0; --warning: #ffaa00;
--text: #c8f0ff;
--text-muted: #2e6a80;
--sidebar-w: 230px; --sidebar-w: 230px;
--header-h: 54px; --header-h: 54px;
--radius: 8px; --radius: 8px;
--shadow: 0 4px 24px rgba(0, 0, 0, 0.45); --shadow:
0 0 0 1px rgba(0, 245, 255, 0.25), 0 0 60px rgba(0, 245, 255, 0.12),
0 28px 72px rgba(0, 0, 0, 0.9);
} }
html, html,
body { body {
height: 100%; height: 100%;
font-family: "Segoe UI", system-ui, sans-serif; font-family: "Courier New", Courier, monospace;
background: var(--bg); background: var(--bg);
color: var(--text); color: var(--text);
font-size: 14px; font-size: 14px;
@@ -63,7 +67,7 @@ body {
border-bottom: 1px solid var(--border); border-bottom: 1px solid var(--border);
font-weight: 700; font-weight: 700;
font-size: 15px; font-size: 15px;
letter-spacing: 0.3px; letter-spacing: 1.5px;
color: var(--accent); color: var(--accent);
flex-shrink: 0; flex-shrink: 0;
} }
@@ -127,17 +131,23 @@ body {
.topbar { .topbar {
height: var(--header-h); height: var(--header-h);
border-bottom: 1px solid var(--border); border-bottom: 1px solid var(--border-hi);
background: linear-gradient(
90deg,
rgba(0, 245, 255, 0.08),
transparent 60%
);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 0 28px; padding: 0 22px;
flex-shrink: 0; flex-shrink: 0;
gap: 14px; gap: 14px;
} }
.topbar-title { .topbar-title {
font-size: 16px; font-size: 15px;
font-weight: 600; font-weight: 600;
color: var(--text);
} }
.topbar-actions { .topbar-actions {
display: flex; display: flex;
@@ -161,10 +171,10 @@ body {
/* ─── Cards ─────────────────────────────────────────────────── */ /* ─── Cards ─────────────────────────────────────────────────── */
.card { .card {
background: var(--bg-card); background: var(--bg-inner);
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: var(--radius); border-radius: var(--radius);
padding: 20px 24px; padding: 16px 18px;
margin-bottom: 20px; margin-bottom: 20px;
} }
.card-header { .card-header {
@@ -176,11 +186,12 @@ body {
flex-wrap: wrap; flex-wrap: wrap;
} }
.card-title { .card-title {
font-size: 15px; font-size: 13px;
font-weight: 600; font-weight: 600;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: 7px;
color: var(--text);
} }
/* ─── Buttons ───────────────────────────────────────────────── */ /* ─── Buttons ───────────────────────────────────────────────── */
@@ -206,8 +217,19 @@ body {
opacity: 0.7; opacity: 0.7;
} }
.btn-primary { .btn-primary {
background: var(--accent); background: transparent;
color: #fff; color: #fff;
border: 1px solid var(--accent);
box-shadow:
0 0 8px rgba(0, 245, 255, 0.35),
inset 0 0 8px rgba(0, 245, 255, 0.04);
}
.btn-primary:hover {
background: rgba(0, 245, 255, 0.08);
box-shadow:
0 0 14px rgba(0, 245, 255, 0.5),
inset 0 0 10px rgba(0, 245, 255, 0.08);
opacity: 1;
} }
.btn-danger { .btn-danger {
background: var(--danger); background: var(--danger);
@@ -223,7 +245,7 @@ body {
color: #000; color: #000;
} }
.btn-sm { .btn-sm {
padding: 4px 10px; padding: 5px 10px;
font-size: 12px; font-size: 12px;
} }
.btn:disabled { .btn:disabled {
@@ -257,7 +279,7 @@ body {
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: 6px; border-radius: 6px;
color: var(--text); color: var(--text);
padding: 8px 10px; padding: 9px 11px;
font-size: 13px; font-size: 13px;
outline: none; outline: none;
transition: border-color 0.15s; transition: border-color 0.15s;
@@ -315,44 +337,44 @@ td:last-child {
font-weight: 600; font-weight: 600;
} }
.badge-a { .badge-a {
background: #1a3a5c; background: #001a2e;
color: #5fb3f5; color: #00c8e0;
} }
.badge-aaaa { .badge-aaaa {
background: #1a2f4c; background: #001225;
color: #8ac8f8; color: #50b8d8;
} }
.badge-cname { .badge-cname {
background: #2a1f4a; background: #0e0028;
color: #a888f8; color: #9060f0;
} }
.badge-mx { .badge-mx {
background: #1f3a2a; background: #001a0e;
color: #5fd89a; color: #00cc60;
} }
.badge-txt { .badge-txt {
background: #3a2a1a; background: #1a1000;
color: #f0b060; color: #cc8800;
} }
.badge-ns { .badge-ns {
background: #3a1a2a; background: #200012;
color: #f080b0; color: #cc5088;
} }
.badge-other { .badge-other {
background: #2a2a2a; background: #080c12;
color: #9090a0; color: #4a6880;
} }
.badge-eu { .badge-eu {
background: #1a2f4c; background: #001225;
color: #8ac8f8; color: #50b8d8;
} }
.badge-us { .badge-us {
background: #1f3a2a; background: #001a0e;
color: #5fd89a; color: #00cc60;
} }
.badge-region { .badge-region {
background: #2a2a2a; background: #080c12;
color: #9090a0; color: #4a6880;
} }
.status-dot { .status-dot {
@@ -431,7 +453,7 @@ td:last-child {
} }
.modal { .modal {
background: var(--bg-card); background: var(--bg-card);
border: 1px solid var(--border); border: 1px solid var(--border-hi);
border-radius: 10px; border-radius: 10px;
width: 100%; width: 100%;
max-width: 500px; max-width: 500px;
@@ -484,6 +506,7 @@ td:last-child {
/* ─── Confirm dialog ────────────────────────────────────────── */ /* ─── Confirm dialog ────────────────────────────────────────── */
#confirm-backdrop .modal { #confirm-backdrop .modal {
max-width: 380px; max-width: 380px;
border-radius: 12px;
} }
/* ─── Login modal ───────────────────────────────────────────── */ /* ─── Login modal ───────────────────────────────────────────── */
@@ -503,7 +526,7 @@ td:last-child {
} }
#login-modal { #login-modal {
background: var(--bg-card); background: var(--bg-card);
border: 1px solid var(--border); border: 1px solid var(--border-hi);
border-radius: 12px; border-radius: 12px;
width: 100%; width: 100%;
max-width: 360px; max-width: 360px;
@@ -518,13 +541,13 @@ td:last-child {
} }
.login-logo h2 { .login-logo h2 {
margin-top: 10px; margin-top: 10px;
font-size: 17px; font-size: 22px;
font-weight: 700; font-weight: 700;
color: var(--accent); color: var(--text);
} }
.login-logo p { .login-logo p {
margin-top: 4px; margin-top: 4px;
font-size: 12px; font-size: 13px;
color: var(--text-muted); color: var(--text-muted);
} }
#login-error { #login-error {
@@ -587,8 +610,8 @@ td:last-child {
gap: 8px; gap: 8px;
} }
.mono { .mono {
font-family: "Cascadia Code", "Fira Code", monospace; font-family: "Courier New", Courier, monospace;
font-size: 12px; font-size: 11.5px;
} }
.text-muted { .text-muted {
color: var(--text-muted); color: var(--text-muted);
@@ -611,7 +634,7 @@ hr.sep {
.server-tab { .server-tab {
padding: 8px 20px 10px; padding: 8px 20px 10px;
cursor: pointer; cursor: pointer;
border: 1px solid transparent; border: 1px solid var(--border);
border-bottom: 2px solid transparent; border-bottom: 2px solid transparent;
border-radius: 8px 8px 0 0; border-radius: 8px 8px 0 0;
color: var(--text-muted); color: var(--text-muted);
@@ -624,6 +647,7 @@ hr.sep {
position: relative; position: relative;
bottom: -2px; bottom: -2px;
user-select: none; user-select: none;
background: transparent;
transition: transition:
background 0.12s, background 0.12s,
color 0.12s, color 0.12s,
@@ -632,14 +656,14 @@ hr.sep {
.server-tab:hover { .server-tab:hover {
background: var(--bg-hover); background: var(--bg-hover);
color: var(--text); color: var(--text);
border-color: var(--border); border-color: rgba(0, 245, 255, 0.4);
border-bottom-color: var(--bg-hover); border-bottom-color: var(--bg-hover);
} }
.server-tab.active { .server-tab.active {
background: var(--bg); background: var(--accent-dim);
border-color: var(--border); border-color: var(--accent);
border-bottom-color: var(--bg); border-bottom-color: var(--accent-dim);
color: var(--text); color: var(--accent);
} }
.server-tab-dot { .server-tab-dot {
display: inline-block; display: inline-block;
@@ -683,14 +707,14 @@ hr.sep {
.prog-wrap { .prog-wrap {
background: var(--bg-input); background: var(--bg-input);
border-radius: 4px; border-radius: 4px;
height: 6px; height: 4px;
margin-top: 6px; margin-top: 6px;
overflow: hidden; overflow: hidden;
} }
.prog-bar { .prog-bar {
height: 100%; height: 100%;
border-radius: 4px; border-radius: 4px;
transition: width 0.4s ease; transition: width 0.5s ease;
min-width: 2px; min-width: 2px;
} }
.prog-low { .prog-low {
@@ -735,28 +759,28 @@ hr.sep {
/* ─── Status / risk badges (dashboard) ──────────────────────── */ /* ─── Status / risk badges (dashboard) ──────────────────────── */
.badge-green { .badge-green {
background: #1c3a26; background: rgba(0, 255, 136, 0.1);
color: #5fd89a; color: var(--success);
} }
.badge-yellow { .badge-yellow {
background: #372900; background: rgba(255, 170, 0, 0.1);
color: #f0b060; color: var(--warning);
} }
.badge-red { .badge-red {
background: #3a1515; background: rgba(255, 59, 59, 0.12);
color: #f07070; color: var(--danger);
} }
.badge-low { .badge-low {
background: #1c3a26; background: rgba(0, 255, 136, 0.1);
color: #5fd89a; color: var(--success);
} }
.badge-medium { .badge-medium {
background: #372900; background: rgba(255, 170, 0, 0.1);
color: #f0b060; color: var(--warning);
} }
.badge-high { .badge-high {
background: #3a1515; background: rgba(255, 59, 59, 0.12);
color: #f07070; color: var(--danger);
} }
/* ─── Action advice items ─────────────────────────────────── */ /* ─── Action advice items ─────────────────────────────────── */