fix: structural reset of clinical zen layout (v14)
Build Curio HMS / build-and-deploy (push) Has been cancelled
Details
Build Curio HMS / build-and-deploy (push) Has been cancelled
Details
This commit is contained in:
parent
c48ddd40f0
commit
5d8f844b74
229
dashboard.css
229
dashboard.css
|
|
@ -1,173 +1,164 @@
|
|||
/* --- MOBILE-FIRST BASE STYLES --- */
|
||||
/* --- CURIO CLINICAL ZEN: MASTER DESIGN SYSTEM --- */
|
||||
:root {
|
||||
--primary: #0F172A;
|
||||
--secondary: #2563EB;
|
||||
--accent: #F59E0B;
|
||||
--secondary: #3B82F6;
|
||||
--success: #10B981;
|
||||
--danger: #EF4444;
|
||||
--bg: #F8FAFC;
|
||||
--sidebar-bg: #0B1120;
|
||||
--card: #FFFFFF;
|
||||
--border: #E2E8F0;
|
||||
--text: #334155;
|
||||
--sidebar-width: 260px;
|
||||
--text-main: #1E293B;
|
||||
--text-muted: #64748B;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
body {
|
||||
font-family: 'Inter', sans-serif;
|
||||
background-color: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: 'Inter', 'Outfit', sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text-main);
|
||||
overflow-x: hidden;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* Layout Container */
|
||||
.dashboard-body {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
}
|
||||
/* --- RESPONSIVE LAYOUT --- */
|
||||
.app-container { display: flex; min-height: 100vh; }
|
||||
|
||||
/* Sidebar Styling - Mobile First */
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: var(--sidebar-width);
|
||||
height: 100vh;
|
||||
background: var(--primary);
|
||||
width: 260px;
|
||||
background: var(--sidebar-bg);
|
||||
color: white;
|
||||
z-index: 1000;
|
||||
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transform: translateX(-100%);
|
||||
padding: 1.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2rem;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.sidebar.active {
|
||||
transform: translateX(0);
|
||||
box-shadow: 10px 0 30px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.sidebar-mobile-toggle {
|
||||
position: fixed;
|
||||
top: 15px;
|
||||
left: 15px;
|
||||
z-index: 1100;
|
||||
background: var(--secondary);
|
||||
color: white;
|
||||
padding: 10px 15px;
|
||||
border-radius: 8px;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
/* Main Content Area */
|
||||
.main-content {
|
||||
flex: 1;
|
||||
padding: 70px 15px 20px; /* Space for mobile toggle */
|
||||
width: 100%;
|
||||
transition: margin-left 0.3s ease;
|
||||
padding: 2rem;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Desktop Sidebar Behavior */
|
||||
@media (min-width: 1024px) {
|
||||
.sidebar {
|
||||
transform: translateX(0);
|
||||
position: sticky;
|
||||
}
|
||||
.sidebar-mobile-toggle {
|
||||
display: none;
|
||||
}
|
||||
.main-content {
|
||||
padding: 30px 40px;
|
||||
}
|
||||
@media (max-width: 1024px) {
|
||||
.sidebar { width: 80px; padding: 1rem; }
|
||||
.sidebar .logo-text, .sidebar .logo-text, .sidebar span { display: none; }
|
||||
.sidebar .side-nav a { justify-content: center; padding: 1rem 0; }
|
||||
.sidebar .user-profile { flex-direction: column; align-items: center; }
|
||||
}
|
||||
|
||||
/* --- DOCTOR ZEN VIEW: RESPONSIVE GRID --- */
|
||||
/* --- DOCTOR ZEN WORKSPACE --- */
|
||||
.doctor-zen-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.doctor-zen-section {
|
||||
display: grid;
|
||||
grid-template-columns: 320px 1fr;
|
||||
height: calc(100vh - 100px);
|
||||
}
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.doctor-zen-section { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
/* Pipeline Cards */
|
||||
.patient-pipeline {
|
||||
background: var(--card);
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 20px;
|
||||
padding: 1.5rem;
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--border);
|
||||
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
|
||||
}
|
||||
|
||||
.pipeline-card {
|
||||
background: #F1F5F9;
|
||||
padding: 1rem;
|
||||
border-radius: 12px;
|
||||
margin-bottom: 0.75rem;
|
||||
border-left: 4px solid var(--border);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.pipeline-card:hover { transform: translateX(5px); background: #E2E8F0; }
|
||||
.pipeline-card.active { border-left-color: var(--secondary); background: #EFF6FF; }
|
||||
|
||||
/* Workspace Area */
|
||||
.clinical-workspace-area {
|
||||
background: var(--card);
|
||||
border-radius: 16px;
|
||||
border-radius: 24px;
|
||||
padding: 2.5rem;
|
||||
border: 1px solid var(--border);
|
||||
padding: 2rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
/* --- BUTTONS & ACTIONS --- */
|
||||
.current-patient h1 {
|
||||
font-size: 2rem;
|
||||
color: var(--primary);
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.patient-meta {
|
||||
color: var(--text-muted);
|
||||
font-size: 1rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
/* Buttons Grid */
|
||||
.workspace-actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
||||
gap: 1rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.workspace-actions button, .workspace-actions select {
|
||||
flex: 1 1 140px;
|
||||
padding: 12px;
|
||||
border-radius: 10px;
|
||||
.btn-zen {
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--border);
|
||||
background: white;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
/* --- CLINICAL SUMMARY CARDS --- */
|
||||
.summary-card {
|
||||
background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
|
||||
padding: 1.5rem;
|
||||
.btn-zen:hover { background: #F8FAFC; border-color: var(--secondary); }
|
||||
.btn-primary-zen { background: var(--secondary); color: white; border: none; }
|
||||
.btn-primary-zen:hover { background: #1D4ED8; }
|
||||
|
||||
/* Clinical Notes & Summary */
|
||||
.clinical-notes-card textarea {
|
||||
width: 100%;
|
||||
min-height: 200px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
border: 1px solid #BBF7D0;
|
||||
padding: 1.5rem;
|
||||
font-size: 1.1rem;
|
||||
line-height: 1.6;
|
||||
background: #FDFDFD;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.summary-card {
|
||||
background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
|
||||
border-radius: 20px;
|
||||
padding: 1.5rem;
|
||||
margin-top: 2rem;
|
||||
border: 1px solid #A7F3D0;
|
||||
}
|
||||
|
||||
/* Animations */
|
||||
@keyframes scribePulse {
|
||||
0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
|
||||
70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
|
||||
100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
|
||||
}
|
||||
|
||||
.btn-scribe.active {
|
||||
background: #EF4444 !important;
|
||||
background: var(--danger) !important;
|
||||
color: white !important;
|
||||
animation: scribePulse 2s infinite;
|
||||
}
|
||||
|
||||
/* --- UTILS --- */
|
||||
.hidden { display: none !important; }
|
||||
|
||||
.table-responsive {
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--border);
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
min-width: 600px; /* Force scroll on small screens */
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 15px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
@keyframes scribePulse {
|
||||
0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
|
||||
70% { transform: scale(1.02); box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
|
||||
100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,79 +51,65 @@
|
|||
</div>
|
||||
</header>
|
||||
|
||||
<!-- DOCTOR ZEN VIEW (Clinical Focus) -->
|
||||
<div id="doctor-zen-section" class="hidden">
|
||||
<div class="zen-layout">
|
||||
<!-- Left: The Pipeline -->
|
||||
<aside class="zen-pipeline">
|
||||
<div class="doctor-zen-grid">
|
||||
<!-- Left: Pipeline -->
|
||||
<aside class="patient-pipeline">
|
||||
<div class="pipeline-header">
|
||||
<h3>Up Next</h3>
|
||||
<span class="badge">4 Waiting</span>
|
||||
<h3>Up Next <span class="badge">4 Waiting</span></h3>
|
||||
</div>
|
||||
<div class="pipeline-list">
|
||||
<div class="pipeline-item next" onclick="switchPatientContext('Anjali Singh', '#013', 'High Fever')">
|
||||
<div class="p-token">#013</div>
|
||||
<div class="p-info">
|
||||
<div id="pipelineList">
|
||||
<div class="pipeline-card active" onclick="switchPatientContext('Rahul Verma', '#012', 'Viral Fever')">
|
||||
<span class="patient-id">#012</span>
|
||||
<strong>Rahul Verma</strong>
|
||||
<p>Viral Fever Triage</p>
|
||||
</div>
|
||||
<div class="pipeline-card" onclick="switchPatientContext('Anjali Singh', '#013', 'High Fever')">
|
||||
<span class="patient-id">#013</span>
|
||||
<strong>Anjali Singh</strong>
|
||||
<span class="triage-pill urgent">High Fever</span>
|
||||
<p>High Fever</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pipeline-item" onclick="switchPatientContext('Suresh Kumar', '#014', 'Back Pain')">
|
||||
<div class="p-token">#014</div>
|
||||
<div class="p-info">
|
||||
<div class="pipeline-card" onclick="switchPatientContext('Suresh Kumar', '#014', 'Back Pain')">
|
||||
<span class="patient-id">#014</span>
|
||||
<strong>Suresh Kumar</strong>
|
||||
<span class="triage-pill">Back Pain</span>
|
||||
</div>
|
||||
<p>Back Pain</p>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- Center: The Workspace -->
|
||||
<main class="zen-workspace">
|
||||
<header class="workspace-header">
|
||||
<!-- Center: Workspace -->
|
||||
<main class="clinical-workspace-area">
|
||||
<div class="workspace-header">
|
||||
<div class="current-patient">
|
||||
<span class="status-indicator">NOW SEEING</span>
|
||||
<h1>Rahul Verma <small>(28y, Male)</small></h1>
|
||||
<div class="patient-meta">
|
||||
<span>#012</span> • <span>Viral Fever Triage</span> • <span class="visit-timer">08:45</span>
|
||||
<p class="patient-meta"><span>#012</span> • <span>Viral Fever Triage</span> • <span class="visit-timer">08:45</span></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="workspace-actions">
|
||||
<select id="scribeLang" class="lang-select">
|
||||
<select id="scribeLang" class="btn-zen">
|
||||
<option value="en-US">English</option>
|
||||
<option value="te-IN">తెలుగు (Telugu)</option>
|
||||
</select>
|
||||
<button id="zenScribeBtn" class="btn-scribe" onclick="toggleZenScribe()">🎙️ Start AI Scribe</button>
|
||||
<button class="btn-secondary" onclick="openHistory()">📂 History</button>
|
||||
<button class="btn-primary" onclick="openConsultation()">✍️ Start Consultation</button>
|
||||
<button id="zenScribeBtn" class="btn-zen" onclick="toggleZenScribe()">🎙️ Start AI Scribe</button>
|
||||
<button class="btn-zen" onclick="openHistory()">📂 History</button>
|
||||
<button class="btn-zen btn-primary-zen" onclick="openConsultation()">✍️ Start Consultation</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div id="scribeStatus" class="scribe-indicator hidden">
|
||||
<span class="dot"></span> AI is listening and transcribing clinical insights...
|
||||
<span class="dot"></span> AI is listening and transcribing...
|
||||
</div>
|
||||
|
||||
<div class="zen-grid">
|
||||
<div class="clinical-workspace-area">
|
||||
<div class="clinical-notes-card">
|
||||
<div class="card-header">Consultation Notes</div>
|
||||
<textarea id="consultationNotes" placeholder="Start typing or use Voice AI..." class="zen-textarea"></textarea>
|
||||
<textarea id="consultationNotes" placeholder="Start typing or use Voice AI..."></textarea>
|
||||
</div>
|
||||
|
||||
<div id="aiSummaryCard" class="summary-card hidden">
|
||||
<div class="card-header">✨ AI Clinical Summary</div>
|
||||
<h4>✨ AI Clinical Summary</h4>
|
||||
<div id="summaryText" class="summary-content"></div>
|
||||
<div class="summary-actions">
|
||||
<button class="btn-small secondary" onclick="shareSummary()">📤 Send to Patient</button>
|
||||
<button class="btn-small secondary" onclick="printSummary()">🖨️ Print Summary</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="quick-links">
|
||||
<div class="card-header">Quick References</div>
|
||||
<button class="btn-small secondary">Diabetes Guidelines</button>
|
||||
<button class="btn-small secondary">Drug Interaction Checker</button>
|
||||
<button class="btn-zen" onclick="shareSummary()">📤 Send to Patient</button>
|
||||
<button class="btn-zen" onclick="printSummary()">🖨️ Print</button>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
|
|
|||
Loading…
Reference in New Issue