From c007523017b18229ba17faa72ba994982825e27b Mon Sep 17 00:00:00 2001 From: Deep Koluguri Date: Fri, 15 May 2026 16:09:43 -0400 Subject: [PATCH] new updates --- dashboard.css | 299 +++++++++++++++++++++++++++++++++++++++++++++++++ dashboard.html | 158 +++++++++++++------------- dashboard.js | 42 ++++++- 3 files changed, 419 insertions(+), 80 deletions(-) diff --git a/dashboard.css b/dashboard.css index c277af1..ff63fab 100644 --- a/dashboard.css +++ b/dashboard.css @@ -943,9 +943,308 @@ border-top: 1px solid var(--border); display: flex; justify-content: flex-end; + align-items: center; gap: 0.75rem; } +/* Prescription modal */ +.rx-modal .rx-modal-content { + max-width: 920px; + width: 100%; +} + +.rx-modal .modal-header { + align-items: flex-start; + gap: 1rem; +} + +.rx-modal .modal-header-text h2 { + font-size: 1.35rem; + margin-bottom: 0.25rem; +} + +.rx-modal .modal-subtitle { + font-size: 0.875rem; + color: var(--text-muted); + font-weight: 400; +} + +.rx-modal .close-modal { + width: 2.25rem; + height: 2.25rem; + display: inline-flex; + align-items: center; + justify-content: center; + border-radius: 50%; + border: 1px solid var(--border); + background: var(--bg); + font-size: 1.35rem; + flex-shrink: 0; + transition: var(--transition); +} + +.rx-modal .close-modal:hover { + background: var(--surface); + border-color: var(--text-muted); +} + +.rx-voice-bar { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 0.75rem; + padding: 1rem; + background: var(--bg); + border: 1px solid var(--border); + border-radius: var(--radius-md); + margin-bottom: 1.5rem; +} + +.rx-record-btn { + display: inline-flex; + align-items: center; + gap: 0.5rem; +} + +.rx-recording-status { + display: inline-flex; + align-items: center; + gap: 0.5rem; + font-size: 0.875rem; + font-weight: 600; + color: var(--urgent); +} + +.rx-ai-draft { + flex: 1 1 100%; + padding: 0.75rem 1rem; + background: rgba(37, 99, 235, 0.06); + border-radius: var(--radius-sm); + border: 1px solid rgba(37, 99, 235, 0.15); +} + +.rx-ai-draft h4 { + font-size: 0.8rem; + color: var(--secondary); + margin-bottom: 0.35rem; +} + +.rx-ai-draft p { + font-size: 0.875rem; + color: var(--text-muted); + line-height: 1.5; +} + +.rx-panels { + display: grid; + grid-template-columns: 1.4fr 1fr; + gap: 1.5rem; + align-items: start; +} + +.rx-form-panel { + display: flex; + flex-direction: column; + gap: 1.5rem; +} + +.rx-field { + display: flex; + flex-direction: column; + gap: 0.5rem; +} + +.rx-label { + font-size: 0.75rem; + font-weight: 600; + color: var(--text-muted); + text-transform: uppercase; + letter-spacing: 0.05em; +} + +.rx-input, +.rx-textarea { + width: 100%; + padding: 0.75rem 1rem; + border: 1px solid var(--border); + border-radius: var(--radius-md); + background: var(--bg); + color: var(--text-main); + font-family: inherit; + font-size: 0.95rem; + transition: var(--transition); +} + +.rx-input:focus, +.rx-textarea:focus { + outline: none; + border-color: var(--secondary); + background: var(--surface); + box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); +} + +.rx-input::placeholder, +.rx-textarea::placeholder { + color: #94A3B8; +} + +.rx-table-head { + display: grid; + grid-template-columns: 2fr 1fr 1fr; + gap: 0.75rem; + font-size: 0.7rem; + font-weight: 600; + color: var(--text-muted); + text-transform: uppercase; + letter-spacing: 0.04em; + padding: 0 0.15rem; +} + +.med-row, +.lab-row { + display: grid; + grid-template-columns: 2fr 1fr 1fr; + gap: 0.75rem; + margin-bottom: 0.75rem; +} + +.lab-row { + grid-template-columns: 1fr; +} + +.medicine-list .med-row:last-child, +#labTestList .lab-row:last-child { + margin-bottom: 0; +} + +.rx-add-btn { + align-self: flex-start; + display: inline-flex; + align-items: center; + gap: 0.35rem; + padding: 0.55rem 1rem; + border: 1px dashed var(--border); + border-radius: var(--radius-md); + background: transparent; + color: var(--secondary); + font-size: 0.875rem; + font-weight: 600; + cursor: pointer; + transition: var(--transition); +} + +.rx-add-btn:hover { + background: rgba(37, 99, 235, 0.06); + border-color: var(--secondary); +} + +.rx-sidebar { + background: var(--bg); + border: 1px solid var(--border); + border-radius: var(--radius-lg); + padding: 1.25rem; + display: flex; + flex-direction: column; + gap: 1.25rem; +} + +.rx-sidebar-block + .rx-sidebar-block { + padding-top: 1.25rem; + border-top: 1px solid var(--border); +} + +.rx-sidebar-title { + font-size: 0.75rem; + font-weight: 700; + color: var(--text-muted); + text-transform: uppercase; + letter-spacing: 0.05em; + margin-bottom: 0.75rem; +} + +.rx-history-list { + list-style: none; + display: flex; + flex-direction: column; + gap: 0.65rem; +} + +.rx-history-list li { + font-size: 0.875rem; + color: var(--text-main); + line-height: 1.45; + padding-bottom: 0.65rem; + border-bottom: 1px solid var(--border); +} + +.rx-history-list li:last-child { + padding-bottom: 0; + border-bottom: none; +} + +.rx-history-list strong { + color: var(--text-main); +} + +.rx-tips-grid { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 0.5rem; +} + +.rx-tip-btn { + padding: 0.6rem 0.75rem; + border: 1px solid var(--border); + border-radius: var(--radius-sm); + background: var(--surface); + color: var(--text-main); + font-size: 0.8rem; + font-weight: 600; + cursor: pointer; + text-align: left; + transition: var(--transition); +} + +.rx-tip-btn:hover { + border-color: var(--secondary); + background: rgba(37, 99, 235, 0.04); + color: var(--secondary); +} + +.rx-modal .modal-footer { + justify-content: space-between; +} + +.rx-modal .modal-footer .btn { + min-width: 120px; +} + +.rx-send-btn { + min-width: 180px !important; +} + +@media (max-width: 768px) { + .rx-panels { + grid-template-columns: 1fr; + } + + .rx-table-head { + display: none; + } + + .med-row { + grid-template-columns: 1fr; + } + + .rx-modal .modal-footer { + flex-direction: column-reverse; + } + + .rx-modal .modal-footer .btn { + width: 100%; + } +} + /* Mobile sidebar */ .sidebar-mobile-toggle { display: none; diff --git a/dashboard.html b/dashboard.html index bab2ec7..5e9b8e7 100644 --- a/dashboard.html +++ b/dashboard.html @@ -350,88 +350,92 @@ -