Files
FHIR-Sandbox/app/static/css/styles.css
2026-02-20 23:59:46 -05:00

325 lines
15 KiB
CSS

:root {
/* Ultra-refined Palette (Anthropic / Apple inspired) */
--bg-app: #FCFCFC; /* Very subtle warm off-white for main background */
--bg-panel: #FFFFFF; /* Pure white for cards */
--bg-hover: #F4F4F5; /* Zinc 100 for subtle hovers */
--border-soft: #F4F4F5; /* Zinc 100 */
--border-hard: #E4E4E7; /* Zinc 200 */
--border-focus: #A1A1AA; /* Zinc 400 */
--text-main: #18181B; /* Zinc 900 - Almost black */
--text-muted: #71717A; /* Zinc 500 - Refined gray */
--text-faint: #A1A1AA; /* Zinc 400 - For placeholders/meta */
--brand-dark: #09090B; /* Anthropic style primary action */
--brand-light: #F4F4F5;
/* Semantic Colors - Muted & Sophisticated */
--accent-blue: #0284C7; /* Sky 600 */
--accent-blue-bg: #F0F9FF; /* Sky 50 */
--danger: #E11D48; /* Rose 600 */
--danger-bg: #FFF1F2; /* Rose 50 */
--warning: #D97706; /* Amber 600 */
--warning-bg: #FFFBEB; /* Amber 50 */
--success: #059669; /* Emerald 600 */
--success-bg: #ECFDF5; /* Emerald 50 */
/* Shapes & Metrics */
--radius-sm: 6px;
--radius-md: 12px;
--radius-lg: 20px;
--radius-full: 9999px;
/* Shadows - Apple-style diffused */
--shadow-subtle: 0 2px 8px -2px rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
--shadow-float: 0 12px 32px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
}
/* Reset & Typography */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: var(--font-sans);
background-color: var(--bg-app);
color: var(--text-main);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
min-height: 100vh;
display: flex;
flex-direction: column;
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; color: var(--text-main); line-height: 1.2; }
a { color: var(--text-main); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-muted); }
/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; width: 100%; }
main { flex: 1; padding: 3rem 0; }
/* Navbar */
.navbar {
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border-hard);
position: sticky; top: 0; z-index: 50;
padding: 1rem 0;
}
.navbar-content { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text-main); display: flex; align-items: center; gap: 0.5rem; }
.brand .brand-light { font-weight: 400; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.875rem; font-weight: 500; }
.nav-link { color: var(--text-muted); }
.nav-link:hover { color: var(--text-main); }
/* Buttons */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
padding: 0.5rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500;
cursor: pointer; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid transparent;
}
.btn-primary { background: var(--brand-dark); color: white; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.btn-primary:hover { background: #27272A; transform: translateY(-1px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.btn-secondary, .btn-outline { background: white; color: var(--text-main); border-color: var(--border-hard); box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.btn-secondary:hover, .btn-outline:hover { background: var(--bg-hover); }
.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn-danger:hover { background: #FFE4E6; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-icon { padding: 0.375rem; border-radius: var(--radius-sm); }
/* Panels / Cards */
.panel {
background: var(--bg-panel); border-radius: var(--radius-md);
border: 1px solid var(--border-soft); box-shadow: var(--shadow-subtle);
}
.panel-padded { padding: 2rem; }
/* Typography Utilities */
.text-main { color: var(--text-main); }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-blue { color: var(--accent-blue); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; letter-spacing: -0.03em; }
.text-3xl { font-size: 1.875rem; letter-spacing: -0.04em; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-mono { font-family: var(--font-mono); }
.uppercase { text-transform: uppercase; letter-spacing: 0.05em; }
/* Layout Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.w-full { width: 100%; }
/* Avatars */
.avatar {
display: flex; align-items: center; justify-content: center;
border-radius: var(--radius-full); font-weight: 600;
background: var(--bg-hover); color: var(--text-main); border: 1px solid var(--border-hard);
}
.avatar-sm { width: 32px; height: 32px; font-size: 0.875rem; }
.avatar-md { width: 48px; height: 48px; font-size: 1.125rem; }
.avatar-lg { width: 80px; height: 80px; font-size: 2rem; background: var(--bg-panel); box-shadow: var(--shadow-subtle); border-color: var(--border-soft); }
/* Badges */
.badge {
display: inline-flex; align-items: center; padding: 0.125rem 0.5rem;
border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 500;
}
.badge-neutral { background: var(--bg-hover); color: var(--text-muted); border: 1px solid var(--border-hard); }
.badge-blue { background: var(--accent-blue-bg); color: var(--accent-blue); border: 1px solid #BAE6FD; }
.badge-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #FECDD3; }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #FDE68A; }
.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid #A7F3D0; }
/* Tables - Elegant & Airy */
.table-wrapper { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th {
font-weight: 500; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase;
letter-spacing: 0.05em; border-bottom: 1px solid var(--border-hard);
padding: 1rem 0.75rem; text-align: left; background: var(--bg-panel);
}
td {
padding: 1.25rem 0.75rem; border-bottom: 1px solid var(--border-soft);
color: var(--text-main); font-size: 0.875rem; vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #FAFAFB; }
.td-sub { color: var(--text-muted); font-size: 0.8125rem; margin-top: 0.25rem; }
/* Tabs - Minimal Underline */
.tabs { display: flex; gap: 2rem; border-bottom: 1px solid var(--border-hard); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
background: none; border: none; padding: 0 0 1rem 0; margin-bottom: -1px;
color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { color: var(--text-main); border-bottom-color: var(--text-main); }
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
/* Inputs / Search */
.input-base {
width: 100%; padding: 0.625rem 1rem; border-radius: var(--radius-sm);
border: 1px solid var(--border-hard); background: var(--bg-panel);
color: var(--text-main); font-size: 0.875rem; outline: none; transition: border-color 0.2s;
}
.input-base:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(161, 161, 170, 0.1); }
.search-wrapper { position: relative; display: flex; align-items: center; max-width: 480px; }
.search-icon { position: absolute; left: 1rem; color: var(--text-faint); pointer-events: none; }
.search-input { padding-left: 2.75rem; border-radius: var(--radius-full); background: var(--bg-hover); border-color: transparent; }
.search-input:focus { background: var(--bg-panel); border-color: var(--border-hard); }
/* Key-Value Lists */
.kv-list { display: flex; flex-direction: column; gap: 0.75rem; }
.kv-row { display: flex; flex-direction: column; gap: 0.125rem; }
.kv-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.kv-value { font-size: 0.875rem; color: var(--text-main); }
/* Animation Utils */
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* Grid Utilities */
.grid { display: grid; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) {
.lg\:flex-col { flex-direction: column; }
.lg\:grid-cols-1 { grid-template-columns: minmax(0, 1fr); }
}
/* Page Headers */
.page-header { margin-bottom: 2rem; }
.page-title { font-size: 1.875rem; font-weight: 600; color: var(--text-main); margin: 0; letter-spacing: -0.04em; }
.page-subtitle { font-size: 1rem; color: var(--text-muted); margin-top: 0.25rem; }
/* Dashboard Specific Layout */
.dashboard-layout { display: flex; gap: 1.5rem; align-items: flex-start; }
.dashboard-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.dashboard-sidebar { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 1024px) {
.dashboard-layout { flex-direction: column; }
.dashboard-sidebar { width: 100%; order: 2; }
.dashboard-main { order: 1; }
}
/* Custom UI Components for App */
.flash-message {
background: var(--success-bg); color: var(--success);
padding: 1rem; border-radius: var(--radius-md); border: 1px solid #A7F3D0;
display: flex; align-items: center; justify-content: space-between;
}
.mrn-badge {
background: var(--bg-hover); color: var(--text-muted); padding: 0.25rem 0.5rem; border-radius: var(--radius-sm);
font-size: 0.875rem; font-weight: 500; font-family: var(--font-mono); border: 1px solid var(--border-hard);
}
.patient-meta-strip { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.meta-item { font-size: 0.875rem; color: var(--text-muted); }
.meta-item strong { color: var(--text-main); font-weight: 500; }
.stat-card { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 600; line-height: 1; margin-bottom: 0.25rem; letter-spacing: -0.04em; }
.stat-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card.danger { border-top: 3px solid var(--danger); }
/* Vitals strip & grid */
.vitals-strip { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; }
.vital-item { min-width: 140px; background: var(--bg-hover); padding: 1rem; border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 0.25rem; border: 1px solid var(--border-soft); }
.vital-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vital-value { font-size: 1.25rem; font-weight: 600; color: var(--text-main); }
.vital-value small { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); }
.vital-date { font-size: 0.65rem; color: var(--text-muted); }
.vital-abnormal { background: var(--danger-bg); border-color: #FECDD3; }
.vital-abnormal .vital-value { color: var(--danger); }
.vitals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.alert-card { border-left: 3px solid var(--danger); }
.alert-item { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.5rem 0; }
.alert-code { font-weight: 600; color: var(--danger); font-size: 0.875rem; }
.alert-detail { font-size: 0.75rem; color: var(--text-muted); }
.inspector-card { background: var(--bg-hover); border: 1px dashed var(--border-focus); }
.inspector-content { margin-top: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.inspect-item .label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 0.25rem; }
.scopes-cloud { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.scope-tag { font-size: 0.75rem; background: var(--bg-panel); border: 1px solid var(--border-hard); padding: 0.125rem 0.375rem; border-radius: var(--radius-sm); color: var(--text-muted); font-family: var(--font-mono); }
.practitioner-mini-card { display: flex; align-items: center; gap: 0.5rem; background: var(--bg-hover); padding: 0.25rem 0.75rem 0.25rem 0.25rem; border-radius: var(--radius-full); border: 1px solid var(--border-soft); }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); font-style: italic; }
.row-abnormal { background: var(--danger-bg); }
/* Note cards */
.notes-list { display: flex; flex-direction: column; gap: 1rem; }
.note-item { display: flex; flex-direction: column; gap: 0.5rem; }
.note-header { display: flex; align-items: center; gap: 0.75rem; }
.note-date { font-weight: 500; font-size: 0.875rem; color: var(--text-main); }
.note-type { font-size: 0.875rem; color: var(--text-muted); }
.note-desc { font-size: 0.875rem; color: var(--text-main); line-height: 1.5; }
/* Directory toolbar */
.directory-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: var(--bg-hover); border-bottom: 1px solid var(--border-hard); }
/* Additional Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.pt-4 { padding-top: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.min-h-\[400px\] { min-height: 400px; }
.tracking-wider { letter-spacing: 0.05em; }
.break-all { word-break: break-all; }
/* Tailwind-like utilities used in templates */
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-hard { border-color: var(--border-hard); }
.bg-panel { background-color: var(--bg-panel); }
/* Additional Spacing & Layout Utilities */
.m-0 { margin: 0; }
.p-0 { padding: 0; }
.p-5 { padding: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.shrink-0 { flex-shrink: 0; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.max-w-\[500px\] { max-width: 500px; }
.align-middle { vertical-align: middle; }
.border-l-brand { border-left: 6px solid var(--brand-dark); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }