Refactor vitals grid cards to horizontal split telemetry layout with left-aligned values, right-aligned waveforms, and glowing clinical accents

This commit is contained in:
2026-07-13 16:35:33 +05:30
parent f6c3d2b8cf
commit 6f8cc31a02
3 changed files with 171 additions and 174 deletions
@@ -92,15 +92,10 @@
.app-container { .app-container {
position: relative; position: relative;
z-index: 1; z-index: 1;
max-width: 860px; max-width: 1400px;
margin: 40px auto; margin: 0 auto;
padding: 20px; padding: 24px;
background: var(--bg-card); min-height: 100vh;
border: 1px solid var(--border-color);
border-radius: 16px;
box-shadow:
0 4px 6px -1px rgba(0, 0, 0, 0.02),
0 10px 30px -5px rgba(0, 0, 0, 0.05);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
@@ -390,30 +385,36 @@
.vitals-grid { .vitals-grid {
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
grid-template-rows: auto auto; gap: 12px;
gap: 10px; flex: 1;
} }
.vital-card { .vital-card {
background: var(--bg-card); background: var(--bg-card);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
border-radius: 12px; border-radius: 12px;
padding: 10px; padding: 12px;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
box-shadow: box-shadow:
0 2px 4px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02),
0 4px 6px -2px rgba(0, 0, 0, 0.03); 0 4px 6px -2px rgba(0, 0, 0, 0.03);
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
display: flex; display: grid;
flex-direction: column; grid-template-areas:
"header header"
"value waveform"
"footer footer";
grid-template-columns: 110px 1fr;
grid-template-rows: auto 50px auto;
gap: 6px 12px;
} }
.vital-card:hover { .vital-card:hover {
background: var(--bg-card-hover); background: var(--bg-card-hover);
transform: translateY(-1px); transform: translateY(-2px);
box-shadow: box-shadow:
0 6px 12px -5px rgba(0, 0, 0, 0.04), 0 8px 16px -6px rgba(0, 0, 0, 0.05),
0 0 0 1px rgba(0, 0, 0, 0.01); 0 0 0 1px rgba(0, 0, 0, 0.01);
} }
@@ -429,24 +430,24 @@
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
right: 0; bottom: 0;
height: 2.5px; width: 3.5px;
border-radius: 12px 12px 0 0; border-radius: 12px 0 0 12px;
} }
.vital-card.hr::before { background: linear-gradient(90deg, var(--hr-color), transparent); } .vital-card.hr::before { background: linear-gradient(180deg, var(--hr-color), transparent); }
.vital-card.spo2::before { background: linear-gradient(90deg, var(--spo2-color), transparent); } .vital-card.spo2::before { background: linear-gradient(180deg, var(--spo2-color), transparent); }
.vital-card.bp::before { background: linear-gradient(90deg, var(--bp-color), transparent); } .vital-card.bp::before { background: linear-gradient(180deg, var(--bp-color), transparent); }
.vital-card.rr::before { background: linear-gradient(90deg, var(--rr-color), transparent); } .vital-card.rr::before { background: linear-gradient(180deg, var(--rr-color), transparent); }
.vital-card.temp::before { background: linear-gradient(90deg, var(--temp-color), transparent); } .vital-card.temp::before { background: linear-gradient(180deg, var(--temp-color), transparent); }
.vital-card.map-card::before { background: linear-gradient(90deg, var(--map-color), transparent); } .vital-card.map-card::before { background: linear-gradient(180deg, var(--map-color), transparent); }
/* Glow effect behind cards */ /* Glow effect behind cards */
.vital-card::after { .vital-card::after {
content: ''; content: '';
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 20%;
width: 120px; width: 120px;
height: 120px; height: 120px;
border-radius: 50%; border-radius: 50%;
@@ -473,28 +474,29 @@
} }
.card-header { .card-header {
grid-area: header;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-bottom: 6px;
position: relative; position: relative;
z-index: 1; z-index: 1;
padding-bottom: 2px;
} }
.card-label { .card-label {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 6px; gap: 8px;
} }
.card-icon { .card-icon {
width: 26px; width: 24px;
height: 26px; height: 24px;
border-radius: 6px; border-radius: 6px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 13px; font-size: 12px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
} }
@@ -506,10 +508,10 @@
.vital-card.map-card .card-icon { background: rgba(219, 39, 119, 0.05); } .vital-card.map-card .card-icon { background: rgba(219, 39, 119, 0.05); }
.card-name { .card-name {
font-size: 10px; font-size: 11px;
font-weight: 700; font-weight: 700;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.4px; letter-spacing: 0.5px;
} }
.vital-card.hr .card-name { color: var(--hr-color); } .vital-card.hr .card-name { color: var(--hr-color); }
@@ -566,13 +568,13 @@
/* === Vital Value Display === */ /* === Vital Value Display === */
.vital-value-container { .vital-value-container {
flex: 1; grid-area: value;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: flex-start;
position: relative; position: relative;
z-index: 1; z-index: 1;
min-height: 55px; height: 100%;
} }
.vital-value { .vital-value {
@@ -584,31 +586,34 @@
transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
} }
.vital-card.hr .vital-value { color: var(--hr-color); } .vital-card.hr .vital-value { color: var(--hr-color); text-shadow: 0 0 6px rgba(220, 38, 38, 0.12); }
.vital-card.spo2 .vital-value { color: var(--spo2-color); } .vital-card.spo2 .vital-value { color: var(--spo2-color); text-shadow: 0 0 6px rgba(8, 145, 178, 0.12); }
.vital-card.bp .vital-value { color: var(--bp-color); } .vital-card.bp .vital-value { color: var(--bp-color); text-shadow: 0 0 6px rgba(124, 58, 237, 0.12); }
.vital-card.rr .vital-value { color: var(--rr-color); } .vital-card.rr .vital-value { color: var(--rr-color); text-shadow: 0 0 6px rgba(22, 163, 74, 0.12); }
.vital-card.temp .vital-value { color: var(--temp-color); } .vital-card.temp .vital-value { color: var(--temp-color); text-shadow: 0 0 6px rgba(234, 88, 12, 0.12); }
.vital-card.map-card .vital-value { color: var(--map-color); } .vital-card.map-card .vital-value { color: var(--map-color); text-shadow: 0 0 6px rgba(219, 39, 119, 0.12); }
.vital-value.no-data { .vital-value.no-data {
font-size: 26px; font-size: 26px;
color: var(--text-dim) !important; color: var(--text-dim) !important;
text-shadow: none !important;
} }
.vital-value .unit { .vital-value .unit {
font-size: 13px; font-size: 12px;
font-weight: 500; font-weight: 500;
letter-spacing: 0; letter-spacing: 0;
margin-left: 2px; margin-left: 2px;
color: var(--text-secondary); color: var(--text-secondary);
text-shadow: none !important;
} }
.vital-value .slash { .vital-value .slash {
font-size: 26px; font-size: 24px;
opacity: 0.3; opacity: 0.3;
margin: 0; margin: 0;
color: var(--text-secondary); color: var(--text-secondary);
text-shadow: none !important;
} }
.vital-value-update { .vital-value-update {
@@ -622,14 +627,13 @@
/* === Waveform Canvas === */ /* === Waveform Canvas === */
.waveform-container { .waveform-container {
height: 30px; grid-area: waveform;
margin-top: 6px; height: 100%;
position: relative; position: relative;
z-index: 1; z-index: 1;
overflow: hidden; overflow: hidden;
border-radius: 6px; border-radius: 6px;
background: rgba(0, 0, 0, 0.01); background: rgba(0, 0, 0, 0.01);
border: 1px solid rgba(0, 0, 0, 0.005);
} }
.waveform-container canvas { .waveform-container canvas {
@@ -640,24 +644,24 @@
/* === Normal Range Footer === */ /* === Normal Range Footer === */
.card-footer { .card-footer {
grid-area: footer;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-top: 6px; padding-top: 4px;
padding-top: 6px;
border-top: 1px solid var(--border-color); border-top: 1px solid var(--border-color);
position: relative; position: relative;
z-index: 1; z-index: 1;
} }
.normal-range { .normal-range {
font-size: 9.5px; font-size: 9px;
color: var(--text-secondary); color: var(--text-secondary);
font-weight: 600; font-weight: 600;
} }
.last-update { .last-update {
font-size: 9.5px; font-size: 9px;
color: var(--text-dim); color: var(--text-dim);
font-family: 'JetBrains Mono', monospace; font-family: 'JetBrains Mono', monospace;
font-weight: 500; font-weight: 500;
@@ -669,11 +673,10 @@
} }
/* === Responsive === */
@media (max-width: 1024px) { @media (max-width: 1024px) {
.vitals-grid { .vitals-grid {
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
gap: 20px; gap: 12px;
} }
.setup-guide-body { .setup-guide-body {
grid-template-columns: 1fr; grid-template-columns: 1fr;
@@ -684,7 +687,7 @@
.app-container { padding: 12px; } .app-container { padding: 12px; }
.vitals-grid { .vitals-grid {
grid-template-columns: 1fr; grid-template-columns: 1fr;
gap: 16px; gap: 12px;
} }
.header { .header {
flex-direction: column; flex-direction: column;
@@ -712,7 +715,6 @@
width: 100%; width: 100%;
max-width: 250px; max-width: 250px;
} }
.vital-value { font-size: 56px; }
.setup-guide-body { .setup-guide-body {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
@@ -819,9 +821,6 @@
padding: 0 !important; padding: 0 !important;
max-width: 100% !important; max-width: 100% !important;
margin: 0 !important; margin: 0 !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
} }
body.minimal-mode { body.minimal-mode {
padding: 0 !important; padding: 0 !important;
+57 -58
View File
@@ -92,15 +92,10 @@
.app-container { .app-container {
position: relative; position: relative;
z-index: 1; z-index: 1;
max-width: 860px; max-width: 1400px;
margin: 40px auto; margin: 0 auto;
padding: 20px; padding: 24px;
background: var(--bg-card); min-height: 100vh;
border: 1px solid var(--border-color);
border-radius: 16px;
box-shadow:
0 4px 6px -1px rgba(0, 0, 0, 0.02),
0 10px 30px -5px rgba(0, 0, 0, 0.05);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
@@ -390,30 +385,36 @@
.vitals-grid { .vitals-grid {
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
grid-template-rows: auto auto; gap: 12px;
gap: 10px; flex: 1;
} }
.vital-card { .vital-card {
background: var(--bg-card); background: var(--bg-card);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
border-radius: 12px; border-radius: 12px;
padding: 10px; padding: 12px;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
box-shadow: box-shadow:
0 2px 4px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02),
0 4px 6px -2px rgba(0, 0, 0, 0.03); 0 4px 6px -2px rgba(0, 0, 0, 0.03);
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
display: flex; display: grid;
flex-direction: column; grid-template-areas:
"header header"
"value waveform"
"footer footer";
grid-template-columns: 110px 1fr;
grid-template-rows: auto 50px auto;
gap: 6px 12px;
} }
.vital-card:hover { .vital-card:hover {
background: var(--bg-card-hover); background: var(--bg-card-hover);
transform: translateY(-1px); transform: translateY(-2px);
box-shadow: box-shadow:
0 6px 12px -5px rgba(0, 0, 0, 0.04), 0 8px 16px -6px rgba(0, 0, 0, 0.05),
0 0 0 1px rgba(0, 0, 0, 0.01); 0 0 0 1px rgba(0, 0, 0, 0.01);
} }
@@ -429,24 +430,24 @@
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
right: 0; bottom: 0;
height: 2.5px; width: 3.5px;
border-radius: 12px 12px 0 0; border-radius: 12px 0 0 12px;
} }
.vital-card.hr::before { background: linear-gradient(90deg, var(--hr-color), transparent); } .vital-card.hr::before { background: linear-gradient(180deg, var(--hr-color), transparent); }
.vital-card.spo2::before { background: linear-gradient(90deg, var(--spo2-color), transparent); } .vital-card.spo2::before { background: linear-gradient(180deg, var(--spo2-color), transparent); }
.vital-card.bp::before { background: linear-gradient(90deg, var(--bp-color), transparent); } .vital-card.bp::before { background: linear-gradient(180deg, var(--bp-color), transparent); }
.vital-card.rr::before { background: linear-gradient(90deg, var(--rr-color), transparent); } .vital-card.rr::before { background: linear-gradient(180deg, var(--rr-color), transparent); }
.vital-card.temp::before { background: linear-gradient(90deg, var(--temp-color), transparent); } .vital-card.temp::before { background: linear-gradient(180deg, var(--temp-color), transparent); }
.vital-card.map-card::before { background: linear-gradient(90deg, var(--map-color), transparent); } .vital-card.map-card::before { background: linear-gradient(180deg, var(--map-color), transparent); }
/* Glow effect behind cards */ /* Glow effect behind cards */
.vital-card::after { .vital-card::after {
content: ''; content: '';
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 20%;
width: 120px; width: 120px;
height: 120px; height: 120px;
border-radius: 50%; border-radius: 50%;
@@ -473,28 +474,29 @@
} }
.card-header { .card-header {
grid-area: header;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-bottom: 6px;
position: relative; position: relative;
z-index: 1; z-index: 1;
padding-bottom: 2px;
} }
.card-label { .card-label {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 6px; gap: 8px;
} }
.card-icon { .card-icon {
width: 26px; width: 24px;
height: 26px; height: 24px;
border-radius: 6px; border-radius: 6px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 13px; font-size: 12px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
} }
@@ -506,10 +508,10 @@
.vital-card.map-card .card-icon { background: rgba(219, 39, 119, 0.05); } .vital-card.map-card .card-icon { background: rgba(219, 39, 119, 0.05); }
.card-name { .card-name {
font-size: 10px; font-size: 11px;
font-weight: 700; font-weight: 700;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.4px; letter-spacing: 0.5px;
} }
.vital-card.hr .card-name { color: var(--hr-color); } .vital-card.hr .card-name { color: var(--hr-color); }
@@ -566,13 +568,13 @@
/* === Vital Value Display === */ /* === Vital Value Display === */
.vital-value-container { .vital-value-container {
flex: 1; grid-area: value;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: flex-start;
position: relative; position: relative;
z-index: 1; z-index: 1;
min-height: 55px; height: 100%;
} }
.vital-value { .vital-value {
@@ -584,31 +586,34 @@
transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
} }
.vital-card.hr .vital-value { color: var(--hr-color); } .vital-card.hr .vital-value { color: var(--hr-color); text-shadow: 0 0 6px rgba(220, 38, 38, 0.12); }
.vital-card.spo2 .vital-value { color: var(--spo2-color); } .vital-card.spo2 .vital-value { color: var(--spo2-color); text-shadow: 0 0 6px rgba(8, 145, 178, 0.12); }
.vital-card.bp .vital-value { color: var(--bp-color); } .vital-card.bp .vital-value { color: var(--bp-color); text-shadow: 0 0 6px rgba(124, 58, 237, 0.12); }
.vital-card.rr .vital-value { color: var(--rr-color); } .vital-card.rr .vital-value { color: var(--rr-color); text-shadow: 0 0 6px rgba(22, 163, 74, 0.12); }
.vital-card.temp .vital-value { color: var(--temp-color); } .vital-card.temp .vital-value { color: var(--temp-color); text-shadow: 0 0 6px rgba(234, 88, 12, 0.12); }
.vital-card.map-card .vital-value { color: var(--map-color); } .vital-card.map-card .vital-value { color: var(--map-color); text-shadow: 0 0 6px rgba(219, 39, 119, 0.12); }
.vital-value.no-data { .vital-value.no-data {
font-size: 26px; font-size: 26px;
color: var(--text-dim) !important; color: var(--text-dim) !important;
text-shadow: none !important;
} }
.vital-value .unit { .vital-value .unit {
font-size: 13px; font-size: 12px;
font-weight: 500; font-weight: 500;
letter-spacing: 0; letter-spacing: 0;
margin-left: 2px; margin-left: 2px;
color: var(--text-secondary); color: var(--text-secondary);
text-shadow: none !important;
} }
.vital-value .slash { .vital-value .slash {
font-size: 26px; font-size: 24px;
opacity: 0.3; opacity: 0.3;
margin: 0; margin: 0;
color: var(--text-secondary); color: var(--text-secondary);
text-shadow: none !important;
} }
.vital-value-update { .vital-value-update {
@@ -622,14 +627,13 @@
/* === Waveform Canvas === */ /* === Waveform Canvas === */
.waveform-container { .waveform-container {
height: 30px; grid-area: waveform;
margin-top: 6px; height: 100%;
position: relative; position: relative;
z-index: 1; z-index: 1;
overflow: hidden; overflow: hidden;
border-radius: 6px; border-radius: 6px;
background: rgba(0, 0, 0, 0.01); background: rgba(0, 0, 0, 0.01);
border: 1px solid rgba(0, 0, 0, 0.005);
} }
.waveform-container canvas { .waveform-container canvas {
@@ -640,24 +644,24 @@
/* === Normal Range Footer === */ /* === Normal Range Footer === */
.card-footer { .card-footer {
grid-area: footer;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-top: 6px; padding-top: 4px;
padding-top: 6px;
border-top: 1px solid var(--border-color); border-top: 1px solid var(--border-color);
position: relative; position: relative;
z-index: 1; z-index: 1;
} }
.normal-range { .normal-range {
font-size: 9.5px; font-size: 9px;
color: var(--text-secondary); color: var(--text-secondary);
font-weight: 600; font-weight: 600;
} }
.last-update { .last-update {
font-size: 9.5px; font-size: 9px;
color: var(--text-dim); color: var(--text-dim);
font-family: 'JetBrains Mono', monospace; font-family: 'JetBrains Mono', monospace;
font-weight: 500; font-weight: 500;
@@ -669,11 +673,10 @@
} }
/* === Responsive === */
@media (max-width: 1024px) { @media (max-width: 1024px) {
.vitals-grid { .vitals-grid {
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
gap: 20px; gap: 12px;
} }
.setup-guide-body { .setup-guide-body {
grid-template-columns: 1fr; grid-template-columns: 1fr;
@@ -684,7 +687,7 @@
.app-container { padding: 12px; } .app-container { padding: 12px; }
.vitals-grid { .vitals-grid {
grid-template-columns: 1fr; grid-template-columns: 1fr;
gap: 16px; gap: 12px;
} }
.header { .header {
flex-direction: column; flex-direction: column;
@@ -712,7 +715,6 @@
width: 100%; width: 100%;
max-width: 250px; max-width: 250px;
} }
.vital-value { font-size: 56px; }
.setup-guide-body { .setup-guide-body {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
@@ -819,9 +821,6 @@
padding: 0 !important; padding: 0 !important;
max-width: 100% !important; max-width: 100% !important;
margin: 0 !important; margin: 0 !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
} }
body.minimal-mode { body.minimal-mode {
padding: 0 !important; padding: 0 !important;
+57 -58
View File
@@ -92,15 +92,10 @@
.app-container { .app-container {
position: relative; position: relative;
z-index: 1; z-index: 1;
max-width: 860px; max-width: 1400px;
margin: 40px auto; margin: 0 auto;
padding: 20px; padding: 24px;
background: var(--bg-card); min-height: 100vh;
border: 1px solid var(--border-color);
border-radius: 16px;
box-shadow:
0 4px 6px -1px rgba(0, 0, 0, 0.02),
0 10px 30px -5px rgba(0, 0, 0, 0.05);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
@@ -390,30 +385,36 @@
.vitals-grid { .vitals-grid {
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
grid-template-rows: auto auto; gap: 12px;
gap: 10px; flex: 1;
} }
.vital-card { .vital-card {
background: var(--bg-card); background: var(--bg-card);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
border-radius: 12px; border-radius: 12px;
padding: 10px; padding: 12px;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
box-shadow: box-shadow:
0 2px 4px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02),
0 4px 6px -2px rgba(0, 0, 0, 0.03); 0 4px 6px -2px rgba(0, 0, 0, 0.03);
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
display: flex; display: grid;
flex-direction: column; grid-template-areas:
"header header"
"value waveform"
"footer footer";
grid-template-columns: 110px 1fr;
grid-template-rows: auto 50px auto;
gap: 6px 12px;
} }
.vital-card:hover { .vital-card:hover {
background: var(--bg-card-hover); background: var(--bg-card-hover);
transform: translateY(-1px); transform: translateY(-2px);
box-shadow: box-shadow:
0 6px 12px -5px rgba(0, 0, 0, 0.04), 0 8px 16px -6px rgba(0, 0, 0, 0.05),
0 0 0 1px rgba(0, 0, 0, 0.01); 0 0 0 1px rgba(0, 0, 0, 0.01);
} }
@@ -429,24 +430,24 @@
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
right: 0; bottom: 0;
height: 2.5px; width: 3.5px;
border-radius: 12px 12px 0 0; border-radius: 12px 0 0 12px;
} }
.vital-card.hr::before { background: linear-gradient(90deg, var(--hr-color), transparent); } .vital-card.hr::before { background: linear-gradient(180deg, var(--hr-color), transparent); }
.vital-card.spo2::before { background: linear-gradient(90deg, var(--spo2-color), transparent); } .vital-card.spo2::before { background: linear-gradient(180deg, var(--spo2-color), transparent); }
.vital-card.bp::before { background: linear-gradient(90deg, var(--bp-color), transparent); } .vital-card.bp::before { background: linear-gradient(180deg, var(--bp-color), transparent); }
.vital-card.rr::before { background: linear-gradient(90deg, var(--rr-color), transparent); } .vital-card.rr::before { background: linear-gradient(180deg, var(--rr-color), transparent); }
.vital-card.temp::before { background: linear-gradient(90deg, var(--temp-color), transparent); } .vital-card.temp::before { background: linear-gradient(180deg, var(--temp-color), transparent); }
.vital-card.map-card::before { background: linear-gradient(90deg, var(--map-color), transparent); } .vital-card.map-card::before { background: linear-gradient(180deg, var(--map-color), transparent); }
/* Glow effect behind cards */ /* Glow effect behind cards */
.vital-card::after { .vital-card::after {
content: ''; content: '';
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 20%;
width: 120px; width: 120px;
height: 120px; height: 120px;
border-radius: 50%; border-radius: 50%;
@@ -473,28 +474,29 @@
} }
.card-header { .card-header {
grid-area: header;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-bottom: 6px;
position: relative; position: relative;
z-index: 1; z-index: 1;
padding-bottom: 2px;
} }
.card-label { .card-label {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 6px; gap: 8px;
} }
.card-icon { .card-icon {
width: 26px; width: 24px;
height: 26px; height: 24px;
border-radius: 6px; border-radius: 6px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 13px; font-size: 12px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
} }
@@ -506,10 +508,10 @@
.vital-card.map-card .card-icon { background: rgba(219, 39, 119, 0.05); } .vital-card.map-card .card-icon { background: rgba(219, 39, 119, 0.05); }
.card-name { .card-name {
font-size: 10px; font-size: 11px;
font-weight: 700; font-weight: 700;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.4px; letter-spacing: 0.5px;
} }
.vital-card.hr .card-name { color: var(--hr-color); } .vital-card.hr .card-name { color: var(--hr-color); }
@@ -566,13 +568,13 @@
/* === Vital Value Display === */ /* === Vital Value Display === */
.vital-value-container { .vital-value-container {
flex: 1; grid-area: value;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: flex-start;
position: relative; position: relative;
z-index: 1; z-index: 1;
min-height: 55px; height: 100%;
} }
.vital-value { .vital-value {
@@ -584,31 +586,34 @@
transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
} }
.vital-card.hr .vital-value { color: var(--hr-color); } .vital-card.hr .vital-value { color: var(--hr-color); text-shadow: 0 0 6px rgba(220, 38, 38, 0.12); }
.vital-card.spo2 .vital-value { color: var(--spo2-color); } .vital-card.spo2 .vital-value { color: var(--spo2-color); text-shadow: 0 0 6px rgba(8, 145, 178, 0.12); }
.vital-card.bp .vital-value { color: var(--bp-color); } .vital-card.bp .vital-value { color: var(--bp-color); text-shadow: 0 0 6px rgba(124, 58, 237, 0.12); }
.vital-card.rr .vital-value { color: var(--rr-color); } .vital-card.rr .vital-value { color: var(--rr-color); text-shadow: 0 0 6px rgba(22, 163, 74, 0.12); }
.vital-card.temp .vital-value { color: var(--temp-color); } .vital-card.temp .vital-value { color: var(--temp-color); text-shadow: 0 0 6px rgba(234, 88, 12, 0.12); }
.vital-card.map-card .vital-value { color: var(--map-color); } .vital-card.map-card .vital-value { color: var(--map-color); text-shadow: 0 0 6px rgba(219, 39, 119, 0.12); }
.vital-value.no-data { .vital-value.no-data {
font-size: 26px; font-size: 26px;
color: var(--text-dim) !important; color: var(--text-dim) !important;
text-shadow: none !important;
} }
.vital-value .unit { .vital-value .unit {
font-size: 13px; font-size: 12px;
font-weight: 500; font-weight: 500;
letter-spacing: 0; letter-spacing: 0;
margin-left: 2px; margin-left: 2px;
color: var(--text-secondary); color: var(--text-secondary);
text-shadow: none !important;
} }
.vital-value .slash { .vital-value .slash {
font-size: 26px; font-size: 24px;
opacity: 0.3; opacity: 0.3;
margin: 0; margin: 0;
color: var(--text-secondary); color: var(--text-secondary);
text-shadow: none !important;
} }
.vital-value-update { .vital-value-update {
@@ -622,14 +627,13 @@
/* === Waveform Canvas === */ /* === Waveform Canvas === */
.waveform-container { .waveform-container {
height: 30px; grid-area: waveform;
margin-top: 6px; height: 100%;
position: relative; position: relative;
z-index: 1; z-index: 1;
overflow: hidden; overflow: hidden;
border-radius: 6px; border-radius: 6px;
background: rgba(0, 0, 0, 0.01); background: rgba(0, 0, 0, 0.01);
border: 1px solid rgba(0, 0, 0, 0.005);
} }
.waveform-container canvas { .waveform-container canvas {
@@ -640,24 +644,24 @@
/* === Normal Range Footer === */ /* === Normal Range Footer === */
.card-footer { .card-footer {
grid-area: footer;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-top: 6px; padding-top: 4px;
padding-top: 6px;
border-top: 1px solid var(--border-color); border-top: 1px solid var(--border-color);
position: relative; position: relative;
z-index: 1; z-index: 1;
} }
.normal-range { .normal-range {
font-size: 9.5px; font-size: 9px;
color: var(--text-secondary); color: var(--text-secondary);
font-weight: 600; font-weight: 600;
} }
.last-update { .last-update {
font-size: 9.5px; font-size: 9px;
color: var(--text-dim); color: var(--text-dim);
font-family: 'JetBrains Mono', monospace; font-family: 'JetBrains Mono', monospace;
font-weight: 500; font-weight: 500;
@@ -669,11 +673,10 @@
} }
/* === Responsive === */
@media (max-width: 1024px) { @media (max-width: 1024px) {
.vitals-grid { .vitals-grid {
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
gap: 20px; gap: 12px;
} }
.setup-guide-body { .setup-guide-body {
grid-template-columns: 1fr; grid-template-columns: 1fr;
@@ -684,7 +687,7 @@
.app-container { padding: 12px; } .app-container { padding: 12px; }
.vitals-grid { .vitals-grid {
grid-template-columns: 1fr; grid-template-columns: 1fr;
gap: 16px; gap: 12px;
} }
.header { .header {
flex-direction: column; flex-direction: column;
@@ -712,7 +715,6 @@
width: 100%; width: 100%;
max-width: 250px; max-width: 250px;
} }
.vital-value { font-size: 56px; }
.setup-guide-body { .setup-guide-body {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
@@ -819,9 +821,6 @@
padding: 0 !important; padding: 0 !important;
max-width: 100% !important; max-width: 100% !important;
margin: 0 !important; margin: 0 !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
} }
body.minimal-mode { body.minimal-mode {
padding: 0 !important; padding: 0 !important;