MedScope-Backend / static /css /assistantStyle.css
ShadowGard3n's picture
Made responsive
ca1ea49
/* ===================================================================
1. GLOBAL VARIABLES & RESET
================================================================= */
:root {
--bg-deep-dark: #0a192f;
--bg-medium-dark: #172a46;
--bg-light-dark: #2c3e50;
--text-bright: #ccd6f6;
--text-normal: #bdc3c7;
--text-muted: #8892b0;
--accent-primary: #64ffda;
--accent-primary-darker: #52d3b4;
--accent-primary-text: #0a192f;
--border-color: #304a6e;
--success-color: #2ecc71;
--card-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
--theme-transition: background-color 0.3s ease, color 0.3s ease;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background-color: var(--bg-deep-dark);
color: var(--text-normal);
line-height: 1.6;
font-size: 16px;
background-image: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)),
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path fill="%23172a46" fill-opacity="0.3" d="M0 0 H40 V40 H0 Z M20 0 V40 M0 20 H40"></path></svg>');
background-size: 40px 40px;
}
a { text-decoration: none; color: inherit; }
/* ===================================================================
2. HEADER & NAVIGATION (Responsive)
================================================================= */
header {
background-color: rgba(10, 25, 47, 0.95);
padding: 1rem 5%;
border-bottom: 1px solid var(--border-color);
position: sticky;
top: 0;
z-index: 1000;
backdrop-filter: blur(10px);
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
flex-wrap: wrap;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
color: var(--accent-primary);
letter-spacing: 1px;
}
nav ul {
list-style: none;
display: flex;
gap: 1.5rem;
margin: 0;
padding: 0;
}
nav a {
color: var(--text-normal);
font-weight: 500;
transition: color 0.3s;
padding: 0.5rem 0;
font-size: 0.95rem;
}
nav a:hover, nav a.active {
color: var(--accent-primary);
border-bottom: 2px solid var(--accent-primary);
}
/* ===================================================================
3. MAIN LAYOUT
================================================================= */
main {
max-width: 1100px;
margin: 2rem auto;
padding: 0 5%;
}
.card {
background-color: var(--bg-medium-dark);
border-radius: 12px;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: var(--card-shadow);
border: 1px solid var(--border-color);
transition: transform 0.2s ease;
}
.card h3 {
color: var(--accent-primary);
margin-top: 0;
margin-bottom: 1rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
font-size: 1.2rem;
flex-wrap: wrap; /* Allows live indicator to wrap if needed */
}
.card h3 i {
margin-right: 0.75rem;
}
/* Live Indicator (Green Bolt) */
.live-indicator {
font-size: 0.8rem;
color: var(--success-color);
margin-left: auto; /* Pushes to the right */
background: rgba(46, 204, 113, 0.1);
padding: 2px 8px;
border-radius: 12px;
border: 1px solid var(--success-color);
display: inline-flex;
align-items: center;
gap: 5px;
}
.card-content {
color: var(--text-bright);
min-height: 60px;
line-height: 1.7;
font-size: 0.95rem;
}
/* ===================================================================
4. INSIGHT GRID (Diagnosis & Questions)
================================================================= */
.insight-grid {
display: grid;
grid-template-columns: 1fr 1fr; /* Two equal columns */
gap: 1.5rem;
margin-bottom: 1.5rem;
}
/* Text styling for LLM output */
#diagnosisOutput strong, #questionsOutput strong {
color: var(--accent-primary);
font-weight: 600;
}
/* ===================================================================
5. CONVERSATION LOG
================================================================= */
.conversation-log {
height: 350px;
overflow-y: auto;
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 1rem;
margin-bottom: 1.5rem;
background-color: var(--bg-deep-dark); /* Darker inner well */
scroll-behavior: smooth;
}
.log-entry {
margin-bottom: 0.75rem;
padding: 0.75rem 1rem;
border-radius: 8px;
line-height: 1.5;
font-size: 0.95rem;
word-wrap: break-word; /* Prevent long words breaking layout */
}
.log-entry.patient {
background-color: var(--bg-light-dark);
border-left: 3px solid var(--accent-primary);
color: var(--text-bright);
}
.log-entry strong {
color: var(--accent-primary);
font-size: 0.85rem;
display: block;
margin-bottom: 0.25rem;
}
/* Scrollbar styling */
.conversation-log::-webkit-scrollbar {
width: 8px;
}
.conversation-log::-webkit-scrollbar-track {
background: var(--bg-deep-dark);
}
.conversation-log::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 4px;
}
/* ===================================================================
6. CONTROLS AREA
================================================================= */
.controls {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 1rem;
background-color: var(--bg-light-dark);
padding: 1rem;
border-radius: 8px;
border: 1px solid var(--border-color);
}
.status-indicator {
display: flex;
align-items: center;
gap: 10px;
}
#micStatus {
width: 14px;
height: 14px;
border-radius: 50%;
background-color: var(--text-muted);
transition: background-color 0.3s ease;
}
#micStatus.active {
background-color: var(--accent-primary);
box-shadow: 0 0 10px var(--accent-primary);
}
/* Pulse Animation */
.pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(100, 255, 218, 0); }
100% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0); }
}
#statusText {
color: var(--text-bright);
font-weight: 600;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.btn-group {
display: flex;
gap: 1rem;
}
.btn {
padding: 0.75rem 1.5rem;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: 600;
font-size: 0.95rem;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
min-width: 100px;
}
.btn-restart {
background-color: var(--accent-primary);
color: var(--accent-primary-text);
}
.btn-restart:hover {
background-color: var(--accent-primary-darker);
transform: translateY(-2px);
}
.btn-finish {
background-color: transparent;
color: #ff5555; /* Red warning color for stop */
border: 1px solid #ff5555;
}
.btn-finish:hover {
background-color: #ff5555;
color: white;
}
/* ===================================================================
7. RESPONSIVE MEDIA QUERIES
================================================================= */
/* Tablets and Mobile Devices */
@media (max-width: 900px) {
/* Collapse the side-by-side grid */
.insight-grid {
grid-template-columns: 1fr;
}
}
/* Mobile Phones specifically */
@media (max-width: 768px) {
header {
padding: 1rem;
}
nav {
flex-direction: column;
gap: 1rem;
}
nav ul {
flex-wrap: wrap;
justify-content: center;
gap: 1rem;
}
nav a {
font-size: 0.9rem;
}
main {
padding: 0 1rem;
}
.card {
padding: 1.25rem;
}
/* Stack controls vertically on mobile */
.controls {
flex-direction: column;
align-items: stretch; /* Make children full width */
gap: 1.25rem;
}
.status-indicator {
justify-content: center;
padding-bottom: 0.5rem;
border-bottom: 1px solid rgba(255,255,255,0.1);
}
.btn-group {
flex-direction: column;
width: 100%;
}
.btn {
width: 100%; /* Full width buttons for easy tapping */
padding: 1rem; /* Larger touch target */
}
.live-indicator {
margin-left: 0;
margin-top: 5px;
width: 100%; /* Optional: make it block level */
}
}