Danielbrdz's picture
Upload 15 files
23941e3 verified
Raw
History Blame Contribute Delete
51.8 kB
/* ═══════════════════════════════════════════════════════
NefroPredict – Clinical Signal UI
Instrument-grade dark theme: amber alert + cyan telemetry,
built around a living waveform motif for a hemodialysis
decision-support suite.
═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');
:root {
--bg-body: #05070a; /* Near-black, faint blue-green undertone */
--bg-panel: #090c11;
--bg-card: #11151c;
--bg-card-hover: #171c26;
--border: rgba(255, 255, 255, 0.06);
--border-focus: rgba(255, 138, 46, 0.5);
--text-primary: #f5f6f8;
--text-secondary: #9aa3af;
--text-muted: #8e98a8; /* Improved WCAG AA contrast ratio */
--accent: #ff6a00; /* Alert orange β€” brand & action color */
--accent-hover: #ff8a2e;
--accent-deep: #c94f00;
--accent-glow: rgba(255, 106, 0, 0.28);
--accent-subtle: rgba(255, 106, 0, 0.09);
--signal: #2dd4e8; /* Telemetry cyan β€” the waveform / data color */
--signal-soft: rgba(45, 212, 232, 0.12);
--signal-glow: rgba(45, 212, 232, 0.35);
--green: #16d391;
--green-bg: rgba(22, 211, 145, 0.09);
--yellow: #f5a623;
--yellow-bg: rgba(245, 166, 35, 0.09);
--red: #f0435a;
--red-bg: rgba(240, 67, 90, 0.09);
--violet: #8b6bf0; /* Rare third tone β€” used only in the aurora mesh & glass edges */
--radius-lg: 24px;
--radius: 16px;
--radius-sm: 10px;
--transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
--font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
--font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
*:focus-visible {
outline: 2px solid var(--signal);
outline-offset: 2px;
border-radius: 4px;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg-body);
color: var(--text-primary);
height: 100vh;
overflow: hidden;
-webkit-font-smoothing: antialiased;
position: relative;
}
body.page-bitacora {
overflow-y: auto;
}
h1, h2, h3, h4, h5, .logo-title, .gauge-value, .dw-result-label,
.label-value, .surv-card-value, .explanation-feature {
font-family: var(--font-display);
}
/* Fine grain texture β€” keeps the deep black from feeling flat/plastic */
body::after {
content: "";
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
opacity: 0.035;
mix-blend-mode: overlay;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Aurora mesh: three drifting color fields (amber / cyan / violet) that give
the void real atmosphere instead of a flat black β€” the room the instruments sit in. */
body::before {
content: "";
position: fixed;
inset: -10%;
pointer-events: none;
z-index: 0;
background:
radial-gradient(38vw 32vh at 12% -8%, rgba(255, 106, 0, 0.16) 0%, transparent 68%),
radial-gradient(34vw 34vh at 100% 8%, rgba(139, 107, 240, 0.09) 0%, transparent 70%),
radial-gradient(42vw 40vh at 78% 108%, rgba(45, 212, 232, 0.11) 0%, transparent 68%),
radial-gradient(26vw 26vh at -4% 78%, rgba(255, 106, 0, 0.06) 0%, transparent 70%);
filter: blur(70px);
animation: auroraDrift 26s infinite alternate ease-in-out;
}
@keyframes auroraDrift {
0% { transform: translate(0, 0) scale(1) rotate(0deg); }
50% { transform: translate(2%, -1.5%) scale(1.05) rotate(1deg); }
100% { transform: translate(-1.5%, 2%) scale(1.08) rotate(-1deg); }
}
/* Faint instrument grid β€” a whisper of graph-paper under everything,
the visual language of a clinical readout. */
.app::before {
content: "";
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
opacity: 0.35;
background-image:
linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
background-size: 42px 42px;
mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 85%);
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
}
}
/* ─── Layout ─── */
.app {
display: flex;
height: 100vh;
position: relative;
z-index: 1;
}
/* ─── Top Navbar ─── */
.top-nav {
height: 64px;
background: rgba(10, 12, 16, 0.65);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 32px;
position: fixed;
width: 100%;
top: 0;
left: 0;
z-index: 100;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.top-nav-logo {
display: flex;
align-items: center;
gap: 13px;
}
.logo-pulse {
color: var(--accent);
filter: drop-shadow(0 0 8px rgba(255, 106, 0, 0.4));
animation: pulse-glow 3s infinite ease-in-out;
background: radial-gradient(circle, rgba(255, 106, 0, 0.16) 0%, transparent 70%);
border-radius: 10px;
padding: 5px;
margin: -5px;
}
@keyframes pulse-glow {
0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px rgba(255, 106, 0, 0.3)); }
50% { opacity: 0.8; filter: drop-shadow(0 0 14px rgba(255, 106, 0, 0.65)); }
}
.logo-title {
font-size: 19px;
font-weight: 700;
letter-spacing: -0.3px;
background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.logo-badge {
position: relative;
background: var(--signal-soft);
color: var(--signal);
border: 1px solid rgba(45, 212, 232, 0.28);
font-size: 9px;
font-weight: 700;
padding: 3px 8px 3px 16px;
border-radius: 6px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Live-data dot: a small reassurance that this is a real-time instrument */
.logo-badge::before {
content: "";
position: absolute;
left: 6px;
top: 50%;
transform: translateY(-50%);
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--signal);
box-shadow: 0 0 6px var(--signal);
animation: livePing 1.8s infinite ease-in-out;
}
@keyframes livePing {
0%, 100% { opacity: 1; }
50% { opacity: 0.35; }
}
.top-nav-links {
display: flex;
gap: 6px;
}
.top-nav-link {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 18px;
border-radius: 100px;
color: var(--text-secondary);
text-decoration: none;
font-size: 13.5px;
font-weight: 600;
transition: var(--transition);
border: 1px solid transparent;
position: relative;
}
.top-nav-link:hover {
color: var(--text-primary);
background: rgba(255, 255, 255, 0.04);
border-color: var(--border);
transform: translateY(-1px);
}
.top-nav-link.active {
background: linear-gradient(135deg, rgba(255, 106, 0, 0.14), rgba(45, 212, 232, 0.07));
color: #ffb066;
border-color: rgba(255, 106, 0, 0.3);
box-shadow: 0 4px 18px rgba(255, 106, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.top-nav-user {
display: flex;
align-items: center;
gap: 12px;
}
.user-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
background: linear-gradient(135deg, var(--accent), #ff9f43);
color: #fff;
font-size: 12px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 0 12px rgba(255, 107, 0, 0.3);
}
.user-name {
font-size: 13.5px;
font-weight: 500;
color: var(--text-secondary);
}
/* ─── Left Panel ─── */
.panel-left {
width: 420px;
min-width: 420px;
background: linear-gradient(180deg, var(--bg-panel) 0%, #07090d 100%);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
padding-top: 64px; /* Push content below fixed nav */
box-shadow: 8px 0 40px rgba(0, 0, 0, 0.35);
}
.panel-header {
padding: 24px 28px 18px;
border-bottom: 1px solid var(--border);
}
.logo {
display: flex;
align-items: center;
gap: 10px;
color: var(--accent);
margin-bottom: 4px;
}
.logo h1 {
font-size: 22px;
font-weight: 800;
letter-spacing: -0.5px;
color: var(--text-primary);
}
.subtitle {
font-size: 12.5px;
color: var(--text-muted);
line-height: 1.4;
margin-top: 2px;
}
/* ─── Horizon Selector ─── */
.horizon-selector {
display: flex;
gap: 6px;
padding: 14px 28px;
background: rgba(0, 0, 0, 0.25);
border-bottom: 1px solid var(--border);
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}
.horizon-btn {
flex: 1;
padding: 10px 16px;
border: 1px solid var(--border);
border-radius: 100px;
background: rgba(255, 255, 255, 0.02);
color: var(--text-muted);
font-family: var(--font-display);
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
}
.horizon-btn:hover {
color: var(--text-secondary);
border-color: rgba(255, 255, 255, 0.15);
background: rgba(255, 255, 255, 0.04);
}
.horizon-btn.active {
background: linear-gradient(135deg, var(--accent), var(--accent-deep));
color: #fff;
border-color: var(--accent);
box-shadow: 0 4px 16px rgba(255, 106, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
transform: scale(1.02);
}
/* ─── Nav Links ─── */
.nav-links {
padding: 10px 28px;
border-bottom: 1px solid var(--border);
}
.nav-link {
display: block;
padding: 8px 16px;
border-radius: var(--radius);
color: var(--accent);
text-decoration: none;
font-size: 13.5px;
font-weight: 600;
transition: var(--transition);
}
.nav-link:hover {
background: var(--accent-subtle);
}
/* ─── Controls Scrollable Area ─── */
.controls-scroll {
flex: 1;
overflow-y: auto;
padding: 24px 28px;
display: flex;
flex-direction: column;
gap: 32px; /* Increased spacing so sliders breathe naturally */
}
.controls-scroll::-webkit-scrollbar {
width: 4px;
}
.controls-scroll::-webkit-scrollbar-track {
background: transparent;
}
.controls-scroll::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 4px;
transition: background 0.2s ease;
}
.controls-scroll::-webkit-scrollbar-thumb:hover {
background: rgba(255, 106, 0, 0.35);
}
.panel-right {
scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.panel-right::-webkit-scrollbar {
width: 6px;
}
.panel-right::-webkit-scrollbar-track {
background: transparent;
}
.panel-right::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.08);
border-radius: 4px;
}
.panel-right::-webkit-scrollbar-thumb:hover {
background: rgba(255, 106, 0, 0.35);
}
/* ─── Control Group (Sliders) ─── */
.control-group label {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-bottom: 8px;
}
.label-text {
font-size: 13px;
font-weight: 600;
color: #cbd5e1;
}
.label-text small {
color: var(--text-muted);
font-size: 11.5px;
font-weight: 400;
}
.label-value {
font-family: var(--font-mono);
font-size: 14.5px;
font-weight: 700;
color: var(--text-primary);
font-variant-numeric: tabular-nums;
}
/* ─── Custom Range Slider ─── */
.slider {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 6px;
border-radius: 100px;
background: rgba(255, 255, 255, 0.08);
outline: none;
cursor: pointer;
transition: var(--transition);
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: #fff;
border: none;
cursor: grab;
box-shadow: 0 0 0 3px var(--accent), 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 14px rgba(255, 106, 0, 0.35);
transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}
.slider::-webkit-slider-thumb:hover {
transform: scale(1.25);
box-shadow: 0 0 0 4px var(--accent-hover), 0 4px 12px rgba(255, 106, 0, 0.4);
}
.slider::-webkit-slider-thumb:active {
cursor: grabbing;
transform: scale(1.4);
box-shadow: 0 0 0 5px var(--accent), 0 0 20px rgba(255, 106, 0, 0.6);
}
.range-labels {
display: flex;
justify-content: space-between;
margin-top: 4px;
font-size: 10.5px;
color: var(--text-muted);
}
/* ─── Toggle Cards ─── */
.toggles-grid {
display: flex;
flex-direction: column;
gap: 10px;
}
.surv-toggles-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin: 4px 0 12px;
}
.surv-toggles-grid .surv-toggle:last-child {
grid-column: 1 / -1;
}
.surv-toggle {
padding: 10px 14px !important;
gap: 8px !important;
border-color: rgba(255, 107, 0, 0.1) !important;
}
.surv-toggle .toggle-label {
font-size: 11.5px;
}
.surv-toggle .toggle-icon span {
font-size: 14px !important;
}
.toggle-card {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 18px;
background: var(--bg-card);
border-radius: var(--radius);
border: 1px solid var(--border);
cursor: pointer;
transition: var(--transition);
contain: layout style;
}
.toggle-card:hover {
background: var(--bg-card-hover);
border-color: rgba(255, 106, 0, 0.2);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.toggle-card.active {
border-color: var(--accent);
background: var(--accent-subtle);
box-shadow: 0 4px 16px rgba(255, 106, 0, 0.12), inset 0 0 0 1px rgba(255, 106, 0, 0.08);
}
.toggle-icon {
color: var(--text-muted);
display: flex;
align-items: center;
transition: var(--transition);
}
.toggle-card.active .toggle-icon {
color: var(--accent);
}
.toggle-label {
flex: 1;
font-size: 13.5px;
font-weight: 600;
color: var(--text-secondary);
transition: var(--transition);
}
.toggle-card.active .toggle-label {
color: var(--text-primary);
}
/* Toggle Switch */
.toggle-switch {
position: relative;
width: 44px;
height: 24px;
}
.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}
.toggle-switch label {
position: absolute;
cursor: pointer;
inset: 0;
background: rgba(255, 255, 255, 0.1);
box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
border-radius: 100px;
transition: var(--transition);
}
.toggle-switch label::after {
content: '';
position: absolute;
width: 18px;
height: 18px;
background: #cbd5e1;
box-shadow: 0 2px 4px rgba(0,0,0,0.3);
border-radius: 50%;
left: 3px;
bottom: 3px;
transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.toggle-switch input:checked + label {
background: var(--accent);
box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 8px rgba(255, 106, 0, 0.4);
}
.toggle-switch input:checked + label::after {
background: #fff;
transform: translateX(20px);
}
/* ─── Radio Group ─── */
.radio-group {
display: flex;
gap: 8px;
}
.radio-btn {
flex: 1;
padding: 10px 14px;
border: 1px solid var(--border);
border-radius: 100px;
background: transparent;
color: var(--text-secondary);
font-family: inherit;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
}
.radio-btn:hover {
background: rgba(255, 255, 255, 0.03);
border-color: rgba(255, 255, 255, 0.15);
color: var(--text-primary);
}
.radio-btn.active {
background: linear-gradient(135deg, var(--accent), var(--accent-deep));
color: #fff;
border-color: var(--accent);
box-shadow: 0 4px 16px rgba(255, 106, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
transform: scale(1.02);
}
/* ─── Predict Button ─── */
.btn-predict {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin: 16px 28px 28px;
padding: 14px 24px;
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
color: #fff;
border: none;
border-radius: var(--radius);
font-family: var(--font-display);
font-size: 15px;
font-weight: 600;
letter-spacing: 0.2px;
cursor: pointer;
transition: var(--transition);
box-shadow: 0 6px 20px rgba(255, 106, 0, 0.3);
position: relative;
overflow: hidden;
isolation: isolate;
}
.btn-predict::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
background-size: 250% 100%;
background-position: 150% 0;
transition: background-position 0.7s ease;
z-index: -1;
}
.btn-predict:hover::before {
background-position: -50% 0;
}
.btn-predict:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(255, 106, 0, 0.45);
}
.btn-predict:active {
transform: scale(0.96) translateY(0);
}
.btn-predict.loading {
opacity: 0.6;
pointer-events: none;
}
/* ─── Right Panel ─── */
.panel-right {
flex: 1;
display: flex;
align-items: flex-start;
justify-content: center;
padding: 104px 40px 40px 40px; /* 64px nav + 40px padding */
overflow-y: auto;
background: radial-gradient(circle at center top, rgba(255, 106, 0, 0.05) 0%, var(--bg-body) 60%), var(--bg-body);
}
.result-container {
width: 100%;
max-width: 580px;
}
/* ─── SHAP Explanations ─── */
.shap-explanations {
margin-top: 28px;
text-align: left;
}
.explanations-header {
display: flex;
align-items: center;
gap: 12px;
font-size: 16px;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 16px;
padding-bottom: 8px;
border-bottom: 1px solid var(--border);
}
.explanations-header svg {
color: var(--accent);
filter: drop-shadow(0 0 4px rgba(255, 107, 0, 0.4));
}
.explanations-subtitle {
font-size: 12px;
color: var(--text-muted);
margin-bottom: 16px;
}
.explanation-card {
background: linear-gradient(165deg, var(--bg-card) 0%, #0d1117 100%);
border: 1px solid var(--border);
border-radius: var(--radius);
margin-bottom: 8px;
cursor: pointer;
transition: var(--transition);
overflow: hidden;
contain: layout style;
}
.explanation-card:hover {
border-color: rgba(255, 106, 0, 0.4);
background: linear-gradient(165deg, var(--bg-card-hover) 0%, #10151d 100%);
transform: translateX(5px);
box-shadow: -4px 6px 20px rgba(255, 106, 0, 0.15);
}
.explanation-main {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 16px;
}
.explanation-rank {
width: 24px;
height: 24px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.05);
color: var(--text-primary);
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-mono);
font-size: 12px;
font-weight: 700;
flex-shrink: 0;
border: 1px solid var(--border);
}
.explanation-content {
flex: 1;
min-width: 0;
}
.explanation-title {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
gap: 8px;
}
.explanation-feature {
font-size: 13.5px;
font-weight: 700;
color: var(--text-primary);
}
.explanation-direction {
font-size: 11.5px;
font-weight: 700;
white-space: nowrap;
}
.explanation-bar-track {
height: 4px;
background: rgba(255, 255, 255, 0.05);
border-radius: 100px;
overflow: hidden;
}
.explanation-bar-fill {
height: 100%;
border-radius: 100px;
transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
will-change: width;
}
.explanation-chevron {
color: var(--text-muted);
font-size: 14px;
transition: transform 0.2s ease;
flex-shrink: 0;
will-change: transform;
}
.explanation-card.expanded .explanation-chevron {
transform: rotate(180deg);
}
.explanation-detail {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.3s ease;
padding: 0 16px;
will-change: max-height, padding;
}
.explanation-card.expanded .explanation-detail {
max-height: 200px;
padding: 0 16px 16px;
}
.explanation-detail p {
font-size: 12.5px;
line-height: 1.6;
color: var(--text-secondary);
border-left: 2px solid var(--border);
padding-left: 12px;
margin: 0;
}
/* ─── Placeholder ─── */
.result-placeholder {
text-align: center;
padding: 60px 40px;
}
.placeholder-icon {
margin-bottom: 24px;
color: var(--accent);
opacity: 0.55;
filter: drop-shadow(0 0 18px rgba(255, 106, 0, 0.25));
animation: pulse-soft 3s ease-in-out infinite;
}
@keyframes pulse-soft {
0%, 100% { opacity: 0.4; transform: scale(1); }
50% { opacity: 0.7; transform: scale(1.05); }
}
.result-placeholder h2 {
font-size: 22px;
font-weight: 700;
letter-spacing: -0.3px;
background: linear-gradient(135deg, #fff 30%, var(--accent) 120%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 8px;
}
.result-placeholder p {
font-size: 14.5px;
color: var(--text-muted);
line-height: 1.6;
}
/* ─── Result Card ─── */
.result-card {
background:
radial-gradient(120% 100% at 50% -10%, rgba(255, 255, 255, 0.05), transparent 55%),
linear-gradient(180deg, #0e1116 0%, var(--bg-panel) 100%);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 44px 40px;
text-align: center;
animation: springySlide 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
will-change: transform, opacity;
box-shadow:
0 30px 70px rgba(0, 0, 0, 0.55),
0 8px 20px rgba(0, 0, 0, 0.35),
inset 0 1px 0 rgba(255, 255, 255, 0.05);
position: relative;
overflow: hidden;
}
/* Dynamic ambient glow that matches the verdict β€” quiet confirmation the
whole panel agrees with the badge, not just a colored pill. */
.result-card:has(.risk-badge.low) { box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 60px -20px rgba(22, 211, 145, 0.35), inset 0 1px 0 rgba(255,255,255,.05); border-color: rgba(22, 211, 145, 0.18); }
.result-card:has(.risk-badge.medium) { box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 60px -20px rgba(245, 166, 35, 0.35), inset 0 1px 0 rgba(255,255,255,.05); border-color: rgba(245, 166, 35, 0.18); }
.result-card:has(.risk-badge.high) { box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 70px -18px rgba(240, 67, 90, 0.4), inset 0 1px 0 rgba(255,255,255,.05); border-color: rgba(240, 67, 90, 0.2); }
@keyframes springySlide {
from { opacity: 0; transform: translateY(32px) scale(0.96); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.hidden {
display: none;
}
/* ─── Gauge ─── */
.gauge-container {
position: relative;
margin-bottom: 24px;
}
.gauge {
width: 260px;
height: 156px;
margin: 0 auto;
display: block;
filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.5));
}
.gauge-value {
position: absolute;
bottom: 8px;
left: 50%;
transform: translateX(-50%);
font-family: var(--font-mono);
font-size: 52px;
font-weight: 800;
letter-spacing: -2px;
font-variant-numeric: tabular-nums;
text-shadow: 0 0 24px currentColor;
}
/* ─── Risk Badge ─── */
.risk-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 24px;
border-radius: 100px;
font-size: 14.5px;
font-weight: 700;
letter-spacing: 0.5px;
margin-bottom: 28px;
}
.risk-badge.low {
background: var(--green-bg);
color: var(--green);
border: 1px solid rgba(22, 211, 145, 0.18);
}
.risk-badge.medium {
background: var(--yellow-bg);
color: var(--yellow);
border: 1px solid rgba(245, 166, 35, 0.18);
}
.risk-badge.high {
background: var(--red-bg);
color: var(--red);
border: 1px solid rgba(240, 67, 90, 0.2);
animation: riskPulse 2.2s infinite ease-in-out;
}
@keyframes riskPulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(240, 67, 90, 0.25); }
50% { box-shadow: 0 0 0 6px rgba(240, 67, 90, 0); }
}
.risk-icon {
font-size: 16px;
}
/* ─── Result Detail ─── */
.result-detail {
font-size: 14px;
color: var(--text-secondary);
line-height: 1.7;
margin-bottom: 24px;
padding: 0 12px;
}
/* ─── Factors Summary ─── */
.factors-summary {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
text-align: left;
}
.factor-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: var(--radius-sm);
font-size: 13.5px;
font-family: var(--font-mono);
font-weight: 500;
color: #e2e8f0;
transition: var(--transition);
position: relative;
}
.factor-item:hover {
background: rgba(255, 255, 255, 0.04);
border-color: rgba(255, 255, 255, 0.1);
transform: translateY(-1px);
}
.factor-dot {
width: 6px;
height: 6px;
border-radius: 50%;
flex-shrink: 0;
box-shadow: 0 0 6px currentColor;
margin-right: 8px;
}
.factor-dot.risk { background: var(--red); color: var(--red); }
.factor-dot.ok { background: var(--green); color: var(--green); }
.factor-dot.warn { background: var(--yellow); color: var(--yellow); }
/* ─── Dry Weight Result ─── */
.dw-result-icon {
font-size: 52px;
margin-bottom: 12px;
}
.dw-result-label {
font-size: 28px;
font-weight: 800;
margin-bottom: 24px;
}
.dw-prob-bars {
width: 100%;
max-width: 360px;
margin: 0 auto 24px;
text-align: left;
}
.dw-prob-bars .bar-row {
margin-bottom: 10px;
}
.dw-prob-bars .bar-header {
display: flex;
justify-content: space-between;
font-size: 13px;
color: var(--text-secondary);
margin-bottom: 4px;
}
.dw-prob-bars .bar-track {
height: 8px;
background: var(--bg-card);
border-radius: 100px;
overflow: hidden;
}
.dw-prob-bars .bar-fill {
height: 100%;
border-radius: 100px;
transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.summary-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
text-align: left;
margin-top: 16px;
}
.summary-item {
display: flex;
justify-content: space-between;
padding: 8px 14px;
background: var(--bg-card);
border-radius: var(--radius-sm);
font-size: 12px;
border: 1px solid var(--border);
}
.summary-item .label {
color: var(--text-muted);
}
.summary-item .value {
font-family: var(--font-mono);
color: var(--text-primary);
font-weight: 700;
font-variant-numeric: tabular-nums;
}
/* ─── Responsive ─── */
@media (max-width: 900px) {
.app { flex-direction: column; height: auto; min-height: 100vh; }
.panel-left { width: 100%; min-width: auto; border-right: none; border-bottom: 1px solid var(--border); }
.controls-scroll { max-height: 50vh; }
.panel-right { padding: 24px; }
body { overflow: auto; }
}
/* ═══════════════════════════════════════════════════════
Compatibilidad – Specific Styles
═══════════════════════════════════════════════════════ */
.compat-good { color: #10b981 !important; }
.compat-risk { color: #f59e0b !important; }
.compat-bad { color: #ef4444 !important; }
.compat-score-display { margin: 8px 0; }
.factor-chip {
display: inline-block;
padding: 4px 12px;
background: var(--accent-subtle);
border: 1px solid rgba(255, 107, 0, 0.15);
border-radius: 100px;
font-size: 11.5px;
color: var(--text-secondary);
}
.factor-chip.factor-alert {
background: rgba(239, 68, 68, 0.08);
border-color: rgba(239, 68, 68, 0.25);
color: #f87171;
}
.factors-grid {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 8px;
}
.factors-title {
font-size: 12.5px;
font-weight: 700;
color: var(--text-secondary);
margin-bottom: 6px;
margin-top: 16px;
}
.section-label {
font-size: 10.5px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--accent);
margin-top: 20px;
margin-bottom: 8px;
padding-bottom: 6px;
border-bottom: 1px solid var(--border);
}
/* ═══════════════════════════════════════════════════════
Survival Expander
═══════════════════════════════════════════════════════ */
.survival-expander {
display: flex;
align-items: center;
gap: 10px;
padding: 16px 18px;
margin: 20px 0 8px;
background: var(--accent-subtle);
border: 1px solid rgba(255, 107, 0, 0.2);
border-radius: var(--radius);
cursor: pointer;
transition: var(--transition);
user-select: none;
}
.survival-expander:hover {
background: rgba(255, 107, 0, 0.12);
border-color: rgba(255, 107, 0, 0.35);
transform: translateY(-1px);
}
.expander-left {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
font-size: 13.5px;
font-weight: 700;
color: var(--text-primary);
}
.expander-left svg {
color: var(--accent);
flex-shrink: 0;
filter: drop-shadow(0 0 4px rgba(255, 107, 0, 0.3));
}
.expander-badge {
font-size: 9px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.8px;
padding: 4px 10px;
border-radius: 6px;
background: var(--bg-card);
color: var(--text-muted);
}
.expander-badge.badge-active {
background: var(--green-bg);
color: var(--green);
animation: badge-pulse 2s infinite alternate ease-in-out;
}
@keyframes badge-pulse {
0% { opacity: 0.8; }
100% { opacity: 1; }
}
.expander-chevron {
color: var(--text-muted);
transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
flex-shrink: 0;
}
.survival-section {
padding: 4px 0 8px;
}
.survival-section.hidden {
display: none;
}
.surv-label {
color: var(--accent) !important;
border-bottom-color: rgba(255, 107, 0, 0.15) !important;
}
.slider-surv {
accent-color: var(--accent);
}
/* ═══════════════════════════════════════════════════════
Survival Result Cards
═══════════════════════════════════════════════════════ */
.survival-results {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
margin: 24px 0;
}
.surv-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
transition: var(--transition);
position: relative;
overflow: hidden;
}
.surv-card:hover {
border-color: rgba(255, 107, 0, 0.35);
transform: translateY(-4px) scale(1.01);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 107, 0, 0.15);
}
.surv-card-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 14px;
}
.surv-card-icon {
font-size: 18px;
}
.surv-card-title {
font-size: 11px;
font-weight: 800;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.8px;
}
.surv-card-value {
font-family: var(--font-mono);
font-size: 34px;
font-weight: 800;
margin-bottom: 14px;
font-variant-numeric: tabular-nums;
letter-spacing: -0.5px;
}
.surv-card-bar-track {
height: 6px;
background: rgba(255, 255, 255, 0.05);
border-radius: 100px;
overflow: hidden;
}
.surv-card-bar-fill {
height: 100%;
width: 0%;
border-radius: 100px;
transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
will-change: width;
}
.surv-card-sublabel {
margin-top: 10px;
font-size: 10.5px;
color: var(--text-muted);
font-weight: 500;
}
.gauge-label {
text-align: center;
font-size: 11px;
font-weight: 800;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 1px;
margin-top: -2px;
margin-bottom: 8px;
}
.survival-results.hidden {
display: none;
}
/* ═══════════════════════════════════════════════════════
SHAP Cards – Stagger / Clean
═══════════════════════════════════════════════════════ */
.shap-explanations + .shap-explanations {
margin-top: 8px;
}
.shap-explanations .explanations-header {
margin-top: 20px;
padding: 8px 0;
background: transparent;
border-left: none;
}
.shap-explanations .explanation-card {
border-left: 2px solid transparent;
}
.shap-explanations .explanation-card:hover {
border-left-color: var(--accent);
background: var(--bg-card-hover);
transform: translateX(4px);
}
/* ─── Model Info Grid ─── */
.model-info-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
margin-top: 28px;
border-top: 1px solid var(--border);
padding-top: 20px;
width: 100%;
}
.info-card {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 14px 10px;
background: var(--bg-card);
border-radius: var(--radius-sm);
border: 1px solid var(--border);
transition: var(--transition);
}
.info-card:hover {
border-color: rgba(45, 212, 232, 0.25);
background: var(--bg-card-hover);
transform: translateY(-2px);
}
.info-icon {
font-size: 20px;
margin-bottom: 6px;
filter: drop-shadow(0 0 6px rgba(255, 106, 0, 0.25));
}
.info-card h5 {
font-size: 11.5px;
font-weight: 700;
color: var(--text-secondary);
margin-bottom: 4px;
}
.info-card p {
font-size: 10.5px;
color: var(--text-muted);
line-height: 1.4;
margin: 0;
}
/* ═══════════════════════════════════════════════════════
Orquestador Decision Alerts
═══════════════════════════════════════════════════════ */
.decision-alert.proceder {
background: rgba(16, 185, 129, 0.05);
border: 1px solid rgba(16, 185, 129, 0.2);
border-radius: var(--radius);
}
.decision-alert.modificar {
background: rgba(245, 158, 11, 0.05);
border: 1px solid rgba(245, 158, 11, 0.2);
border-radius: var(--radius);
}
.decision-alert.escalar {
background: rgba(239, 68, 68, 0.05);
border: 1px solid rgba(239, 68, 68, 0.2);
border-radius: var(--radius);
}
.decision-alert.error-ood {
background: rgba(139, 92, 246, 0.05);
border: 1px solid rgba(139, 92, 246, 0.2);
border-radius: var(--radius);
}
/* ═══════════════════════════════════════════════════════
Fallbacks
═══════════════════════════════════════════════════════ */
@supports not (backdrop-filter: blur(1px)) {
.panel-left, .top-nav {
background: var(--bg-panel);
}
}
/* ─── Modern Dev refinements ─── */
.top-nav-link svg {
flex-shrink: 0;
stroke-width: 2.2;
transition: transform var(--transition);
}
.top-nav-link:hover svg {
transform: translateY(-1px);
}
.factor-val {
font-family: var(--font-mono);
font-weight: 700;
color: var(--text-primary);
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
/* ─── Premium Entry & Micro-Animations ─── */
@keyframes fadeInUpSmooth {
0% { opacity: 0; transform: translateY(24px) scale(0.98); filter: blur(4px); }
100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes fadeInRightSmooth {
0% { opacity: 0; transform: translateX(-24px); filter: blur(4px); }
100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}
@keyframes glowPulseStrong {
0%, 100% { box-shadow: 0 6px 20px rgba(255, 106, 0, 0.3); }
50% { box-shadow: 0 10px 32px rgba(255, 106, 0, 0.6); }
}
/* Page load animations */
.panel-left {
animation: fadeInRightSmooth 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.panel-right {
animation: fadeInUpSmooth 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
/* Card staggered entry */
.result-card, .surv-card, .explanation-card {
animation: fadeInUpSmooth 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.surv-card:nth-child(1), .explanation-card:nth-child(1) { animation-delay: 0.1s; }
.surv-card:nth-child(2), .explanation-card:nth-child(2) { animation-delay: 0.15s; }
.surv-card:nth-child(3), .explanation-card:nth-child(3) { animation-delay: 0.2s; }
.surv-card:nth-child(4), .explanation-card:nth-child(4) { animation-delay: 0.25s; }
.surv-card:nth-child(5), .explanation-card:nth-child(5) { animation-delay: 0.3s; }
/* Button hover pulse */
.btn-predict:hover {
animation: glowPulseStrong 2s infinite alternate ease-in-out;
}
/* ─── Telemetry Bar ─── */
.telemetry-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 18px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 100px;
margin-bottom: 24px;
font-size: 11.5px;
color: var(--text-muted);
}
.telemetry-status {
display: flex;
align-items: center;
gap: 6px;
color: var(--text-secondary);
font-weight: 600;
}
.status-pulse {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 8px var(--accent);
animation: pulse-glow 2s infinite ease-in-out;
}
::selection {
background: var(--accent);
color: #fff;
}
a { color: inherit; }
/* Soft halo behind the gauge, tying the two accent colors together */
.gauge-container::before {
content: "";
position: absolute;
top: 46%;
left: 50%;
width: 260px;
height: 260px;
transform: translate(-50%, -50%);
background: radial-gradient(circle, rgba(255, 106, 0, 0.12) 0%, rgba(45, 212, 232, 0.06) 45%, transparent 72%);
filter: blur(22px);
pointer-events: none;
z-index: -1;
}
.gauge-container {
isolation: isolate;
position: relative;
}
/* User avatar refinement, if present on any page */
.user-avatar {
background: linear-gradient(135deg, var(--accent), var(--signal));
}
/* Model status / cockpit cards (orquestador) inherit the same hover language */
.model-status-card, .cockpit-card {
transition: var(--transition) !important;
}
.model-status-card:hover {
transform: translateY(-2px);
}
/* ─── Premium Animations ─── */
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(15px); }
to { opacity: 1; transform: translateY(0); }
}
.factor-item, .explanation-card {
animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
opacity: 0;
}
.factor-item:nth-child(1) { animation-delay: 0.05s; }
.factor-item:nth-child(2) { animation-delay: 0.10s; }
.factor-item:nth-child(3) { animation-delay: 0.15s; }
.factor-item:nth-child(4) { animation-delay: 0.20s; }
.factor-item:nth-child(5) { animation-delay: 0.25s; }
.factor-item:nth-child(6) { animation-delay: 0.30s; }
.factor-item:nth-child(7) { animation-delay: 0.35s; }
.factor-item:nth-child(8) { animation-delay: 0.40s; }
.explanation-card:nth-child(1) { animation-delay: 0.2s; }
.explanation-card:nth-child(2) { animation-delay: 0.3s; }
.explanation-card:nth-child(3) { animation-delay: 0.4s; }
.explanation-card:nth-child(4) { animation-delay: 0.5s; }
.explanation-card:nth-child(5) { animation-delay: 0.6s; }
/* ─── Toast Notifications ─── */
#toast-container {
position: fixed;
bottom: 20px;
right: 20px;
display: flex;
flex-direction: column;
gap: 10px;
z-index: 9999;
}
.toast {
background: var(--surface-light);
color: var(--text-primary);
border: 1px solid var(--border);
border-left: 4px solid #F0435A;
padding: 12px 16px;
border-radius: var(--radius-sm);
display: flex;
align-items: center;
gap: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.4);
transform: translateX(120%);
transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
font-size: 14px;
font-weight: 500;
max-width: 350px;
}
/* ─── BitΓ‘cora Page Styles (Obsidian Dark Theme + Animations) ─── */
html:has(body.page-bitacora), body.page-bitacora {
height: 100% !important;
overflow-y: auto !important;
background-color: #05070a;
}
.bitacora-wrapper {
padding-top: 88px;
min-height: 100%;
height: auto;
display: flex;
justify-content: center;
padding-bottom: 80px;
background: radial-gradient(circle at 50% 0%, rgba(255, 106, 0, 0.12) 0%, transparent 60%),
radial-gradient(circle at 80% 50%, rgba(245, 166, 35, 0.05) 0%, transparent 40%);
}
.bitacora-container {
width: 100%;
max-width: 860px;
padding: 0 24px;
display: flex;
flex-direction: column;
gap: 48px;
}
/* Header */
.bitacora-header {
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
margin-bottom: 12px;
animation: bitacoraFadeIn 0.5s ease-out forwards;
}
.bitacora-header h1 {
font-size: 38px;
font-weight: 800;
letter-spacing: -1px;
background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.bitacora-subtitle {
font-size: 15.5px;
color: #94a3b8;
max-width: 620px;
line-height: 1.6;
}
.bitacora-subtitle strong {
color: #f1f5f9;
font-weight: 600;
}
/* Sections & Version Headers */
.bitacora-section {
display: flex;
flex-direction: column;
gap: 24px;
animation: bitacoraFadeIn 0.6s ease-out forwards;
}
.version-header {
display: flex;
align-items: center;
gap: 16px;
}
.version-header h2 {
font-size: 22px;
font-weight: 700;
color: #f8fafc;
letter-spacing: -0.3px;
}
.version-pill {
position: relative;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 5px 14px;
border-radius: 20px;
font-size: 12px;
font-weight: 800;
letter-spacing: 0.5px;
text-transform: uppercase;
}
.v4-pill {
background: linear-gradient(135deg, rgba(255, 106, 0, 0.3) 0%, rgba(255, 106, 0, 0.1) 100%);
color: #ff8a2e;
border: 1px solid rgba(255, 106, 0, 0.6);
box-shadow: 0 0 20px rgba(255, 106, 0, 0.35);
}
.v3-pill {
background: linear-gradient(135deg, rgba(255, 106, 0, 0.18) 0%, rgba(255, 106, 0, 0.05) 100%);
color: #ff8a2e;
border: 1px solid rgba(255, 106, 0, 0.35);
box-shadow: 0 0 14px rgba(255, 106, 0, 0.18);
}
.v2-pill {
background: linear-gradient(135deg, rgba(245, 166, 35, 0.2) 0%, rgba(245, 166, 35, 0.05) 100%);
color: #f5a623;
border: 1px solid rgba(245, 166, 35, 0.45);
box-shadow: 0 0 18px rgba(245, 166, 35, 0.2);
}
.version-pulse {
width: 7px;
height: 7px;
border-radius: 50%;
background: #ff6a00;
box-shadow: 0 0 10px #ff6a00;
animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
0%, 100% { transform: scale(1); opacity: 0.8; }
50% { transform: scale(1.4); opacity: 1; }
}
@keyframes bitacoraFadeIn {
from {
opacity: 0;
transform: translateY(24px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Timeline Layout */
.timeline-container {
position: relative;
display: flex;
flex-direction: column;
gap: 24px;
padding-left: 20px;
}
.timeline-container::before {
content: '';
position: absolute;
top: 16px;
bottom: 16px;
left: 39px;
width: 2px;
background: linear-gradient(180deg, rgba(255, 106, 0, 0.4) 0%, rgba(255, 255, 255, 0.03) 100%);
}
.timeline-item {
position: relative;
display: flex;
gap: 24px;
align-items: flex-start;
animation: bitacoraFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-node {
width: 38px;
height: 38px;
border-radius: 12px;
background: linear-gradient(145deg, #181c26 0%, #0d1017 100%);
border: 1px solid rgba(255, 106, 0, 0.5);
color: #ff8a2e;
font-size: 14px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
z-index: 2;
margin-top: 14px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 106, 0, 0.25);
transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.timeline-node.v2-node {
border-color: rgba(245, 166, 35, 0.5);
color: #f5a623;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 14px rgba(245, 166, 35, 0.2);
}
.timeline-item:hover .timeline-node {
transform: scale(1.12);
border-color: #ff6a00;
box-shadow: 0 0 24px rgba(255, 106, 0, 0.6);
}
/* Glassmorphic Navbar-style Card */
.timeline-card {
flex: 1;
background: rgba(10, 12, 16, 0.65);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.08);
border-left: 3px solid #ff6a00;
border-radius: 12px;
padding: 20px 24px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
display: flex;
flex-direction: column;
gap: 10px;
transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
position: relative;
overflow: hidden;
}
.timeline-card::before {
content: '';
position: absolute;
top: 0; left: -100%; right: 0;
width: 200%;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.4), transparent);
transition: transform 0.6s ease;
}
.timeline-item:hover .timeline-card {
transform: translateY(-3px);
background: rgba(14, 17, 23, 0.85);
border-color: rgba(255, 106, 0, 0.3);
border-left-color: #ff8a2e;
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 15px rgba(255, 106, 0, 0.1);
}
.timeline-item:hover .timeline-card::before {
transform: translateX(50%);
}
.timeline-card h3 {
font-size: 16px;
font-weight: 700;
color: #f8fafc;
line-height: 1.4;
letter-spacing: -0.2px;
}
.card-description {
font-size: 13.5px;
color: #94a3b8;
line-height: 1.65;
padding-left: 0;
}
.why-tag {
color: #ff8a2e;
font-weight: 700;
margin-right: 4px;
}
.why-tag.v2-tag {
color: #f5a623;
}
/* Doctors Accordion (Hardware Accelerated Glass) */
.doctors-accordion {
background: rgba(10, 12, 16, 0.75);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border: 1px solid rgba(245, 166, 35, 0.25);
border-radius: 16px;
overflow: hidden;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
will-change: transform;
}
.doctors-accordion[open] {
border-color: rgba(245, 166, 35, 0.45);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.accordion-summary {
padding: 20px 26px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
user-select: none;
background: transparent;
list-style: none;
transition: background 0.2s ease;
}
.accordion-summary:hover {
background: rgba(245, 166, 35, 0.04);
}
.accordion-summary::-webkit-details-marker {
display: none;
}
.summary-title {
display: flex;
align-items: center;
gap: 14px;
color: #f5a623;
font-weight: 700;
font-size: 16px;
}
.heart-icon-badge {
width: 36px;
height: 36px;
border-radius: 10px;
background: rgba(245, 166, 35, 0.12);
border: 1px solid rgba(245, 166, 35, 0.25);
display: flex;
align-items: center;
justify-content: center;
color: #f5a623;
}
.chevron-icon {
color: #f5a623;
font-size: 18px;
transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.doctors-accordion[open] .chevron-icon {
transform: rotate(180deg);
}
.accordion-content {
padding: 24px 26px;
border-top: 1px solid rgba(255, 255, 255, 0.05);
background: transparent;
}
.thanks-intro {
font-size: 14px;
color: #cbd5e1;
margin-bottom: 20px;
line-height: 1.6;
}
.thanks-intro strong {
color: #f5a623;
}
.doctors-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 10px;
contain: content;
}
/* 60fps Doctor Item Cards (No nested backdrop-filter overhead) */
.doctor-item {
display: flex;
align-items: center;
padding: 11px 15px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 9px;
font-size: 13.5px;
color: #e2e8f0;
font-weight: 500;
transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
will-change: transform;
}
.doctor-item:hover {
background: rgba(255, 106, 0, 0.1);
border-color: rgba(255, 106, 0, 0.3);
transform: translateY(-2px);
color: #ffffff;
}
.accordion-summary {
padding: 22px 28px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
user-select: none;
background: transparent;
list-style: none;
transition: background 0.2s ease;
}
.accordion-summary:hover {
background: rgba(245, 166, 35, 0.05);
}
.accordion-summary::-webkit-details-marker {
display: none;
}
.summary-title {
display: flex;
align-items: center;
gap: 14px;
color: #f5a623;
font-weight: 700;
font-size: 16px;
}
.heart-icon-badge {
width: 36px;
height: 36px;
border-radius: 10px;
background: rgba(245, 166, 35, 0.12);
border: 1px solid rgba(245, 166, 35, 0.25);
display: flex;
align-items: center;
justify-content: center;
color: #f5a623;
}
.chevron-icon {
color: #f5a623;
font-size: 18px;
transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.doctors-accordion[open] .chevron-icon {
transform: rotate(180deg);
}
/* ─── Medical Disclaimer Component (Compact Obsidian Amber Glass) ─── */
.medical-disclaimer {
display: flex;
align-items: flex-start;
gap: 12px;
background: rgba(245, 158, 11, 0.05);
background-image: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.02) 100%);
border: 1px solid rgba(245, 158, 11, 0.25);
border-left: 3px solid #f59e0b;
border-radius: var(--radius-sm, 8px);
padding: 12px 16px;
margin-top: 20px;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.medical-disclaimer:hover {
border-color: rgba(245, 158, 11, 0.45);
border-left-color: #fbbf24;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 20px rgba(245, 158, 11, 0.15);
transform: translateY(-1px);
}
.medical-disclaimer-icon-wrapper {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
background: rgba(245, 158, 11, 0.15);
border: 1px solid rgba(245, 158, 11, 0.35);
border-radius: 8px;
flex-shrink: 0;
color: #f59e0b;
box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
margin-top: 1px;
}
.medical-disclaimer-icon {
width: 16px;
height: 16px;
stroke: #f59e0b;
}
.medical-disclaimer-content {
flex: 1;
}
.medical-disclaimer-title {
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.06em;
color: #fbbf24;
margin-bottom: 3px;
text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
display: flex;
align-items: center;
gap: 6px;
}
.medical-disclaimer-text {
font-size: 12px;
line-height: 1.45;
color: rgba(241, 245, 249, 0.85);
}
.medical-disclaimer-text strong {
color: #fbbf24;
font-weight: 700;
}