        :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;
            --rna-purple: #6f42c1;
            --rna-green: #20c997;
            --rna-blue: #17a2b8;
            --rna-orange: #fd7e14;
        }
          
        /* Chart Container */
        .chart-container {
            position: relative;
            height: 400px;
            width: 100%;
            margin: 2rem 0;
        }
        
        /* Sequence Visualization */
        .sequence-container {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
            overflow-x: auto;
            font-family: 'Courier New', monospace;
        }
        
        .sequence-row {
            display: flex;
            flex-wrap: nowrap;
            margin-bottom: 10px;
        }
        
        .sequence-index {
            color: var(--text-muted);
            font-size: 0.8rem;
            width: 50px;
            flex-shrink: 0;
            text-align: right;
            padding-right: 10px;
            padding-top: 5px;
        }
        
        .sequence-nucleotide {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            margin: 2px;
            font-weight: bold;
            font-size: 0.9rem;
        }
        
        .nucleotide-a {
            background-color: rgba(111, 66, 193, 0.2);
            color: var(--rna-purple);
            border: 1px solid rgba(111, 66, 193, 0.3);
        }
        
        .nucleotide-u {
            background-color: rgba(32, 201, 151, 0.2);
            color: var(--rna-green);
            border: 1px solid rgba(32, 201, 151, 0.3);
        }
        
        .nucleotide-g {
            background-color: rgba(23, 162, 184, 0.2);
            color: var(--rna-blue);
            border: 1px solid rgba(23, 162, 184, 0.3);
        }
        
        .nucleotide-c {
            background-color: rgba(253, 126, 20, 0.2);
            color: var(--rna-orange);
            border: 1px solid rgba(253, 126, 20, 0.3);
        }
        
        .paired {
            background-color: rgba(40, 167, 69, 0.2);
            border-color: rgba(40, 167, 69, 0.5);
        }
        
        /* Structure Visualization */
        .structure-container {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
            overflow-x: auto;
        }
        
        .structure-svg {
            width: 100%;
            min-height: 300px;
            background-color: #f8f9fa;
        }
        
        .stem {
            stroke: var(--rna-purple);
            stroke-width: 2;
        }
        
        .loop {
            stroke: var(--rna-orange);
            stroke-width: 2;
            fill: none;
        }
        
        .hairpin {
            stroke: var(--rna-green);
            stroke-width: 2;
            fill: none;
        }
         
        
        /* Responsive Adjustments */
        @media (max-width: 768px) { 
            .sequence-nucleotide {
                width: 25px;
                height: 25px;
                font-size: 0.8rem;
            }
        }
        
        /* 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;
        }
      
        /* Bioinfo-specific styling */
        .bioinfo-alert {
            background-color: rgba(111, 66, 193, 0.1);
            border-left: 4px solid var(--rna-purple);
            padding: 1rem;
            margin: 1rem 0;
            border-radius: 0 4px 4px 0;
        }
        
        .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);
        }
        
        /* RNA specific styles */
        .rna-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        
        .stat-item {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .stat-item h4 {
            font-size: 1rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }
        
        .stat-item .value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--rna-purple);
        }
        
        .stat-item .detail {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
        }
        
        .base-pair-key {
            display: flex;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        
        .base-pair-color {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            margin-right: 10px;
        }
        
        .gc-pair {
            background-color: rgba(111, 66, 193, 0.2);
            border: 1px solid rgba(111, 66, 193, 0.5);
        }
        
        .au-pair {
            background-color: rgba(32, 201, 151, 0.2);
            border: 1px solid rgba(32, 201, 151, 0.5);
        }
        
        .gu-pair {
            background-color: rgba(23, 162, 184, 0.2);
            border: 1px solid rgba(23, 162, 184, 0.5);
        }
    