Vision-Guard / static /css /style.css
yakub-md's picture
Upload 3 files
bd18c39 verified
Raw
History Blame Contribute Delete
9.12 kB
/* Modern Medical UI Stylesheet */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-color: #1e3a8a;
--secondary-color: #0d9488;
--accent-color: #f59e0b;
--danger-color: #dc2626;
--success-color: #059669;
--bg-color: #f9fafb;
--card-bg: #ffffff;
--text-primary: #1f2937;
--text-secondary: #6b7280;
--border-color: #e5e7eb;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--bg-color);
color: var(--text-primary);
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Navbar */
.navbar {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
padding: 1rem 0;
box-shadow: var(--shadow);
}
.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-brand h1 {
font-size: 1.5rem;
font-weight: 600;
}
.nav-links {
display: flex;
gap: 2rem;
}
.nav-link {
color: white;
text-decoration: none;
font-weight: 500;
transition: opacity 0.3s;
}
.nav-link:hover {
opacity: 0.8;
}
/* Hero Section */
.hero {
background: linear-gradient(135deg, #1e3a8a 0%, #0d9488 100%);
color: white;
padding: 4rem 0;
text-align: center;
}
.hero-title {
font-size: 2.5rem;
margin-bottom: 1rem;
font-weight: 700;
}
.hero-subtitle {
font-size: 1.2rem;
opacity: 0.9;
}
/* Mode Selection */
.mode-selection {
padding: 3rem 0;
}
.section-title {
text-align: center;
font-size: 2rem;
margin-bottom: 2rem;
color: var(--primary-color);
}
.mode-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.mode-card {
background: var(--card-bg);
border-radius: 12px;
padding: 2rem;
box-shadow: var(--shadow);
transition: transform 0.3s, box-shadow 0.3s;
text-align: center;
}
.mode-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-lg);
}
.mode-card-featured {
border: 2px solid var(--accent-color);
}
.mode-icon {
font-size: 3rem;
margin-bottom: 1rem;
}
.mode-card h4 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: var(--primary-color);
}
.mode-card p {
color: var(--text-secondary);
margin-bottom: 1.5rem;
}
.feature-list {
list-style: none;
text-align: left;
margin: 1.5rem 0;
}
.feature-list li {
padding: 0.5rem 0;
color: var(--text-secondary);
}
/* Buttons */
.btn {
display: inline-block;
padding: 0.75rem 1.5rem;
border-radius: 8px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s;
border: none;
cursor: pointer;
font-size: 1rem;
}
.btn-primary {
background-color: var(--primary-color);
color: white;
}
.btn-primary:hover {
background-color: #1e40af;
}
.btn-featured {
background-color: var(--accent-color);
color: white;
}
.btn-featured:hover {
background-color: #f59e0b;
}
.btn-large {
padding: 1rem 2rem;
font-size: 1.1rem;
width: 100%;
margin-top: 1rem;
}
/* Steps */
.info-section {
padding: 3rem 0;
background: white;
border-radius: 12px;
margin-top: 3rem;
box-shadow: var(--shadow);
}
.steps {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 2rem;
padding: 2rem;
}
.step {
text-align: center;
}
.step-number {
width: 50px;
height: 50px;
background: var(--secondary-color);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: bold;
margin: 0 auto 1rem;
}
.step h5 {
font-size: 1.2rem;
margin-bottom: 0.5rem;
color: var(--primary-color);
}
/* Upload Section */
.upload-section {
padding: 2rem 0;
}
.page-title {
text-align: center;
font-size: 2rem;
margin-bottom: 2rem;
color: var(--primary-color);
}
.upload-container {
background: white;
border-radius: 12px;
padding: 2rem;
box-shadow: var(--shadow);
max-width: 800px;
margin: 0 auto;
}
.upload-group {
margin-bottom: 2rem;
}
.upload-label {
display: block;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--primary-color);
}
.upload-box {
border: 2px dashed var(--border-color);
border-radius: 8px;
padding: 2rem;
text-align: center;
cursor: pointer;
transition: all 0.3s;
position: relative;
}
.upload-box:hover {
border-color: var(--secondary-color);
background-color: #f0fdfa;
}
.upload-box input[type="file"] {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
opacity: 0;
cursor: pointer;
}
.upload-icon {
font-size: 3rem;
display: block;
margin-bottom: 1rem;
}
.upload-placeholder p {
font-size: 1.1rem;
color: var(--text-primary);
margin-bottom: 0.5rem;
}
.upload-placeholder small {
color: var(--text-secondary);
}
.image-preview {
max-width: 100%;
max-height: 300px;
border-radius: 8px;
}
/* Results Section */
.results-section {
margin-top: 2rem;
background: white;
border-radius: 12px;
padding: 2rem;
box-shadow: var(--shadow);
}
.result-header {
text-align: center;
padding: 2rem;
border-radius: 8px;
margin-bottom: 2rem;
}
.result-header.success {
background: linear-gradient(135deg, #059669, #10b981);
color: white;
}
.result-header.warning {
background: linear-gradient(135deg, #dc2626, #ef4444);
color: white;
}
.result-prediction {
font-size: 2rem;
font-weight: bold;
margin-bottom: 0.5rem;
}
.result-confidence {
font-size: 1.2rem;
opacity: 0.9;
}
.result-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.result-card {
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 1.5rem;
}
.result-card h4 {
color: var(--primary-color);
margin-bottom: 1rem;
}
.result-image {
width: 100%;
border-radius: 8px;
margin-top: 1rem;
}
.clinical-features {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
margin-top: 1rem;
}
.feature-item {
background: var(--bg-color);
padding: 1rem;
border-radius: 8px;
}
.feature-label {
font-size: 0.9rem;
color: var(--text-secondary);
margin-bottom: 0.25rem;
}
.feature-value {
font-size: 1.5rem;
font-weight: bold;
color: var(--primary-color);
}
.interpretation {
background: #eff6ff;
border-left: 4px solid var(--primary-color);
padding: 1rem;
margin-top: 1.5rem;
border-radius: 4px;
}
/* Error Message */
.error-message {
background: #fee2e2;
border: 1px solid #dc2626;
color: #dc2626;
padding: 1rem;
border-radius: 8px;
margin-top: 1rem;
}
/* Loader */
.loader {
border: 3px solid #f3f3f3;
border-top: 3px solid var(--primary-color);
border-radius: 50%;
width: 20px;
height: 20px;
animation: spin 1s linear infinite;
display: inline-block;
margin-left: 0.5rem;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* About Page */
.about-section {
padding: 2rem 0;
}
.about-content {
display: grid;
gap: 2rem;
}
.about-card {
background: white;
border-radius: 12px;
padding: 2rem;
box-shadow: var(--shadow);
}
.about-card h3 {
color: var(--primary-color);
margin-bottom: 1rem;
}
.about-card ul, .about-card ol {
margin-left: 1.5rem;
color: var(--text-secondary);
}
.about-card li {
margin-bottom: 0.5rem;
}
.conditions-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 1rem;
}
.disclaimer {
background: #fef3c7;
border-left: 4px solid var(--accent-color);
padding: 1rem;
border-radius: 4px;
color: #92400e;
}
/* Footer */
.footer {
background: var(--primary-color);
color: white;
text-align: center;
padding: 2rem 0;
margin-top: 4rem;
}
/* Responsive */
@media (max-width: 768px) {
.hero-title {
font-size: 2rem;
}
.mode-cards {
grid-template-columns: 1fr;
}
.result-grid {
grid-template-columns: 1fr;
}
}