352 lines
8.8 KiB
CSS
352 lines
8.8 KiB
CSS
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
|
|
|
|
:root {
|
|
--primary: #7ef2c6;
|
|
--primary-2: #7c9bff;
|
|
--primary-dark: #eef1ff;
|
|
--bg-a: #0b1229;
|
|
--bg-b: #1a2456;
|
|
--bg-c: #3a1f66;
|
|
--card-bg: rgba(255, 255, 255, 0.08);
|
|
--card-bg-solid: #1a2456;
|
|
--border: rgba(255, 255, 255, 0.14);
|
|
--text: #eef1ff;
|
|
--muted: #9aa4d6;
|
|
--high: #ff6b81;
|
|
--high-bg: rgba(255, 107, 129, 0.14);
|
|
--medium: #ffc266;
|
|
--medium-bg: rgba(255, 194, 102, 0.14);
|
|
--low: #7ef2c6;
|
|
--low-bg: rgba(126, 242, 198, 0.14);
|
|
--radius: 16px;
|
|
--radius-sm: 10px;
|
|
--shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
|
|
--shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.28);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
background: linear-gradient(135deg, var(--bg-a), var(--bg-b) 50%, var(--bg-c));
|
|
background-attachment: fixed;
|
|
color: var(--text);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
/* ---------------------------------- Launch page ---------------------------------- */
|
|
.launch-body {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background:
|
|
radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.35), transparent 40%),
|
|
radial-gradient(circle at 85% 80%, rgba(79, 70, 229, 0.35), transparent 40%),
|
|
linear-gradient(135deg, var(--bg-a), var(--bg-b) 50%, var(--bg-c));
|
|
}
|
|
.launch-card {
|
|
background: var(--card-bg);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
border-radius: 20px;
|
|
padding: 52px 48px;
|
|
text-align: center;
|
|
box-shadow: var(--shadow-hover);
|
|
max-width: 440px;
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
}
|
|
.launch-card h1 {
|
|
font-size: 1.3rem;
|
|
font-weight: 700;
|
|
margin: 22px 0 8px;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
.launch-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; margin: 0; }
|
|
|
|
.spinner {
|
|
width: 42px;
|
|
height: 42px;
|
|
margin: 0 auto;
|
|
border: 4px solid rgba(255, 255, 255, 0.18);
|
|
border-top-color: var(--primary);
|
|
border-radius: 50%;
|
|
animation: spin 0.85s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
.error-box {
|
|
background: var(--high-bg);
|
|
border: 1px solid rgba(255, 107, 129, 0.4);
|
|
color: #ffdde2;
|
|
padding: 14px 18px;
|
|
border-radius: var(--radius-sm);
|
|
margin: 20px 0 0;
|
|
font-size: 0.88rem;
|
|
text-align: left;
|
|
line-height: 1.5;
|
|
}
|
|
.hidden { display: none !important; }
|
|
|
|
.standalone-link {
|
|
display: inline-block;
|
|
margin-top: 18px;
|
|
color: #0b1229;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
padding: 10px 16px;
|
|
border-radius: 999px;
|
|
background: var(--primary);
|
|
transition: background 0.15s ease, transform 0.15s ease;
|
|
}
|
|
.standalone-link:hover { background: #99f5d3; transform: translateY(-1px); }
|
|
|
|
/* ---------------------------------- Dashboard ---------------------------------- */
|
|
.topbar {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
color: white;
|
|
padding: 20px 28px;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
.topbar-inner {
|
|
max-width: 1160px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
.topbar h1 {
|
|
font-size: 1.2rem;
|
|
font-weight: 800;
|
|
margin: 0;
|
|
letter-spacing: -0.01em;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
.patient-chip {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
backdrop-filter: blur(6px);
|
|
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
padding: 6px 16px 6px 6px;
|
|
border-radius: 999px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
}
|
|
.patient-avatar {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
background: rgba(126, 242, 198, 0.28);
|
|
color: #0b1229;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.72rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.logout-btn {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border: 1px solid rgba(255, 255, 255, 0.28);
|
|
color: white;
|
|
font-family: inherit;
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
padding: 8px 16px;
|
|
border-radius: 999px;
|
|
cursor: pointer;
|
|
transition: background 0.15s ease, transform 0.15s ease;
|
|
}
|
|
.logout-btn:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
|
|
.logout-btn:disabled { opacity: 0.7; cursor: default; transform: none; }
|
|
|
|
.container {
|
|
max-width: 1160px;
|
|
margin: 28px auto;
|
|
padding: 0 24px 70px;
|
|
}
|
|
|
|
.loading-state {
|
|
text-align: center;
|
|
padding: 100px 20px;
|
|
color: var(--muted);
|
|
}
|
|
.loading-state .spinner { margin-bottom: 18px; }
|
|
.loading-state p { font-weight: 500; }
|
|
|
|
.grid-2 {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
@media (max-width: 760px) {
|
|
.grid-2 { grid-template-columns: 1fr; }
|
|
.container { padding: 0 16px 50px; }
|
|
.topbar { padding: 16px 18px; }
|
|
}
|
|
|
|
.card {
|
|
background: var(--card-bg);
|
|
backdrop-filter: blur(14px);
|
|
-webkit-backdrop-filter: blur(14px);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 22px 24px;
|
|
margin-bottom: 20px;
|
|
box-shadow: var(--shadow);
|
|
transition: box-shadow 0.2s ease, transform 0.2s ease;
|
|
}
|
|
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
|
|
.grid-2 .card { margin-bottom: 0; }
|
|
|
|
.card h2 {
|
|
font-size: 0.95rem;
|
|
font-weight: 700;
|
|
margin: 0 0 16px;
|
|
color: #cdd6ff;
|
|
letter-spacing: -0.01em;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.kv {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 9px 0;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
font-size: 0.9rem;
|
|
}
|
|
.kv:last-child { border-bottom: none; }
|
|
.kv span { color: var(--muted); font-weight: 500; }
|
|
.kv strong { font-weight: 600; color: var(--text); }
|
|
|
|
.list { display: flex; flex-direction: column; gap: 10px; }
|
|
.list-item {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: var(--radius-sm);
|
|
padding: 13px 16px;
|
|
font-size: 0.9rem;
|
|
transition: border-color 0.15s ease, background 0.15s ease;
|
|
}
|
|
.list-item:hover { border-color: rgba(126, 242, 198, 0.4); background: rgba(255, 255, 255, 0.08); }
|
|
.list-item.abnormal { border-left: 4px solid var(--high); background: var(--high-bg); }
|
|
.list-item ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
|
|
.list-item ul li { margin-bottom: 3px; }
|
|
.list-item strong { font-weight: 600; }
|
|
.muted { color: var(--muted); font-size: 0.8rem; margin-top: 3px; }
|
|
.flag {
|
|
color: #340009;
|
|
background: var(--high);
|
|
font-weight: 700;
|
|
font-size: 0.68rem;
|
|
padding: 2px 8px;
|
|
border-radius: 999px;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.empty { color: var(--muted); font-size: 0.88rem; padding: 6px 0; }
|
|
|
|
.alert-item { display: flex; align-items: center; gap: 12px; }
|
|
.badge {
|
|
font-size: 0.68rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
padding: 4px 11px;
|
|
border-radius: 999px;
|
|
color: #0b1229;
|
|
flex-shrink: 0;
|
|
}
|
|
.badge-high { background: var(--high); color: #340009; }
|
|
.badge-medium { background: var(--medium); color: #3a2600; }
|
|
.badge-low { background: var(--low); }
|
|
|
|
/* -------- Risk score card -------- */
|
|
.risk-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
|
|
.risk-card h2 { align-self: flex-start; }
|
|
.risk-score {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 6px 0 20px;
|
|
}
|
|
|
|
.risk-ring {
|
|
--pct: 0;
|
|
--ring-color: var(--low);
|
|
--track-color: rgba(255, 255, 255, 0.14);
|
|
width: 128px;
|
|
height: 128px;
|
|
border-radius: 50%;
|
|
background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), var(--track-color) 0);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background 0.6s ease;
|
|
}
|
|
.risk-ring-inner {
|
|
width: 100px;
|
|
height: 100px;
|
|
border-radius: 50%;
|
|
background: var(--card-bg-solid);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: inset 0 0 0 1px var(--border);
|
|
}
|
|
.risk-number {
|
|
font-size: 2.1rem;
|
|
font-weight: 800;
|
|
font-family: "Inter", sans-serif;
|
|
color: #fff;
|
|
}
|
|
.risk-level {
|
|
font-weight: 700;
|
|
padding: 5px 16px;
|
|
border-radius: 999px;
|
|
color: #0b1229;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.risk-high .risk-ring { --ring-color: var(--high); }
|
|
.risk-high .risk-level { background: var(--high); }
|
|
.risk-medium .risk-ring { --ring-color: var(--medium); }
|
|
.risk-medium .risk-level { background: var(--medium); }
|
|
.risk-low .risk-ring { --ring-color: var(--low); }
|
|
.risk-low .risk-level { background: var(--low); }
|
|
|
|
.risk-factors {
|
|
margin: 0;
|
|
padding-left: 20px;
|
|
font-size: 0.85rem;
|
|
color: var(--muted);
|
|
line-height: 1.6;
|
|
text-align: left;
|
|
align-self: stretch;
|
|
}
|
|
.risk-factors li { margin-bottom: 5px; }
|