Download static/css/style.css from NeuroShield-AI/brain-tumor-NeuroShield: direct link, hf CLI and curl.
- Browser
- Download file 16.8 kB
-
https://huggingface.co/spaces/NeuroShield-AI/brain-tumor-NeuroShield/resolve/main/static/css/style.css
- Command line
-
hf download hf://spaces/NeuroShield-AI/brain-tumor-NeuroShield/static/css/style.css
-
curl -L -o style.css https://huggingface.co/spaces/NeuroShield-AI/brain-tumor-NeuroShield/resolve/main/static/css/style.css
16.8 kB
| /* Reset & Variables */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| :root { | |
| --bg-dark: #07090e; | |
| --panel-bg: rgba(255, 255, 255, 0.03); | |
| --panel-border: rgba(255, 255, 255, 0.06); | |
| --glow-cyan: rgba(0, 180, 219, 0.4); | |
| --glow-rose: rgba(255, 65, 108, 0.4); | |
| --text-primary: #f3f4f6; | |
| --text-secondary: #9ca3af; | |
| --accent-cyan: #00b4db; | |
| --accent-rose: #ff416c; | |
| --sidebar-width: 280px; | |
| --primary-gradient: linear-gradient(135deg, #00b4db 0%, #0083b0 100%); | |
| --rose-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%); | |
| } | |
| body { | |
| font-family: 'Outfit', sans-serif; | |
| background-color: var(--bg-dark); | |
| color: var(--text-primary); | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| overflow-x: hidden; | |
| position: relative; | |
| } | |
| /* Background effects */ | |
| .background-radial { | |
| position: absolute; | |
| top: -20%; | |
| left: -20%; | |
| width: 60vw; | |
| height: 60vw; | |
| background: radial-gradient(circle, rgba(0, 180, 219, 0.1) 0%, rgba(0, 0, 0, 0) 70%); | |
| z-index: -2; | |
| pointer-events: none; | |
| } | |
| .background-dots { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 0); | |
| background-size: 24px 24px; | |
| z-index: -1; | |
| pointer-events: none; | |
| } | |
| /* App Dashboard Layout */ | |
| .app-layout { | |
| display: flex; | |
| flex: 1; | |
| min-height: 100vh; | |
| } | |
| /* Sidebar - History Drawer */ | |
| .sidebar { | |
| width: var(--sidebar-width); | |
| background: rgba(255, 255, 255, 0.01); | |
| border-right: 1px solid var(--panel-border); | |
| backdrop-filter: blur(20px); | |
| -webkit-backdrop-filter: blur(20px); | |
| padding: 1.5rem; | |
| display: flex; | |
| flex-direction: column; | |
| z-index: 10; | |
| } | |
| .sidebar-header { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| margin-bottom: 2rem; | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.05); | |
| padding-bottom: 1.25rem; | |
| } | |
| .brain-icon { | |
| font-size: 2rem; | |
| color: var(--accent-cyan); | |
| filter: drop-shadow(0 0 8px var(--glow-cyan)); | |
| } | |
| .sidebar-header h2 { | |
| font-size: 1.25rem; | |
| font-weight: 700; | |
| letter-spacing: -0.5px; | |
| } | |
| .sidebar-menu { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .menu-title { | |
| font-size: 0.75rem; | |
| font-weight: 800; | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| color: var(--text-secondary); | |
| margin-bottom: 1rem; | |
| } | |
| .history-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| max-height: calc(100vh - 220px); | |
| overflow-y: auto; | |
| padding-right: 0.25rem; | |
| } | |
| /* Custom Scrollbar */ | |
| .history-list::-webkit-scrollbar { | |
| width: 4px; | |
| } | |
| .history-list::-webkit-scrollbar-thumb { | |
| background: rgba(255, 255, 255, 0.1); | |
| border-radius: 4px; | |
| } | |
| /* History Items list */ | |
| .history-empty { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 0.5rem; | |
| text-align: center; | |
| color: var(--text-secondary); | |
| padding: 2rem 0; | |
| font-size: 0.85rem; | |
| } | |
| .history-empty i { | |
| font-size: 1.5rem; | |
| opacity: 0.4; | |
| } | |
| .history-item { | |
| background: rgba(255, 255, 255, 0.02); | |
| border: 1px solid var(--panel-border); | |
| border-radius: 12px; | |
| padding: 0.75rem 1rem; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .history-item:hover { | |
| background: rgba(255, 255, 255, 0.05); | |
| border-color: rgba(255, 255, 255, 0.15); | |
| } | |
| .hist-patient { | |
| font-size: 0.85rem; | |
| font-weight: 600; | |
| margin-bottom: 0.15rem; | |
| } | |
| .hist-label { | |
| font-size: 0.75rem; | |
| color: var(--text-secondary); | |
| } | |
| .hist-score { | |
| font-size: 0.85rem; | |
| font-weight: 700; | |
| } | |
| .history-item.tumor .hist-score { color: #f87171; } | |
| .history-item.normal .hist-score { color: #34d399; } | |
| .clear-btn { | |
| margin-top: 1rem; | |
| padding: 0.6rem 1rem; | |
| font-size: 0.85rem; | |
| } | |
| /* Main Workspace */ | |
| .workspace { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| padding: 2rem 2.5rem; | |
| max-height: 100vh; | |
| overflow-y: auto; | |
| } | |
| /* Header inside workspace */ | |
| header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 2rem; | |
| } | |
| header h1 { | |
| font-size: 1.75rem; | |
| font-weight: 700; | |
| letter-spacing: -0.5px; | |
| } | |
| .subtitle { | |
| font-size: 0.9rem; | |
| color: var(--text-secondary); | |
| } | |
| .warning-badge { | |
| background: rgba(239, 68, 68, 0.1); | |
| border: 1px solid rgba(239, 68, 68, 0.2); | |
| color: #ef4444; | |
| padding: 0.4rem 0.8rem; | |
| border-radius: 8px; | |
| font-size: 0.8rem; | |
| font-weight: 600; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.4rem; | |
| } | |
| /* Dashboard Columns split screen */ | |
| .dashboard-columns { | |
| display: grid; | |
| grid-template-columns: 1.1fr 0.9fr; | |
| gap: 2rem; | |
| flex: 1; | |
| } | |
| @media (max-width: 1024px) { | |
| .dashboard-columns { | |
| grid-template-columns: 1fr; | |
| } | |
| .app-layout { | |
| flex-direction: column; | |
| } | |
| .sidebar { | |
| width: 100%; | |
| height: auto; | |
| border-right: none; | |
| border-bottom: 1px solid var(--panel-border); | |
| } | |
| .workspace { | |
| max-height: none; | |
| } | |
| } | |
| /* Panel Card style */ | |
| .panel-card { | |
| background: var(--panel-bg); | |
| border: 1px solid var(--panel-border); | |
| border-radius: 20px; | |
| padding: 2rem; | |
| backdrop-filter: blur(10px); | |
| -webkit-backdrop-filter: blur(10px); | |
| box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .panel-card h2 { | |
| font-size: 1.25rem; | |
| font-weight: 600; | |
| margin-bottom: 0.25rem; | |
| } | |
| .panel-desc { | |
| color: var(--text-secondary); | |
| font-size: 0.85rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| /* Form Groups */ | |
| .form-group { | |
| margin-bottom: 1.25rem; | |
| } | |
| .form-group label { | |
| display: block; | |
| font-size: 0.85rem; | |
| font-weight: 600; | |
| color: var(--text-secondary); | |
| margin-bottom: 0.5rem; | |
| } | |
| .form-group input { | |
| width: 100%; | |
| background: rgba(255, 255, 255, 0.03); | |
| border: 1px solid rgba(255, 255, 255, 0.08); | |
| border-radius: 10px; | |
| padding: 0.75rem 1rem; | |
| color: var(--text-primary); | |
| font-family: inherit; | |
| font-size: 0.9rem; | |
| transition: all 0.2s ease; | |
| } | |
| .form-group input:focus { | |
| outline: none; | |
| border-color: var(--accent-cyan); | |
| background: rgba(0, 180, 219, 0.02); | |
| } | |
| /* Drop Zone Upload area */ | |
| .drop-zone { | |
| border: 2px dashed rgba(255, 255, 255, 0.12); | |
| border-radius: 14px; | |
| min-height: 220px; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| cursor: pointer; | |
| background: rgba(255, 255, 255, 0.005); | |
| position: relative; | |
| overflow: hidden; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| .drop-zone:hover, .drop-zone--over { | |
| border-color: var(--accent-cyan); | |
| background: rgba(0, 180, 219, 0.02); | |
| box-shadow: 0 0 20px rgba(0, 180, 219, 0.08) inset; | |
| } | |
| .drop-zone-prompt { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .icon-glow { | |
| width: 56px; | |
| height: 56px; | |
| border-radius: 50%; | |
| background: rgba(255, 255, 255, 0.02); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| border: 1px solid rgba(255, 255, 255, 0.04); | |
| margin-bottom: 0.25rem; | |
| transition: all 0.3s ease; | |
| } | |
| .drop-zone:hover .icon-glow { | |
| background: rgba(0, 180, 219, 0.08); | |
| border-color: rgba(0, 180, 219, 0.2); | |
| box-shadow: 0 0 12px rgba(0, 180, 219, 0.2); | |
| } | |
| .cloud-icon { | |
| font-size: 1.5rem; | |
| color: var(--text-secondary); | |
| transition: all 0.3s ease; | |
| } | |
| .drop-zone:hover .cloud-icon { | |
| color: var(--accent-cyan); | |
| transform: translateY(-2px); | |
| } | |
| .prompt-text { | |
| font-weight: 600; | |
| font-size: 1rem; | |
| } | |
| .prompt-divider { | |
| font-size: 0.8rem; | |
| color: var(--text-secondary); | |
| } | |
| /* Upload image thumbnail and vertical scanner overlay */ | |
| .drop-zone-thumb { | |
| width: 100%; | |
| height: 100%; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| } | |
| .drop-zone-thumb img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: contain; | |
| background: #000; | |
| } | |
| .thumb-remove { | |
| position: absolute; | |
| top: 0.75rem; | |
| right: 0.75rem; | |
| width: 28px; | |
| height: 28px; | |
| border-radius: 50%; | |
| background: rgba(0, 0, 0, 0.6); | |
| color: #fff; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| cursor: pointer; | |
| border: 1px solid rgba(255, 255, 255, 0.2); | |
| transition: all 0.2s ease; | |
| backdrop-filter: blur(5px); | |
| z-index: 5; | |
| } | |
| .thumb-remove:hover { | |
| background: rgba(239, 68, 68, 0.9); | |
| } | |
| /* Scanner Animation line */ | |
| .scan-overlay { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0, 180, 219, 0.1); | |
| pointer-events: none; | |
| z-index: 2; | |
| } | |
| .scan-line { | |
| width: 100%; | |
| height: 3px; | |
| background: #00b4db; | |
| box-shadow: 0 0 10px #00b4db, 0 0 20px #00b4db; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| animation: scannerLineSweep 2.5s ease-in-out infinite; | |
| } | |
| @keyframes scannerLineSweep { | |
| 0% { top: 0%; } | |
| 50% { top: 100%; } | |
| 100% { top: 0%; } | |
| } | |
| /* Buttons style */ | |
| .btn { | |
| font-family: inherit; | |
| font-size: 0.9rem; | |
| font-weight: 600; | |
| padding: 0.7rem 1.25rem; | |
| border-radius: 10px; | |
| border: none; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 0.4rem; | |
| } | |
| .btn-primary { | |
| background: var(--primary-gradient); | |
| color: #fff; | |
| box-shadow: 0 4px 12px rgba(0, 180, 219, 0.25); | |
| } | |
| .btn-primary:hover:not(:disabled) { | |
| transform: translateY(-1px); | |
| box-shadow: 0 6px 16px rgba(0, 180, 219, 0.45); | |
| } | |
| .btn-primary:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| } | |
| .btn-secondary { | |
| background: rgba(255, 255, 255, 0.06); | |
| color: var(--text-primary); | |
| border: 1px solid rgba(255, 255, 255, 0.08); | |
| } | |
| .btn-secondary:hover { | |
| background: rgba(255, 255, 255, 0.12); | |
| } | |
| .btn-block { | |
| width: 100%; | |
| margin-top: 1.25rem; | |
| padding: 0.9rem; | |
| } | |
| /* Result Placeholder */ | |
| .result-placeholder { | |
| height: 100%; | |
| min-height: 350px; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| text-align: center; | |
| color: var(--text-secondary); | |
| padding: 2rem; | |
| border: 1px dashed var(--panel-border); | |
| border-radius: 14px; | |
| } | |
| .placeholder-icon { | |
| font-size: 2.25rem; | |
| margin-bottom: 0.75rem; | |
| opacity: 0.4; | |
| } | |
| .result-placeholder p { | |
| font-size: 0.85rem; | |
| line-height: 1.5; | |
| max-width: 250px; | |
| } | |
| /* Loader Spinner */ | |
| .result-loader { | |
| height: 100%; | |
| min-height: 350px; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 1.25rem; | |
| } | |
| .spinner { | |
| width: 44px; | |
| height: 44px; | |
| position: relative; | |
| } | |
| .double-bounce1, .double-bounce2 { | |
| width: 100%; | |
| height: 100%; | |
| border-radius: 50%; | |
| background-color: var(--accent-cyan); | |
| opacity: 0.6; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| animation: sk-bounce 2.0s infinite ease-in-out; | |
| } | |
| .double-bounce2 { | |
| animation-delay: -1.0s; | |
| background-color: var(--accent-rose); | |
| } | |
| @keyframes sk-bounce { | |
| 0%, 100% { transform: scale(0.0); } | |
| 50% { transform: scale(1.0); } | |
| } | |
| /* Medical Report Card styling */ | |
| .medical-report { | |
| background: rgba(255, 255, 255, 0.015); | |
| border: 1px solid var(--panel-border); | |
| border-radius: 14px; | |
| padding: 1.5rem; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1.25rem; | |
| } | |
| .report-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .report-branding { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .report-logo-icon { | |
| font-size: 1.5rem; | |
| color: var(--accent-cyan); | |
| } | |
| .report-branding h3 { | |
| font-size: 0.95rem; | |
| font-weight: 700; | |
| } | |
| .report-branding p { | |
| font-size: 0.7rem; | |
| color: var(--text-secondary); | |
| text-transform: uppercase; | |
| } | |
| .report-date { | |
| font-size: 0.8rem; | |
| font-weight: 600; | |
| color: var(--text-secondary); | |
| } | |
| .report-divider { | |
| height: 1px; | |
| background: rgba(255, 255, 255, 0.05); | |
| width: 100%; | |
| } | |
| .report-section { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .section-title { | |
| font-size: 0.7rem; | |
| font-weight: 800; | |
| color: var(--text-secondary); | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| margin-bottom: 0.25rem; | |
| } | |
| .report-grid { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 1rem; | |
| } | |
| .info-item { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.15rem; | |
| } | |
| .info-label { | |
| font-size: 0.7rem; | |
| color: var(--text-secondary); | |
| } | |
| .info-val { | |
| font-size: 0.85rem; | |
| font-weight: 700; | |
| } | |
| .diagnosis-status-card { | |
| padding: 1rem; | |
| border-radius: 10px; | |
| border: 1px solid rgba(255, 255, 255, 0.05); | |
| background: rgba(255, 255, 255, 0.01); | |
| } | |
| .badge { | |
| font-size: 0.7rem; | |
| font-weight: 800; | |
| padding: 0.2rem 0.6rem; | |
| border-radius: 20px; | |
| letter-spacing: 0.5px; | |
| margin-bottom: 0.4rem; | |
| display: inline-block; | |
| } | |
| .badge-tumor { | |
| background: rgba(239, 68, 68, 0.12); | |
| color: #f87171; | |
| border: 1px solid rgba(239, 68, 68, 0.2); | |
| } | |
| .badge-normal { | |
| background: rgba(16, 185, 129, 0.12); | |
| color: #34d399; | |
| border: 1px solid rgba(16, 185, 129, 0.2); | |
| } | |
| #report-label { | |
| font-size: 1.15rem; | |
| font-weight: 800; | |
| } | |
| .center-content { | |
| align-items: center; | |
| } | |
| /* Circle Gauge chart styling */ | |
| .gauge-container { | |
| position: relative; | |
| width: 140px; | |
| height: 140px; | |
| } | |
| .progress-ring { | |
| transform: rotate(-90deg); | |
| } | |
| .progress-ring__circle { | |
| transition: stroke-dashoffset 0.6s ease; | |
| } | |
| .gauge-value { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| text-align: center; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| #report-confidence-text { | |
| font-size: 1.5rem; | |
| font-weight: 800; | |
| } | |
| .gauge-label { | |
| font-size: 0.7rem; | |
| color: var(--text-secondary); | |
| } | |
| /* Analysis Details metadata rows */ | |
| .analysis-details { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .detail-row { | |
| display: flex; | |
| justify-content: space-between; | |
| font-size: 0.8rem; | |
| } | |
| .detail-label { | |
| color: var(--text-secondary); | |
| } | |
| .detail-value { | |
| font-weight: 600; | |
| } | |
| .confidence-high { color: #34d399; } | |
| .confidence-medium { color: #fbbf24; } | |
| .confidence-low { color: #f87171; } | |
| .report-actions { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 1rem; | |
| margin-top: 0.5rem; | |
| } | |
| .report-actions .btn { | |
| padding: 0.6rem; | |
| font-size: 0.85rem; | |
| } | |
| /* Footer styling */ | |
| footer { | |
| text-align: center; | |
| padding: 1.5rem; | |
| color: var(--text-secondary); | |
| font-size: 0.8rem; | |
| font-weight: 300; | |
| } | |
| /* Printable layout styling */ | |
| @media print { | |
| body { | |
| background: #fff ; | |
| color: #000 ; | |
| } | |
| .no-print { | |
| display: none ; | |
| } | |
| .sidebar, header, .panel-card:not(#report-panel), footer { | |
| display: none ; | |
| } | |
| .app-layout { | |
| display: block ; | |
| min-height: auto ; | |
| } | |
| .workspace { | |
| padding: 0 ; | |
| overflow: visible ; | |
| max-height: none ; | |
| } | |
| .dashboard-columns { | |
| display: block ; | |
| } | |
| .panel-card#report-panel { | |
| background: none ; | |
| border: none ; | |
| box-shadow: none ; | |
| padding: 0 ; | |
| } | |
| .medical-report { | |
| background: #fff ; | |
| border: 2px solid #000 ; | |
| color: #000 ; | |
| padding: 2.5cm ; | |
| font-family: 'Outfit', sans-serif ; | |
| } | |
| .report-logo-icon, .brain-icon { | |
| color: #000 ; | |
| } | |
| .progress-ring__background, .progress-ring__circle { | |
| stroke: #000 ; | |
| } | |
| .report-divider { | |
| background: #000 ; | |
| } | |
| .badge-tumor { | |
| border-color: #000 ; | |
| color: #000 ; | |
| background: none ; | |
| } | |
| .badge-normal { | |
| border-color: #000 ; | |
| color: #000 ; | |
| background: none ; | |
| } | |
| } | |
| /* Micro-animations */ | |
| .animate-fade-in { | |
| animation: fadeIn 0.4s ease forwards; | |
| } | |
| .animate-slide-up { | |
| animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| @keyframes slideUp { | |
| from { | |
| opacity: 0; | |
| transform: translateY(20px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |