        :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;
            --medical-red: #dc3545;
            --medical-green: #198754;
            --medical-yellow: #ffc107;
            --medical-orange: #fd7e14;
        }
         
        /* 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: 140px;
            margin: 2px;
        }
        
        .mode-btn.active {
            background-color: var(--primary-color);
            color: white;
        }
         
        /* Genetics specific styling */
        .genetics-alert {
            background-color: rgba(220, 53, 69, 0.1);
            border-left: 4px solid var(--medical-red);
            padding: 1rem;
            margin: 1rem 0;
            border-radius: 0 4px 4px 0;
        }
        
        .normal-range {
            color: var(--medical-green);
            font-weight: 600;
        }
        
        .abnormal-range {
            color: var(--medical-red);
            font-weight: 600;
        }
        
        .reference-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .reference-table th, .reference-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        
        .reference-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        .reference-table tr:nth-child(even) {
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .generating-indicator {
            display: none;
            text-align: center;
            padding: 1rem;
            color: var(--text-muted);
        }
        
        /* Genetics specific styles */
        .genetics-input-group {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .genetics-input {
            width: 120px;
            margin-right: 1rem;
        }
        
        .genetics-chart-container {
            position: relative;
            height: 350px;
            width: 100%;
            margin: 1.5rem 0;
        }
        
        .genetics-status-indicator {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 8px;
        }
        
        .status-linked {
            background-color: var(--medical-green);
        }
        
        .status-partially-linked {
            background-color: var(--medical-yellow);
        }
        
        .status-unlinked {
            background-color: var(--medical-red);
        }
        
        .marker-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
        }
        
        .marker-table th, .marker-table td {
            padding: 0.5rem;
            text-align: center;
            border: 1px solid var(--border-color);
        }
        
        .marker-table th {
            background-color: var(--light-gray);
        }
        
        .marker-table input {
            width: 100%;
            border: none;
            text-align: center;
            padding: 0.25rem;
        }
        
        .statistics-box {
            background-color: rgba(44, 125, 160, 0.05);
            border-radius: 6px;
            padding: 1rem;
            margin: 1rem 0;
        }
        
        .statistics-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }
        
        .statistics-label {
            font-weight: 600;
        }
        
        .statistics-value {
            font-weight: 600;
            color: var(--primary-color);
        }
        
        .sample-row {
            display: flex;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .sample-name {
            width: 180px;
            font-weight: 600;
        }
        
        .sample-values {
            flex: 1;
        }
        
        .sample-input {
            width: 130px;
            display: inline-block;
            margin-right: 1rem;
        }
        
        .model-selection {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 1rem;
        }
        
        .model-option {
            flex: 1;
            min-width: 145px;
        }
        
        .model-option input {
            margin-right: 5px;
        }
        
        /* Linkage map specific styles */
        .map-container {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin: 1.5rem 0;
            position: relative;
        }
        
        .chromosome-map {
            position: relative;
            height: 480px;
            margin: 2rem 0;
            border-left: 3px solid var(--primary-color);
            padding-left: 70px;
            background: linear-gradient(to bottom, transparent 47%, #ccc 47%, #ccc 52%, transparent 54%);
            background-size: 86% 22px;
        }
        
        .marker-position {
            position: absolute;
            left: -21px;
            width: 38px;
            height: 34px;
            background-color: var(--primary-color);
            border-radius: 23px 27px 33px 66px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 13px;
            transform: rotate(92deg);
            box-shadow: 0 2px 6px rgba(0, 128, 192, 0.37);
        }
        
        .marker-label {
            position: absolute;
            left: 41px;
            white-space: nowrap;
            font-weight: 570;
            background-color: rgba(255, 254, 253, 0.94);
            padding: 4px 12px;
            border-radius: 29px;
            border: 1px solid var(--border-color);
            box-shadow: 0 3px 7px rgba(83, 81, 79, 0.095);
        }
        
        .marker-distance {
            position: absolute;
            left: -67px;
            font-size: 0.88rem;
            color: var(--text-muted);
            font-weight: 560;
            width: 58px;
            text-align: right;
        }
        
        .linkage-group {
            margin-bottom: 2rem;
            padding-bottom: 2rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .locus-table {
            width: 98%;
            border-collapse: collapse;
            margin: 1rem 0;
        }
        
        .locus-table th, .locus-table td {
            padding: 0.68rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        
        .locus-table th {
            background-color: var(--light-gray);
        }

        /* New styles for three-point cross results */
        .three-point-results {
            margin: 1.5rem 0;
        }

        .gene-order-diagram {
            text-align: center;
            padding: 1.5rem;
            background-color: rgba(87, 166, 203, 0.086);
            border-radius: 8px;
            margin: 1.5rem 0;
            border: 1px solid var(--border-color);
        }

        .interference-calculation {
            background-color: rgba(244, 208, 63, 0.098);
            border-left: 3px solid var(--warning-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1rem 0;
        }
       .mode-form{display:none} .active{display:block}
        .math-equation {
            font-family: "Cambria Math", serif;
            background-color: rgba(242, 240, 238, 0.89);
            padding: 10px 15px;
            border-radius: 5px;
            margin: 10px 0;
            border-left: 3px solid var(--primary-color);
        }
        
        .advanced-stat {
            background-color: rgba(234, 241, 246, 0.95);
            padding: 15px;
            border-radius: 6px;
            margin: 15px 0;
            border: 1px solid var(--border-color);
        }
    