
        :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);
        }
          
        .cytometry-plot {
            position: relative;
            height: 500px;
            width: 100%;
            margin: 2rem 0;
        }
          
        /* 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;
        }
        
        /* Gate controls */
        .gate-controls {
            background-color: white;
            border-radius: 6px;
            padding: 1rem;
            margin-bottom: 1rem;
            border: 1px solid var(--border-color);
        }
        
        .gate-controls h5 {
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        
        /* Cytometry specific styles */
        .marker-selector {
            margin-bottom: 1.5rem;
        }
        
        .marker-options {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .marker-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;
        }
        
        .marker-option:hover {
            border-color: var(--primary-color);
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .marker-option.active {
            border-color: var(--primary-color);
            background-color: rgba(44, 125, 160, 0.1);
        }
        
        .marker-color {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            margin-right: 0.75rem;
        }
        
        /* Population table */
        .population-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .population-table th, .population-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        
        .population-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        .population-table tr:hover {
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .population-color {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            display: inline-block;
            margin-right: 0.5rem;
        }
        
        /* 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;
        }
        
        /* Interactive gate styles */
        .gate-rectangle {
            position: absolute;
            border: 2px solid #ff0000;
            background-color: rgba(255, 0, 0, 0.1);
            pointer-events: none;
        }
        
        .gate-polygon {
            position: absolute;
            border: 2px solid #ff0000;
            background-color: rgba(255, 0, 0, 0.1);
            pointer-events: none;
        }
        
        .gate-ellipse {
            position: absolute;
            border: 2px solid #ff0000;
            background-color: rgba(255, 0, 0, 0.1);
            border-radius: 50%;
            pointer-events: none;
        }
        
        /* Plot container for interactive gating */
        .plot-container {
            position: relative;
            width: 100%;
            height: 100%;
        }
        
        .plot-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        
        .gate-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }
        
        /* Density plot styles */
        .density-legend {
            position: absolute;
            right: 10px;
            top: 10px;
            width: 20px;
            height: 150px;
            background: linear-gradient(to top, rgba(44, 125, 160, 0.1), rgba(44, 125, 160, 1));
            border: 1px solid #ddd;
        }
        
        /* 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;
        }
    