viscan-iris-analysis / css /dashboard.css
s200077761
Deploy ViScan PWA - HTML/CSS/JS only
49e476b
Raw
History Blame Contribute Delete
5.21 kB
/* Dashboard Specific Styles */
.dashboard-container {
padding-top: 80px;
min-height: 100vh;
}
section {
padding: 3rem 0;
min-height: auto;
}
/* Upload Section */
.upload-section {
padding-top: 2rem;
}
.upload-card {
max-width: 600px;
margin: 0 auto;
padding: 2rem;
}
.drop-zone {
border: 3px dashed var(--glass-border);
border-radius: var(--radius-lg);
padding: 3rem 2rem;
text-align: center;
cursor: pointer;
transition: all var(--transition-base);
background: rgba(255, 255, 255, 0.02);
}
.drop-zone:hover {
border-color: var(--primary);
background: rgba(102, 126, 234, 0.05);
transform: scale(1.02);
}
.drop-zone.drag-over {
border-color: var(--success);
background: rgba(67, 233, 123, 0.1);
transform: scale(1.05);
}
.drop-zone-content h3 {
color: var(--text-light);
margin-bottom: 0.5rem;
}
/* Image Preview */
.image-preview {
text-align: center;
}
.image-preview img {
max-width: 100%;
max-height: 400px;
border-radius: var(--radius-md);
margin-bottom: 1.5rem;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.preview-actions {
display: flex;
gap: 1rem;
justify-content: center;
}
.analysis-progress {
text-align: center;
padding: 2rem;
}
/* Results Section */
.results-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.color-item {
display: flex;
align-items: center;
gap: 1rem;
padding: 0.75rem;
background: rgba(255, 255, 255, 0.03);
border-radius: var(--radius-sm);
margin-bottom: 0.75rem;
}
.color-swatch {
width: 40px;
height: 40px;
border-radius: 50%;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
flex-shrink: 0;
}
.color-info {
flex: 1;
}
.color-info strong {
color: var(--text-light);
display: block;
margin-bottom: 0.25rem;
}
.color-info small {
color: var(--text-muted);
font-size: 0.875rem;
}
.pattern-item {
padding: 0.75rem;
background: rgba(255, 255, 255, 0.03);
border-radius: var(--radius-sm);
margin-bottom: 0.75rem;
border-right: 3px solid var(--accent);
}
.pattern-item strong {
color: var(--text-light);
display: block;
margin-bottom: 0.25rem;
}
/* Zone Mapping */
.zone-mapping {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1rem;
max-height: 500px;
overflow-y: auto;
padding: 1rem;
}
.zone-item {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: var(--radius-md);
padding: 1rem;
transition: all var(--transition-base);
}
.zone-item:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.zone-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
}
.zone-name {
font-weight: 600;
color: var(--text-light);
}
.zone-status {
width: 12px;
height: 12px;
border-radius: 50%;
box-shadow: 0 0 10px currentColor;
}
.zone-organ {
font-size: 0.875rem;
color: var(--accent);
margin-bottom: 0.5rem;
}
.zone-interpretation {
font-size: 0.875rem;
color: var(--text-muted);
line-height: 1.5;
}
/* Recommendations */
.recommendation-item {
padding: 1rem;
background: rgba(255, 255, 255, 0.03);
border-radius: var(--radius-md);
margin-bottom: 0.75rem;
border-right: 3px solid var(--success);
transition: all var(--transition-base);
}
.recommendation-item:hover {
background: rgba(255, 255, 255, 0.05);
transform: translateX(-5px);
}
/* History Section */
.history-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.5rem;
}
.history-card {
background: var(--bg-dark-card);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: var(--radius-lg);
overflow: hidden;
transition: all var(--transition-base);
cursor: pointer;
}
.history-card:hover {
transform: translateY(-5px);
border-color: var(--primary);
box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}
.history-image {
width: 100%;
height: 200px;
object-fit: cover;
background: var(--bg-dark-secondary);
}
.history-content {
padding: 1.25rem;
}
.history-date {
font-size: 0.875rem;
color: var(--text-muted);
margin-bottom: 0.5rem;
}
.history-status {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
background: rgba(67, 233, 123, 0.1);
border-radius: var(--radius-sm);
font-size: 0.875rem;
font-weight: 600;
}
.history-actions {
display: flex;
gap: 0.5rem;
margin-top: 1rem;
}
.history-actions button {
flex: 1;
padding: 0.5rem;
font-size: 0.875rem;
}
/* Scrollbar Styling */
.zone-mapping::-webkit-scrollbar {
width: 8px;
}
.zone-mapping::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 10px;
}
.zone-mapping::-webkit-scrollbar-thumb {
background: var(--primary);
border-radius: 10px;
}
.zone-mapping::-webkit-scrollbar-thumb:hover {
background: var(--secondary);
}
/* Responsive */
@media (max-width: 768px) {
.zone-mapping {
grid-template-columns: 1fr;
}
.results-grid {
grid-template-columns: 1fr;
}
.history-grid {
grid-template-columns: 1fr;
}
}