Sushruta / frontend /src /components /RadiologyExplainer /RadiologyExplainer.css
AnkTechsol
Initial commit with Git LFS
fb95f15
Raw
History Blame Contribute Delete
8.82 kB
/**
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.radiology-explainer {
min-height: 100vh;
background: var(--sushruta-bg-primary);
color: var(--sushruta-text-primary);
display: flex;
flex-direction: column;
position: relative;
overflow-x: hidden;
}
/* Background glows */
.radiology-orb-left {
position: absolute;
top: -10%;
left: -10%;
width: 400px;
height: 400px;
border-radius: 50%;
background: var(--sushruta-accent-teal);
filter: blur(140px);
opacity: 0.08;
pointer-events: none;
z-index: 0;
}
.radiology-orb-right {
position: absolute;
bottom: -10%;
right: -10%;
width: 450px;
height: 450px;
border-radius: 50%;
background: var(--sushruta-accent-blue);
filter: blur(140px);
opacity: 0.08;
pointer-events: none;
z-index: 0;
}
/* Navigation */
.radiology-nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 32px;
background: rgba(10, 10, 26, 0.6);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
z-index: 10;
}
.radiology-logo {
font-family: 'Google Sans', sans-serif;
font-size: 22px;
font-weight: 600;
margin: 0;
background: linear-gradient(90deg, #ffffff 40%, var(--sushruta-accent-teal) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Nav buttons customized for dark mode */
.radiology-nav .back-button {
color: var(--sushruta-text-secondary);
border: 1px solid rgba(255, 255, 255, 0.15);
background: transparent;
transition: all 0.3s ease;
}
.radiology-nav .back-button:hover {
color: #ffffff;
border-color: rgba(255, 255, 255, 0.3);
background: rgba(255, 255, 255, 0.05);
}
.radiology-nav .details-button {
background: rgba(0, 212, 170, 0.15);
color: var(--sushruta-accent-teal);
border: 1px solid rgba(0, 212, 170, 0.3);
transition: all 0.3s ease;
}
.radiology-nav .details-button:hover {
background: rgba(0, 212, 170, 0.25);
box-shadow: 0 0 12px rgba(0, 212, 170, 0.2);
}
/* Main Container Layout */
.radiology-container {
display: grid;
grid-template-columns: 240px 1fr 400px;
gap: 24px;
padding: 24px 32px;
flex-grow: 1;
z-index: 1;
max-width: 1600px;
width: 100%;
margin: 0 auto;
min-height: 0; /* Important for grid item scrollability */
}
@media (max-width: 1200px) {
.radiology-container {
grid-template-columns: 200px 1fr;
grid-template-rows: auto;
}
.radiology-report-panel {
grid-column: 1 / -1;
}
}
@media (max-width: 768px) {
.radiology-container {
grid-template-columns: 1fr;
}
.radiology-sidebar,
.radiology-main,
.radiology-report-panel {
grid-column: 1 / -1;
}
}
/* Sidebar: Case Selection */
.radiology-sidebar {
display: flex;
flex-direction: column;
gap: 24px;
}
.sidebar-group h3 {
font-family: 'Google Sans', sans-serif;
font-size: 15px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.8px;
color: var(--sushruta-text-secondary);
margin: 0 0 12px 0;
border-left: 3px solid var(--sushruta-accent-teal);
padding-left: 8px;
}
.case-buttons {
display: flex;
flex-direction: column;
gap: 10px;
}
.case-btn {
font-family: 'Google Sans Text', sans-serif;
font-size: 14px;
font-weight: 500;
text-align: left;
padding: 12px 16px;
background: var(--sushruta-bg-card);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 12px;
color: var(--sushruta-text-primary);
cursor: pointer;
transition: all 0.3s ease;
}
.case-btn:hover {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.15);
}
.case-btn.active {
background: rgba(79, 143, 255, 0.12);
border-color: var(--sushruta-accent-blue);
color: #ffffff;
box-shadow: 0 0 12px rgba(79, 143, 255, 0.15);
}
.no-cases {
font-size: 13px;
color: #6a6a7a;
font-style: italic;
}
/* Center Panel: Image Viewer */
.radiology-main {
min-width: 0;
}
.image-card {
background: var(--sushruta-bg-card);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 20px;
overflow: hidden;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.image-card-header {
background: rgba(255, 255, 255, 0.03);
padding: 14px 20px;
font-family: 'Google Sans', sans-serif;
font-size: 15px;
font-weight: 600;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
text-align: center;
color: var(--sushruta-text-secondary);
}
.image-viewer-container {
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
background: #05050f;
padding: 20px;
min-height: 380px;
}
.radiology-image {
max-width: 100%;
max-height: 520px;
border-radius: 12px;
object-fit: contain;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.image-loading {
font-size: 15px;
color: var(--sushruta-text-secondary);
animation: pulse 1.5s infinite;
}
.image-placeholder {
font-size: 14px;
color: #555565;
}
.image-footer-note {
background: rgba(255, 255, 255, 0.02);
padding: 10px 16px;
font-size: 12px;
color: #6a6a7a;
text-align: center;
border-top: 1px solid rgba(255, 255, 255, 0.05);
}
/* Right Panel: Report & Explanations */
.radiology-report-panel {
display: flex;
flex-direction: column;
gap: 20px;
min-height: 0;
}
/* Explanation Card */
.explanation-card {
background: rgba(79, 143, 255, 0.04);
border: 1px solid rgba(79, 143, 255, 0.15);
border-radius: 16px;
padding: 20px;
position: relative;
overflow: hidden;
}
.explanation-card-header {
font-family: 'Google Sans', sans-serif;
font-size: 14px;
font-weight: 600;
color: var(--sushruta-accent-blue);
text-transform: uppercase;
letter-spacing: 0.8px;
margin-bottom: 12px;
}
.explanation-text {
font-size: 15px;
line-height: 1.6;
color: var(--sushruta-text-primary);
margin: 0;
}
.generating-indicator {
display: flex;
align-items: center;
gap: 12px;
color: var(--sushruta-accent-blue);
font-size: 14px;
}
.pulse-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--sushruta-accent-blue);
animation: glowPulse 1.2s infinite alternate;
}
@keyframes glowPulse {
0% {
transform: scale(0.8);
box-shadow: 0 0 0 rgba(79, 143, 255, 0.5);
}
100% {
transform: scale(1.2);
box-shadow: 0 0 10px rgba(79, 143, 255, 0.8);
}
}
/* Report Text Card */
.report-text-card {
background: var(--sushruta-bg-card);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
display: flex;
flex-direction: column;
flex-grow: 1;
min-height: 250px;
}
.report-card-header {
background: rgba(255, 255, 255, 0.02);
padding: 12px 20px;
font-family: 'Google Sans', sans-serif;
font-size: 14px;
font-weight: 600;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
color: var(--sushruta-text-secondary);
}
.report-body {
padding: 20px;
overflow-y: auto;
flex-grow: 1;
}
.report-paragraph {
margin-bottom: 16px;
line-height: 1.7;
}
.report-sentence {
cursor: pointer;
padding: 2px 4px;
border-radius: 4px;
transition: all 0.2s ease;
}
.report-sentence:hover {
background: rgba(255, 255, 255, 0.06);
color: #ffffff;
}
.report-sentence.selected {
background: rgba(0, 212, 170, 0.15);
border-left: 2px solid var(--sushruta-accent-teal);
color: #ffffff;
font-weight: 500;
}
.placeholder-text {
color: #555565;
font-style: italic;
font-size: 14px;
}
/* Footer & Disclaimer */
.radiology-footer {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
padding: 16px 32px;
background: rgba(255, 255, 255, 0.02);
border-top: 1px solid rgba(255, 255, 255, 0.05);
z-index: 1;
}
.warning-icon {
color: #d4a373;
font-size: 20px;
}
.radiology-footer .disclaimer-text {
font-size: 12px;
color: #8a8a9a;
margin: 0;
line-height: 1.4;
}
/* Small Loaders */
.small-loader {
border: 2px solid rgba(255, 255, 255, 0.1);
border-radius: 50%;
border-top: 2px solid var(--sushruta-accent-teal);
width: 20px;
height: 20px;
animation: spin 1s linear infinite;
margin: 10px auto;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@keyframes pulse {
0% { opacity: 0.6; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}