        :root {
            --primary-color: #2c7da0;
            --secondary-color: #a9d6e5;
            --accent-color: #01497c;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
        }
         
        .page-header {
            background: linear-gradient(135deg, rgba(169, 214, 229, 0.4) 0%, rgba(44, 125, 160, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(44, 125, 160, 0.2);
            position: relative;
            overflow: hidden;    color: var(--text-color);
        }
         
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        
        .breadcrumb-item a {
            color: var(--text-muted);
            text-decoration: none;
        }
        
        .breadcrumb-item.active {
            color: var(--text-color);
        }
         
        .image-container {
            position: relative;
            width: 100%;
            margin: 2rem 0;
            background-color: #f8f9fa;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
        }
        
        .image-placeholder {
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            flex-direction: column;
        }
         
        /* Toggle switch for calculation modes */
        .calculation-modes {
            display: flex;
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 4px;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        
        .mode-btn {
            flex: 1;
            text-align: center;
            padding: 0.75rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
            min-width: 120px;
            margin: 2px;
        }
        
        .mode-btn.active {
            background-color: var(--primary-color);
            color: white;
        }
         
        /* Mode-specific form styling */
        .mode-form {
            display: none;
        }
        
        .mode-form.active {
            display: block;
        }
        
        /* Comparison table */
        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .comparison-table th, .comparison-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        
        .comparison-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        .comparison-table tr:hover {
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        /* Generating indicator */
        .generating-indicator {
            display: none;
            padding: 1rem;
            text-align: center;
            background-color: rgba(44, 125, 160, 0.1);
            border-radius: 6px;
            margin: 1rem 0;
        }
        
        /* Examples grid */
        .examples-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .example-item {
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 1rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .example-item:hover {
            border-color: var(--primary-color);
            transform: translateY(-2px);
        }
        
        .example-formula {
            font-family: 'Courier New', monospace;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }
        
        .example-name {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        
        /* Population quality indicators */
        .quality-indicator {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.85rem;
        }
        
        .quality-high {
            background-color: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .quality-medium {
            background-color: rgba(255, 193, 7, 0.1);
            color: #ffc107;
        }
        
        .quality-low {
            background-color: rgba(253, 126, 20, 0.1);
            color: #fd7e14;
        }
        
        .quality-poor {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        /* File upload area */
        .file-upload-area {
            border: 2px dashed #ddd;
            border-radius: 8px;
            padding: 2rem;
            text-align: center;
            margin-bottom: 1.5rem;
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .file-upload-area:hover {
            border-color: var(--primary-color);
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .file-upload-area.dragover {
            border-color: var(--primary-color);
            background-color: rgba(44, 125, 160, 0.1);
        }
        
        .file-upload-icon {
            font-size: 3rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }
        
        /* Analysis parameters */
        .analysis-params {
            background-color: white;
            border-radius: 6px;
            padding: 1rem;
            margin-bottom: 1rem;
            border: 1px solid var(--border-color);
        }
        
        .analysis-params h5 {
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        
        /* Tab navigation */
        .analysis-tabs {
            display: flex;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
        }
        
        .analysis-tab {
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
            font-weight: 600;
        }
        
        .analysis-tab.active {
            border-bottom-color: var(--primary-color);
            color: var(--primary-color);
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* Band detection controls */
        .band-controls {
            background-color: white;
            border-radius: 6px;
            padding: 1rem;
            margin-bottom: 1rem;
            border: 1px solid var(--border-color);
        }
        
        .band-controls h5 {
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        
        /* Lane and band table */
        .lane-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .lane-table th, .lane-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        
        .lane-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        .lane-table tr:hover {
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .lane-color {
            width: 16px;
            height: 16px;
            border-radius: 4px;
            display: inline-block;
            margin-right: 0.5rem;
        }
        
        /* Canvas for image analysis */
        .analysis-canvas-container {
            position: relative;
            width: 100%;
            margin: 1.5rem 0;
        }
        
        .analysis-canvas {
            width: 100%;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background-color: #f8f9fa;
        }
        
        /* Band intensity visualization */
        .intensity-plot {
            background-color: white;
            border-radius: 6px;
            padding: 1rem;
            margin-bottom: 1rem;
            border: 1px solid var(--border-color);
        }
        
        /* Western Blot specific styles */
        .lane-selector {
            margin-bottom: 1.5rem;
        }
        
        .lane-options {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .lane-option {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .lane-option:hover {
            border-color: var(--primary-color);
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .lane-option.active {
            border-color: var(--primary-color);
            background-color: rgba(44, 125, 160, 0.1);
        }
        
        .lane-color-preview {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            margin-right: 0.75rem;
        }
        
        /* Analysis results */
        .results-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .results-table th, .results-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        
        .results-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        .results-table tr:hover {
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        /* Validation panel */
        .validation-panel {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 1.5rem;
            margin-top: 1.5rem;
            border: 1px solid #e9ecef;
        }
        
        .validation-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }
        
        .validation-item {
            display: flex;
            align-items: center;
            padding: 0.5rem 0;
            border-bottom: 1px solid #e9ecef;
        }
        
        .validation-item:last-child {
            border-bottom: none;
        }
        
        .validation-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 0.75rem;
            flex-shrink: 0;
        }
        
        .validation-icon.valid {
            background-color: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .validation-icon.invalid {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        .validation-icon.warning {
            background-color: rgba(255, 193, 7, 0.1);
            color: #ffc107;
        }
        
        /* Demo data indicator */
        .demo-indicator {
            background-color: rgba(255, 193, 7, 0.1);
            border: 1px solid rgba(255, 193, 7, 0.3);
            border-radius: 6px;
            padding: 0.75rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
        }
        
        .demo-indicator i {
            color: #ffc107;
            margin-right: 0.5rem;
        }
        
        /* Manual adjustment tools */
        .manual-tools {
            background-color: white;
            border-radius: 6px;
            padding: 1rem;
            margin-bottom: 1rem;
            border: 1px solid var(--border-color);
        }
        
        .manual-tools h5 {
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        
        /* Manual band adjustment */
        .band-adjustment {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .band-adjustment-item {
            flex: 1;
            min-width: 200px;
        }
        
        /* Manual input table */
        .manual-input-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
        }
        
        .manual-input-table th, .manual-input-table td {
            padding: 0.5rem;
            text-align: center;
            border: 1px solid var(--border-color);
        }
        
        .manual-input-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        /* Export options */
        .export-options {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .export-option {
            flex: 1;
            min-width: 200px;
        }
    