Spaces:
Runtime error
Runtime error
Download static/css/styles.css from rexon7777/presightlite: direct link, hf CLI and curl.
- Browser
- Download file 40.5 kB
-
https://huggingface.co/spaces/rexon7777/presightlite/resolve/main/static/css/styles.css
- Command line
-
hf download hf://spaces/rexon7777/presightlite/static/css/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/rexon7777/presightlite/resolve/main/static/css/styles.css
40.5 kB
/*
* AI Prescription Assistant - Medical SaaS Theme (Polished)
* Design Principles: Trust, Clarity, Precision, Scannability
*/
:root {
/* Color Palette - Medical Blue Theme */
--primary-color: #1B67E0;
--primary-hover: #1558C0;
--primary-light: #E8F2FF;
/* Softer Severity Tones */
--success-text: #1E8449;
--success-bg: #E9F8EF;
--success-border: #27AE60;
--warning-text: #AF601A;
--warning-bg: #FEF6E7;
--warning-border: #E67E22;
--danger-text: #922B21;
--danger-bg: #FDEDEC;
--danger-border: #C0392B;
/* Neutrals */
--text-primary: #1E1E1E;
--text-secondary: #5E6C84;
--text-tertiary: #8993A4;
--bg-body: #FAFBFC;
--bg-hover: #e0e0e0;
--bg-surface: #FFFFFF;
--bg-panel: #F4F5F7;
--border-color: #EBECF0;
--border-hover: #DFE1E6;
/* Shadows */
--shadow-sm: 0 1px 2px rgba(9, 30, 66, 0.05);
--shadow-md: 0 4px 8px rgba(9, 30, 66, 0.08);
--shadow-lg: 0 8px 16px rgba(9, 30, 66, 0.12);
/* Spacing & Radius */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--space-xs: 4px;
--space-sm: 8px;
--space-md: 16px;
--space-lg: 20px;
/* Standardized to 20px for consistency */
--space-xl: 32px;
/* Transitions */
--transition-fast: 0.15s ease;
--transition-normal: 0.25s ease;
}
/* Dark Mode Overrides */
/* Dark Mode Overrides - Handled by JS */
/* Base Reset */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: var(--bg-body);
color: var(--text-primary);
line-height: 1.5;
font-size: 15px;
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Typography System */
h1 {
font-size: 20px;
font-weight: 600;
letter-spacing: -0.01em;
}
h2 {
font-size: 18px;
font-weight: 600;
margin-bottom: 16px;
}
h3 {
font-size: 16px;
font-weight: 600;
margin-bottom: 12px;
}
h4 {
font-size: 15px;
font-weight: 600;
margin-bottom: 8px;
}
p {
margin-bottom: 0.5rem;
font-weight: 400;
color: var(--text-primary);
}
small {
font-size: 13px;
color: var(--text-secondary);
}
label {
font-size: 14px;
font-weight: 500;
margin-bottom: 4px;
display: block;
color: var(--text-secondary);
}
/* Header */
.app-header {
height: auto;
min-height: 56px;
background: var(--bg-surface);
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.75rem var(--space-lg) 1rem var(--space-lg);
/* Increased top padding for alignment */
z-index: 100;
}
.logo-container {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.logo-icon {
color: var(--primary-color);
font-size: 20px;
}
body.dark-mode .logo-icon {
color: var(--text-primary);
}
.pro-badge {
background: var(--primary-light);
color: var(--primary-color);
font-size: 11px;
font-weight: 700;
padding: 2px 6px;
border-radius: 4px;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-left: 6px;
}
.header-pill {
display: flex;
align-items: center;
background: var(--bg-panel);
border-radius: 20px;
padding: 4px 12px;
gap: 12px;
border: 1px solid var(--border-color);
}
.stat-item {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
}
.stat-label {
color: var(--text-secondary);
font-weight: 500;
}
.stat-value {
font-weight: 600;
color: var(--text-primary);
}
.stat-divider {
width: 1px;
height: 12px;
background: var(--border-color);
}
/* Main Layout */
.main-container {
display: flex;
flex: 1;
overflow: hidden;
position: relative;
}
/* Left Panel */
.left-panel {
width: 300px;
background: var(--bg-surface);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
padding: var(--space-lg);
z-index: 10;
box-shadow: var(--shadow-sm);
transition: width var(--transition-normal);
}
.panel-title {
margin-bottom: var(--space-md);
display: flex;
align-items: center;
gap: var(--space-sm);
}
/* Upload Zone (Full) */
.upload-zone {
border: 2px dashed var(--border-color);
border-radius: var(--radius-md);
padding: var(--space-lg) var(--space-md);
text-align: center;
transition: all var(--transition-fast);
cursor: pointer;
background: var(--bg-body);
margin-bottom: var(--space-md);
}
.upload-zone:hover,
.upload-zone.dragover {
border-color: var(--primary-color);
background: var(--primary-light);
}
.upload-icon {
font-size: 24px;
color: var(--text-tertiary);
margin-bottom: var(--space-sm);
}
/* Compact Upload Bar (Post-Scan) */
.compact-upload-bar {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: var(--space-sm);
background: var(--bg-panel);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
margin-bottom: var(--space-md);
}
.compact-thumb {
width: 40px;
height: 40px;
border-radius: var(--radius-sm);
object-fit: cover;
border: 1px solid var(--border-color);
}
.compact-info {
flex: 1;
overflow: hidden;
}
.compact-filename {
font-size: 13px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.compact-actions {
display: flex;
gap: 4px;
}
/* Thumbnail Preview (Pre-Scan) */
.thumbnail-container {
margin-bottom: var(--space-md);
position: relative;
border-radius: var(--radius-md);
overflow: hidden;
border: 1px solid var(--border-color);
background: var(--bg-body);
}
.thumbnail-image {
width: 100%;
height: auto;
max-height: 200px;
object-fit: contain;
display: block;
}
.zoom-btn {
position: absolute;
bottom: 8px;
right: 8px;
background: rgba(0, 0, 0, 0.6);
color: white;
border: none;
border-radius: 4px;
padding: 6px;
cursor: pointer;
transition: background 0.2s;
}
.zoom-btn:hover {
background: rgba(0, 0, 0, 0.8);
}
.icon-btn {
background: none;
border: none;
color: var(--text-secondary);
cursor: pointer;
padding: 4px;
border-radius: 4px;
transition: background var(--transition-fast);
}
.icon-btn:hover {
background: rgba(0, 0, 0, 0.05);
color: var(--primary-color);
}
/* Action Stack */
.action-group {
display: flex;
flex-direction: column;
gap: var(--space-sm);
margin-bottom: var(--space-lg);
}
.secondary-actions {
margin-top: auto;
border-top: 1px solid var(--border-color);
padding-top: var(--space-md);
}
/* Right Panel */
.right-panel {
flex: 1;
background: var(--bg-body);
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Tabs */
.tabs-container {
background: var(--bg-surface);
border-bottom: 1px solid var(--border-color);
padding: 0 var(--space-xl);
}
.tabs-header {
display: flex;
gap: var(--space-lg);
}
.tab-btn {
background: none;
border: none;
padding: var(--space-md) 0;
font-size: 14px;
font-weight: 500;
color: var(--text-secondary);
cursor: pointer;
position: relative;
transition: color var(--transition-fast);
}
.tab-btn:hover {
color: var(--text-primary);
}
.tab-btn.active {
color: var(--primary-color);
font-weight: 600;
}
.tab-btn.active::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
width: 100%;
height: 2px;
background: var(--primary-color);
}
/* Tab Content */
.tab-content-area {
flex: 1;
overflow-y: auto;
padding: var(--space-lg);
/* Consistent padding */
}
.tab-pane {
display: none;
max-width: 900px;
margin: 0 auto;
}
.tab-pane.active {
display: block;
animation: fadeIn 0.3s ease;
}
/* Cards */
.card {
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: var(--space-lg);
/* Consistent padding */
margin-bottom: var(--space-md);
box-shadow: var(--shadow-sm);
}
/* Medicine Card (Structured) */
.medicine-card {
background-color: var(--bg-body);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
/* Border shadow */
display: flex;
flex-direction: column;
gap: var(--space-md);
}
.med-header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: var(--space-sm);
border-bottom: 1px solid var(--border-color);
}
.med-name {
font-size: 16px;
font-weight: 600;
color: var(--primary-color);
}
body.dark-mode .med-name,
body.dark-mode .card .med-name {
color: var(--text-primary) !important;
}
.med-confidence-group {
display: flex;
gap: var(--space-sm);
}
.med-conf-pill {
font-size: 11px;
font-weight: 600;
padding: 2px 6px;
border-radius: 4px;
background: var(--bg-panel);
color: var(--text-secondary);
display: flex;
align-items: center;
gap: 4px;
}
.med-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: var(--space-md);
}
.med-field {
display: flex;
flex-direction: column;
gap: 4px;
}
.med-label {
font-size: 12px;
font-weight: 500;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.med-value {
font-size: 14px;
font-weight: 500;
color: var(--text-primary);
}
.med-strength-value {
font-size: 24px;
font-weight: 700;
color: #D32F2F;
/* Red color */
}
.med-footer {
padding-top: var(--space-sm);
border-top: 1px solid var(--bg-panel);
font-size: 14px;
color: var(--text-secondary);
}
/* Medicine Disclaimers */
.med-disclaimer {
margin-top: 8px;
font-size: 13px;
color: #D9534F;
font-weight: 500;
display: flex;
gap: 6px;
align-items: flex-start;
}
.med-disclaimer i {
font-size: 14px;
margin-top: 2px;
}
.med-disclaimer-bg {
background: rgba(217, 83, 79, 0.06);
/* #D9534F with opacity */
padding: 8px 12px;
border-radius: var(--radius-sm);
border-left: 3px solid #D9534F;
}
.med-low-certainty {
opacity: 0.9;
border: 1px dashed var(--danger-border);
background: rgba(217, 83, 79, 0.1);
}
.med-low-certainty .med-name {
color: var(--danger-text);
}
.med-disclaimer-bg.critical {
background: rgba(217, 83, 79, 0.15);
border-left-color: #D9534F;
color: #C0392B;
}
.med-disclaimer-bg.critical i {
color: #C0392B;
}
.disclaimer-toggle {
color: #D9534F;
text-decoration: underline;
cursor: pointer;
font-size: 12px;
margin-left: 4px;
}
.disclaimer-content {
display: none;
margin-top: 4px;
color: var(--text-secondary);
font-size: 13px;
}
.disclaimer-content.show {
display: block;
}
/* Safety Card (Icons & Colors) */
.safety-card {
border-left: 4px solid transparent;
display: flex;
gap: var(--space-md);
}
.safety-icon-box {
font-size: 20px;
padding-top: 2px;
}
.safety-content {
flex: 1;
}
.safety-card.critical {
border-color: var(--danger-border);
background: var(--danger-bg);
}
.safety-card.critical .safety-icon-box {
color: var(--danger-text);
}
.safety-card.critical .safety-title {
color: var(--danger-text);
}
.safety-card.moderate {
border-color: var(--warning-border);
background: var(--warning-bg);
}
.safety-card.moderate .safety-icon-box {
color: var(--warning-text);
}
.safety-card.moderate .safety-title {
color: var(--warning-text);
}
.safety-card.mild {
border-color: var(--success-border);
background: var(--success-bg);
}
.safety-card.mild .safety-icon-box {
color: var(--success-text);
}
.safety-card.mild .safety-title {
color: var(--success-text);
}
.safety-header {
display: flex;
justify-content: space-between;
margin-bottom: var(--space-xs);
}
.safety-title {
font-weight: 600;
font-size: 15px;
}
/* Export Preview */
.export-preview {
background: var(--bg-panel);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: var(--space-lg);
margin-bottom: var(--space-lg);
text-align: center;
color: var(--text-secondary);
min-height: 150px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-sm);
padding: 10px 16px;
border-radius: var(--radius-md);
font-weight: 500;
font-size: 14px;
cursor: pointer;
transition: all var(--transition-fast);
border: 1px solid transparent;
width: 100%;
}
.btn-primary {
background: var(--primary-color);
color: white;
}
.btn-primary:hover {
background: var(--primary-hover);
}
.btn-secondary {
background: var(--bg-surface);
border-color: var(--border-color);
color: var(--text-primary);
}
.btn-secondary:hover {
background: var(--bg-panel);
border-color: var(--border-hover);
}
/* Empty State */
.empty-state-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
text-align: center;
padding: 2rem;
}
.empty-icon-circle {
background: var(--primary-light);
width: 80px;
height: 80px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: var(--space-lg);
}
.arrow-hint {
color: var(--text-tertiary);
font-size: 24px;
margin-top: var(--space-lg);
animation: bounce 2s infinite;
}
@keyframes bounce {
0%,
20%,
50%,
80%,
100% {
transform: translateY(0);
}
40% {
transform: translateY(-10px);
}
60% {
transform: translateY(-5px);
}
}
/* Loading Overlay */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.5);
/* Semi-transparent for blur visibility */
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
z-index: 2000;
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
}
body.dark-mode .loading-overlay {
background: rgba(0, 0, 0, 0.6);
}
.medical-loader {
font-size: 64px;
color: var(--primary-color);
margin-bottom: var(--space-lg);
animation: heartbeat 1.5s ease-in-out infinite;
}
@keyframes heartbeat {
0% {
transform: scale(1);
}
14% {
transform: scale(1.3);
}
28% {
transform: scale(1);
}
42% {
transform: scale(1.3);
}
70% {
transform: scale(1);
}
}
.loading-text-stack {
text-align: center;
}
.loading-title {
font-weight: 600;
margin-bottom: var(--space-xs);
font-size: 16px;
}
.loading-subtitle {
font-size: 14px;
color: var(--text-secondary);
}
/* Footer & Disclaimer */
.app-footer {
height: 40px;
background: var(--bg-surface);
border-top: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
color: var(--text-tertiary);
gap: var(--space-lg);
}
.disclaimer-text {
font-size: 11px;
color: var(--text-tertiary);
margin-top: var(--space-lg);
text-align: center;
font-style: italic;
}
/* Modal */
.modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 2000;
display: none;
align-items: center;
justify-content: center;
}
.modal-content {
background: var(--bg-surface);
padding: var(--space-lg);
border-radius: var(--radius-lg);
max-width: 500px;
width: 90%;
box-shadow: var(--shadow-lg);
text-align: center;
}
/* Responsive */
@media (max-width: 768px) {
.main-container {
flex-direction: column;
overflow-y: auto;
}
.settings-sidebar {
display: none;
/* Hide sidebar on mobile as it's redundant with header */
}
.left-panel {
width: 100%;
border-right: none;
border-bottom: 1px solid var(--border-color);
padding: var(--space-md);
}
.right-panel {
overflow: visible;
}
.tabs-container {
padding: 0 var(--space-md);
overflow-x: auto;
}
}
/* Modal System */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
z-index: 1000;
display: none;
/* Hidden by default */
align-items: center;
justify-content: center;
animation: fadeIn 0.2s ease-out;
}
.modal-overlay.show {
display: flex;
}
.modal-content {
background: var(--bg-surface);
padding: 30px;
border-radius: 16px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
max-width: 400px;
width: 90%;
text-align: center;
animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
border: 1px solid var(--border-color);
}
.modal-icon-box {
width: 60px;
height: 60px;
background: var(--danger-bg);
color: var(--danger-text);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
margin: 0 auto 20px;
}
.modal-title {
font-size: 20px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 10px;
}
.modal-message {
color: var(--text-secondary);
margin-bottom: 24px;
line-height: 1.6;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(20px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Sidebar Layout */
.app-layout {
display: flex;
height: 100vh;
width: 100vw;
overflow: hidden;
}
.app-sidebar {
width: 260px;
background-color: var(--bg-panel);
/* Light grey like ChatGPT sidebar */
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
padding: 1rem;
flex-shrink: 0;
transition: transform 0.3s ease;
}
.main-wrapper {
flex: 1;
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
position: relative;
background: var(--bg-body);
}
/* Sidebar Components */
.sidebar-header {
margin-bottom: 1.5rem;
}
.new-scan-btn {
width: 100%;
padding: 10px 12px;
background-color: var(--bg-panel);
border: 1px solid var(--border-color);
border-radius: 6px;
color: var(--text-primary);
font-size: 14px;
font-weight: 500;
text-align: left;
cursor: pointer;
display: flex;
align-items: center;
gap: 10px;
transition: all 0.2s ease;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.new-scan-btn:hover {
background-color: var(--primary-light);
border-color: var(--primary-color);
color: var(--primary-color);
}
.sidebar-history {
flex: 1;
overflow-y: auto;
margin-bottom: 1rem;
}
.history-label {
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 8px;
padding: 0 8px;
}
.history-item {
padding: 8px 12px;
margin-bottom: 4px;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 10px;
transition: background 0.2s;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.history-item:hover {
background-color: var(--bg-hover);
}
.history-item i {
color: var(--text-secondary);
font-size: 12px;
}
.sidebar-footer {
border-top: 1px solid var(--border-color);
padding-top: 1rem;
}
.user-profile-card {
display: flex;
align-items: center;
gap: 10px;
padding: 8px;
border-radius: 6px;
cursor: pointer;
transition: background 0.2s;
}
.user-profile-card:hover {
background-color: var(--bg-hover);
}
.user-avatar {
width: 32px;
height: 32px;
background-color: var(--primary-color);
color: white;
border-radius: 4px;
/* Rounded square like ChatGPT */
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 14px;
}
.user-info {
flex: 1;
overflow: hidden;
}
.user-name {
font-size: 13px;
font-weight: 500;
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Dark Mode for Sidebar */
body.dark-mode .app-sidebar {
background-color: #202123;
/* Darker grey */
border-right-color: #333;
}
body.dark-mode .new-scan-btn {
background-color: #343541;
border-color: #565869;
color: #ececf1;
}
body.dark-mode .new-scan-btn:hover {
background-color: #40414f;
}
body.dark-mode .history-item {
color: #ececf1;
}
body.dark-mode .user-name {
color: #ececf1;
}
/* --- New Layout Styles --- */
/* Sidebar Enhancements */
.sidebar-section {
margin-bottom: 1.5rem;
flex-shrink: 0;
/* Prevent shrinking of other sections */
}
.recent-section {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
/* Crucial for nested scrolling */
margin-bottom: 1rem;
overflow: hidden;
}
.section-header {
font-size: 11px;
font-weight: 700;
color: var(--text-tertiary);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 8px;
padding: 0 8px;
}
.sidebar-divider {
height: 1px;
background-color: var(--border-color);
margin: 0 0 1.5rem 0;
}
.sidebar-menu {
display: flex;
flex-direction: column;
gap: 4px;
}
.sidebar-item {
padding: 8px 12px;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 10px;
transition: background 0.2s;
}
.sidebar-item:hover {
background-color: var(--bg-hover);
/* Default to variable, handles both if set correctly */
}
body.dark-mode .sidebar-item:hover {
background-color: var(--bg-hover);
}
.sidebar-item i {
width: 16px;
text-align: center;
color: var(--text-secondary);
}
/* Content Area */
.content-area {
flex: 1;
overflow: hidden;
position: relative;
background-color: var(--bg-body);
display: flex;
flex-direction: column;
}
/* 1. Startup View (Centered) */
.startup-container {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
animation: fadeIn 0.4s ease;
}
.hero-content {
text-align: center;
max-width: 600px;
width: 100%;
}
/* Header */
.app-header {
height: 56px;
background: var(--bg-body);
border-bottom: none;
/* Removed border */
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 var(--space-lg);
z-index: 100;
}
/* Dynamic Header for Startup Mode */
body.startup-mode .app-header {
background-color: var(--bg-body);
}
.hero-icon {
font-size: 48px;
color: var(--primary-color);
margin-bottom: 1.5rem;
background: var(--primary-light);
width: 80px;
height: 80px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-left: auto;
margin-right: auto;
}
.hero-subtitle {
color: var(--text-secondary);
margin-bottom: 2.5rem;
font-size: 16px;
}
.upload-hero {
background: var(--bg-surface);
border: none;
/* Removed border */
/* Darker border */
border-radius: 16px;
padding: 4rem 3rem;
/* Increased padding */
cursor: pointer;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
margin-bottom: 2rem;
position: relative;
overflow: hidden;
box-shadow: none;
/* Removed shadow */
/* Added shadow */
}
.upload-hero:hover {
border-color: var(--primary-color);
transform: scale(1.02);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
/* Enhanced hover shadow */
}
.upload-hero i {
font-size: 48px;
/* Larger icon */
color: var(--primary-color);
margin-bottom: 1.5rem;
}
.upload-hero h3 {
font-size: 20px;
margin-bottom: 0.5rem;
font-weight: 600;
}
.upload-hero p {
color: var(--text-secondary);
font-size: 15px;
margin-bottom: 2rem;
}
.hero-actions {
display: flex;
justify-content: center;
}
.btn-outline {
background: transparent;
border: 1px solid var(--border-color);
color: var(--text-primary);
padding: 10px 20px;
border-radius: 8px;
font-weight: 500;
transition: all 0.2s;
}
.btn-outline:hover {
background: var(--bg-surface);
border-color: var(--text-secondary);
}
/* 2. Results View (3-Column Layout) */
.results-grid {
display: flex;
height: 100%;
overflow: hidden;
background: var(--bg-body);
/* Full dark background */
/* Removed card borders/shadows for full-screen look */
}
/* Center Panel */
.results-center {
flex: 1;
display: flex;
flex-direction: column;
padding: 0;
/* Remove padding to let details fill */
overflow-y: auto;
/* border-right removed */
background: none;
/* Transparent */
border: none;
/* Ensure no borders */
}
.preview-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
background: var(--bg-surface);
padding: 10px 16px;
border-radius: 8px;
border: 1px solid var(--border-color);
}
.file-info {
display: flex;
align-items: center;
gap: 10px;
font-weight: 500;
font-size: 14px;
}
.btn-icon {
background: none;
border: none;
color: var(--text-secondary);
cursor: pointer;
padding: 6px;
border-radius: 4px;
transition: background 0.2s;
}
.btn-icon:hover {
background: rgba(0, 0, 0, 0.05);
color: var(--primary-color);
}
.analysis-card {
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 1.25rem;
/* Reduced padding */
margin-bottom: 1.25rem;
box-shadow: var(--shadow-sm);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
border-bottom: none;
/* Removed border */
padding-bottom: 1rem;
}
.confidence-badge {
background: var(--success-bg);
color: var(--success-text);
font-size: 12px;
font-weight: 700;
padding: 4px 8px;
border-radius: 4px;
}
.patient-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
/* Reduced gap */
margin-bottom: 1rem;
}
.info-group label {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 4px;
}
.info-value {
font-size: 15px;
font-weight: 600;
color: var(--text-primary);
}
.health-tip-box {
background: var(--primary-light);
border: 1px solid #B3D4FF;
border-radius: 8px;
padding: 1rem;
display: flex;
gap: 12px;
}
.tip-icon {
color: var(--primary-color);
font-size: 18px;
}
.image-viewer {
background: none;
border: none;
border-radius: 0;
padding: 1rem;
display: flex;
justify-content: center;
align-items: center;
min-height: 300px;
}
.image-viewer img {
max-width: 100%;
max-height: 450px;
/* Reduced max-height as requested */
object-fit: contain;
border-radius: 4px;
}
/* Right Panel */
.results-right {
width: 480px;
/* Widened sidebar significantly as requested */
/* Fixed width for details */
background: none;
/* Transparent */
display: flex;
flex-direction: column;
border-left: none;
/* Removed divider */
}
.panel-header {
padding: 1rem 1.5rem;
border-bottom: none;
/* Removed border */
}
.panel-tabs {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.panel-tab {
background: none;
border: none;
padding-bottom: 6px;
font-size: 14px;
font-weight: 500;
color: var(--text-secondary);
cursor: pointer;
border-bottom: 2px solid transparent;
}
.panel-tab.active {
color: var(--primary-color);
border-bottom-color: var(--primary-color);
}
.panel-content {
flex: 1;
overflow-y: auto;
padding: 1.5rem;
}
.panel-pane {
display: none;
}
.panel-pane.active {
display: block;
animation: fadeIn 0.3s ease;
}
.scroll-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.panel-actions {
padding: 1.5rem;
border-top: none;
/* Removed border */
background: var(--bg-surface);
}
.btn-block {
width: 100%;
}
/* AI Disclaimer */
.ai-disclaimer {
margin-top: auto;
padding: 1rem;
background: var(--bg-surface);
border-top: 1px solid var(--border-color);
color: var(--text-tertiary);
font-size: 12px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
text-align: center;
}
.ai-disclaimer i {
font-size: 14px;
}
.startup-disclaimer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: transparent;
border-top: none;
}
/* Medicine Disclaimer Updates */
.med-disclaimer-bg.warning {
background-color: var(--warning-bg);
color: var(--warning-text);
border: 1px solid var(--warning-border);
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Toast Notification */
.error-toast {
position: fixed;
bottom: 24px;
right: 24px;
background-color: #1a1a1a;
color: white;
padding: 16px 20px;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
display: flex;
align-items: center;
gap: 12px;
z-index: 9999;
transform: translateY(100px);
opacity: 0;
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
font-weight: 500;
font-size: 0.95rem;
max-width: 400px;
pointer-events: none;
}
.error-toast.show {
transform: translateY(0);
opacity: 1;
pointer-events: auto;
}
.error-icon {
color: #ff4d4f;
font-size: 1.2rem;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 77, 79, 0.1);
width: 32px;
height: 32px;
border-radius: 50%;
flex-shrink: 0;
}
/* History Item Menu */
.history-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0;
/* Reset padding as content has it now */
position: relative;
}
.history-content {
flex: 1;
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
cursor: pointer;
overflow: hidden;
}
.history-menu-container {
position: relative;
padding-right: 8px;
}
.history-menu-btn {
background: transparent;
border: none;
color: var(--text-secondary);
padding: 8px;
cursor: pointer;
border-radius: 50%;
opacity: 0;
transition: all 0.2s;
}
.history-item:hover .history-menu-btn {
opacity: 1;
}
.history-menu-btn:hover {
background: rgba(0, 0, 0, 0.05);
color: var(--text-primary);
}
.history-menu-dropdown {
position: absolute;
top: 100%;
right: 0;
background: var(--bg-surface);
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
padding: 4px;
min-width: 120px;
display: none;
z-index: 100;
border: 1px solid var(--border-color);
}
.history-menu-dropdown.show {
display: block;
}
.history-menu-item {
padding: 8px 12px;
display: flex;
align-items: center;
gap: 8px;
font-size: 0.9rem;
color: #d00e17;
cursor: pointer;
border-radius: 4px;
}
.history-menu-item:hover {
background: #fff2f2;
}
/* Swapped Layout Styles */
.image-viewer-container {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
padding: 1rem;
}
.image-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.image-header h3 {
font-size: 16px;
font-weight: 600;
}
.details-section {
margin-top: 0;
background: none;
border: none;
border-radius: 0;
overflow: hidden;
height: 100%;
display: flex;
flex-direction: column;
}
/* Adjust image viewer to fit right panel */
.results-right .image-viewer {
flex: 1;
overflow: auto;
background: none;
border-radius: 0;
display: flex;
align-items: center;
justify-content: center;
border: none;
}
.results-right .image-viewer img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
/* Expand/Collapse Utilities */
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
/* Standard property */
-webkit-box-orient: vertical;
overflow: hidden;
}
.expand-btn {
background: none;
border: none;
color: var(--primary-color);
font-size: 13px;
font-weight: 500;
cursor: pointer;
padding: 0;
margin-top: 4px;
}
.expand-btn:hover {
text-decoration: underline;
}
/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
.app-layout {
position: relative;
}
.app-sidebar {
position: fixed;
top: 0;
left: 0;
height: 100%;
z-index: 1000;
transform: translateX(-100%);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}
.app-sidebar.show {
transform: translateX(0);
}
.sidebar-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 999;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease;
backdrop-filter: blur(2px);
}
.sidebar-overlay.show {
opacity: 1;
visibility: visible;
}
.mobile-only {
display: flex !important;
}
/* Adjust Header for Mobile */
.app-header {
padding-left: 1rem;
}
#sidebar-toggle {
margin-right: 12px;
background: none;
border: none;
font-size: 1.2rem;
color: var(--text-primary);
cursor: pointer;
padding: 4px;
border-radius: 4px;
}
#sidebar-toggle:hover {
background-color: var(--bg-hover);
}
}
/* Hide mobile elements on desktop */
@media (min-width: 769px) {
.mobile-only {
display: none !important;
}
.sidebar-overlay {
display: none;
}
}
/* --- Settings Modal (ChatGPT Style) --- */
.settings-modal-container {
background: var(--bg-surface);
width: 720px;
height: 500px;
max-width: 90vw;
max-height: 80vh;
border-radius: 12px;
display: flex;
overflow: hidden;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
color: var(--text-primary);
position: relative;
/* Establish positioning context */
}
.settings-sidebar {
width: 220px;
background: var(--bg-panel);
border-right: 1px solid var(--border-color);
padding: 1rem;
display: flex;
flex-direction: column;
}
.settings-tab {
padding: 10px 12px;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 4px;
transition: background 0.2s;
}
.settings-tab:hover {
background: var(--bg-hover);
}
.settings-tab.active {
background: var(--bg-hover);
font-weight: 500;
}
.settings-content {
flex: 1;
padding: 2rem;
overflow-y: auto;
background: var(--bg-surface);
}
.settings-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border-color);
}
.settings-header h2 {
font-size: 18px;
font-weight: 600;
margin: 0;
color: var(--text-primary);
}
.close-modal-btn {
background: none;
border: none;
font-size: 1.2rem;
color: var(--text-secondary);
cursor: pointer;
}
.settings-section {
margin-bottom: 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.settings-section label {
font-size: 14px;
color: var(--text-primary);
font-weight: 500;
}
/* Custom Dropdown */
.custom-select-container {
position: relative;
width: 140px;
font-size: 14px;
user-select: none;
}
.custom-select-trigger {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 12px;
background: var(--bg-panel);
border: 1px solid var(--border-color);
border-radius: 6px;
cursor: pointer;
color: var(--text-primary);
transition: all 0.2s;
}
.custom-select-trigger:hover {
background: var(--bg-hover);
}
.custom-select-options {
position: absolute;
top: 100%;
right: 0;
/* Align to right */
width: 180px;
/* Wider than trigger */
background: var(--bg-surface);
/* Theme-aware bg */
border: 1px solid var(--border-color);
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
margin-top: 8px;
padding: 6px;
display: none;
z-index: 100;
}
.custom-select-options.show {
display: block;
animation: fadeIn 0.1s ease-out;
}
.custom-option {
padding: 8px 12px;
border-radius: 6px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
color: var(--text-primary);
transition: background 0.1s;
}
.custom-option:hover {
background: var(--bg-hover);
}
.custom-option.selected {
background: var(--bg-hover);
}
.custom-option .fa-check {
opacity: 0;
color: var(--primary-color);
}
.custom-option.selected .fa-check {
opacity: 1;
}
.settings-divider {
height: 1px;
background: var(--border-color);
margin: 2rem 0;
}
.full-width {
width: 100%;
justify-content: center;
}
@media (max-width: 768px) {
.settings-modal-container {
flex-direction: column;
height: auto;
max-height: 85vh;
width: 90%;
max-width: 400px;
/* Keep it reasonable */
border-radius: 12px;
/* Restore rounded corners */
overflow: visible;
/* Allow dropdowns to escape */
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.settings-sidebar {
display: none;
/* Hide sidebar on mobile as it's redundant with header */
}
.settings-tab {
white-space: nowrap;
}
/* Responsive Results Grid */
.results-grid {
flex-direction: column;
height: auto;
/* Allow scrolling */
overflow-y: auto;
}
.results-center,
.results-right {
width: 100%;
flex: none;
/* Disable flex growing/shrinking */
height: auto;
overflow: visible;
/* Let content flow */
}
.results-right {
border-left: none;
border-top: 1px solid var(--border-color);
padding-top: 1rem;
padding-bottom: 2rem;
/* Add padding to prevent footer overlap */
display: flex;
flex-direction: column;
}
.panel-actions {
margin-top: auto;
/* Push to bottom if flex container */
}
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}
/* Dark Mode Scrollbar */
body.dark-mode ::-webkit-scrollbar-thumb {
background: #424242;
}
body.dark-mode ::-webkit-scrollbar-thumb:hover {
background: #4f4f4f;
}
/*
* AI Prescription Assistant - Medical SaaS Theme (Polished)
* Design Principles: Trust, Clarity, Precision, Scannability
*/
:root {
/* Color Palette - Medical Blue Theme */
--primary-color: #1B67E0;
--primary-hover: #1558C0;
--primary-light: #E8F2FF;
/* Softer Severity Tones */
--success-text: #1E8449;
--success-bg: #E9F8EF;
--success-border: #27AE60;
--warning-text: #AF601A;
--warning-bg: #FEF6E7;
--warning-border: #E67E22;
--danger-text: #922B21;
--danger-bg: #FDEDEC;
--danger-border: #C0392B;
/* Neutrals */
--text-primary: #1E1E1E;
--text-secondary: #5E6C84;
--text-tertiary: #8993A4;
--bg-body: #FAFBFC;
--bg-hover: #e0e0e0;
--bg-surface: #FFFFFF;
--bg-panel: #F4F5F7;
--border-color: #EBECF0;
--border-hover: #DFE1E6;
/* Shadows */
--shadow-sm: 0 1px 2px rgba(9, 30, 66, 0.05);
--shadow-md: 0 4px 8px rgba(9, 30, 66, 0.08);
--shadow-lg: 0 8px 16px rgba(9, 30, 66, 0.12);
/* Spacing & Radius */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--space-xs: 4px;
--space-sm: 8px;
--space-md: 16px;
--space-lg: 20px;
/* Standardized to 20px for consistency */
--space-xl: 32px;
/* Transitions */
--transition-fast: 0.15s ease;
--transition-normal: 0.25s ease;
}
/* Dark Mode Overrides */
/* Dark Mode Overrides - Handled by JS */
/* Base Reset */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: var(--bg-body);
color: var(--text-primary);
line-height: 1.5;
font-size: 15px;
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Typography System */
h1 {
font-size: 20px;
font-weight: 600;
letter-spacing: -0.01em;
}
h2 {
font-size: 18px;
font-weight: 600;
margin-bottom: 16px;
}
h3 {
font-size: 16px;
font-weight: 600;
margin-bottom: 12px;
}