From d92ef4730993df7555cd9abbb2b9d3e4bf2664ee Mon Sep 17 00:00:00 2001 From: Sanika Gurav Date: Thu, 15 Oct 2026 12:48:04 +0530 Subject: [PATCH] Update admin and patient interface --- Project_1-main/backend/templates/admin.html | 74 ++++++++ Project_1-main/backend/templates/index.html | 193 ++++++++++++++++++++ 2 files changed, 267 insertions(+) diff --git a/Project_1-main/backend/templates/admin.html b/Project_1-main/backend/templates/admin.html index d45997f..5efd645 100644 --- a/Project_1-main/backend/templates/admin.html +++ b/Project_1-main/backend/templates/admin.html @@ -724,6 +724,80 @@ margin-bottom: 14px; display: none; } + + /* ======================================================== + FLEXIBLE RESPONSIVE TYPOGRAPHY & MOBILE BREAKPOINTS + ======================================================== */ + html { + font-size: clamp(14px, 0.95vw + 10px, 16px); + } + + .brand-title h1 { + font-size: clamp(1.05rem, 2.5vw, 1.35rem) !important; + } + .stat-content h3 { + font-size: clamp(1.2rem, 2.8vw, 1.6rem) !important; + } + .stat-content span { + font-size: clamp(0.7rem, 1.5vw, 0.78rem) !important; + } + .modal-header h3 { + font-size: clamp(1.05rem, 2.5vw, 1.25rem) !important; + } + + @media (max-width: 1024px) { + .admin-layout { + padding: 16px; + } + .stats-grid { + grid-template-columns: repeat(2, 1fr); + gap: 14px; + } + } + + @media (max-width: 768px) { + .admin-header { + padding: 10px 14px; + flex-wrap: wrap; + gap: 10px; + } + .admin-layout { + padding: 12px 10px; + } + .controls-card { + flex-direction: column; + align-items: stretch; + gap: 10px; + } + .search-box { + max-width: 100%; + } + .filter-group { + width: 100%; + justify-content: space-between; + } + .table-card { + padding: 12px; + } + .table-responsive { + overflow-x: auto; + -webkit-overflow-scrolling: touch; + } + .modal-box { + max-width: 95%; + margin: 10px; + } + } + + @media (max-width: 480px) { + .stats-grid { + grid-template-columns: 1fr; + gap: 10px; + } + .brand-title p { + display: none; + } + } diff --git a/Project_1-main/backend/templates/index.html b/Project_1-main/backend/templates/index.html index c9aedf7..3b596bb 100644 --- a/Project_1-main/backend/templates/index.html +++ b/Project_1-main/backend/templates/index.html @@ -2039,6 +2039,199 @@ .btn-action-del:hover { background: #fee2e2; } + + /* ======================================================== + FLEXIBLE & RESPONSIVE TYPOGRAPHY & VIEWPORT SYSTEM + ======================================================== */ + html { + font-size: clamp(14px, 0.95vw + 10px, 16px); + scroll-behavior: smooth; + } + + /* Fluid Text Sizing across components */ + .brand-titles h1 { + font-size: clamp(1.02rem, 2.5vw, 1.35rem) !important; + } + .brand-titles p { + font-size: clamp(0.68rem, 1.6vw, 0.78rem) !important; + } + .chat-bubble { + font-size: clamp(0.86rem, 2vw, 0.96rem) !important; + line-height: 1.55; + word-break: break-word; + } + .chat-sender-name { + font-size: clamp(0.68rem, 1.5vw, 0.75rem) !important; + } + .patient-name-title { + font-size: clamp(0.92rem, 2.2vw, 1.05rem) !important; + } + .meta-value { + font-size: clamp(0.8rem, 1.8vw, 0.9rem) !important; + } + .meta-label { + font-size: clamp(0.62rem, 1.4vw, 0.7rem) !important; + } + .mic-status-label { + font-size: clamp(0.9rem, 2.2vw, 1.05rem) !important; + } + .mic-status-sub { + font-size: clamp(0.72rem, 1.6vw, 0.8rem) !important; + } + .sidebar-nav-item { + font-size: clamp(0.82rem, 1.8vw, 0.9rem) !important; + } + .admin-stat-details h3 { + font-size: clamp(1.2rem, 2.5vw, 1.55rem) !important; + } + .admin-stat-details span { + font-size: clamp(0.7rem, 1.5vw, 0.78rem) !important; + } + .btn-start-consultation { + font-size: clamp(0.86rem, 2vw, 0.96rem) !important; + } + .btn-pill-action { + font-size: clamp(0.8rem, 1.8vw, 0.9rem) !important; + } + #modal-summary-title { + font-size: clamp(1rem, 2.4vw, 1.25rem) !important; + } + + /* Tablets and Medium Screens (<= 1024px) */ + @media (max-width: 1024px) { + .dashboard-layout { + grid-template-columns: 260px 1fr; + gap: 16px; + padding: 16px; + } + .admin-stats-grid { + grid-template-columns: repeat(2, 1fr); + gap: 12px; + } + } + + /* Mobile Screens & Narrow Tablets (<= 768px) */ + @media (max-width: 768px) { + header.main-header { + padding: 8px 12px; + flex-wrap: wrap; + gap: 8px; + } + .header-left { + gap: 8px; + } + .brand-logo-img { + height: 38px; + max-width: 140px; + padding: 1px 4px; + } + .dashboard-layout { + grid-template-columns: 1fr; + gap: 16px; + padding: 12px 10px; + max-width: 100%; + } + .left-sidebar { + order: 2; + } + .center-stage { + order: 1; + } + .patient-meta-grid { + grid-template-columns: repeat(2, 1fr); + gap: 8px; + } + .patient-meta-item { + padding: 8px 10px; + } + .live-mic-stage-card { + padding: 16px 12px; + } + .central-mic-orb { + width: 58px; + height: 58px; + font-size: 1.3rem; + } + .mic-waveform-center { + gap: 14px; + } + .sound-bars-cluster { + height: 28px; + } + .sound-bar { + width: 2.5px; + } + .controls-action-bar { + flex-wrap: wrap; + gap: 8px; + } + .btn-pill-action { + flex: 1 1 calc(50% - 8px); + min-width: 120px; + justify-content: center; + padding: 8px 12px; + } + .chat-scroll-card { + height: 380px; + padding: 12px 10px; + } + .chat-bubble { + padding: 10px 14px; + } + .admin-controls-card { + flex-direction: column; + align-items: stretch; + gap: 10px; + } + .admin-controls-card > div { + width: 100%; + justify-content: space-between; + } + .admin-table-responsive { + overflow-x: auto; + -webkit-overflow-scrolling: touch; + } + .admin-data-table { + min-width: 600px; + } + .modal-content-card { + width: 95% !important; + max-width: 95% !important; + margin: 10px auto; + padding: 14px; + } + } + + /* Small Mobile Phones (<= 480px) */ + @media (max-width: 480px) { + header.main-header { + padding: 6px 10px; + } + .brand-titles p { + display: none; + } + .header-right { + gap: 6px; + } + .lang-switch-box button { + padding: 3px 8px; + font-size: 0.72rem; + } + .admin-stats-grid { + grid-template-columns: 1fr; + gap: 10px; + } + .patient-meta-grid { + grid-template-columns: 1fr; + } + .patient-meta-item[style*="grid-column"] { + grid-column: span 1 !important; + } + .btn-start-consultation { + width: 100% !important; + max-width: 100% !important; + } + }