        :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;
            --chemistry-blue: #2c7da0;
            --chemistry-green: #28a745;
            --chemistry-purple: #6f42c1;
        }.step-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
         .step-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-right: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}
       
        .chemistry-info-box {
            background-color: rgba(111, 66, 193, 0.05);
            border-left: 3px solid var(--chemistry-purple);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 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;
        }
         
        /* Range slider styling */
        .form-range {
            width: 100%;
            height: 1rem;
            padding: 0;
            background-color: transparent;
            -webkit-appearance: none;
        }
        
        .form-range:focus {
            outline: none;
        }
        
        .form-range::-webkit-slider-thumb {
            width: 1rem;
            height: 1rem;
            margin-top: -0.5rem;
            background-color: var(--primary-color);
            border: 0;
            border-radius: 1rem;
            -webkit-appearance: none;
        }
        
        .form-range::-webkit-slider-runnable-track {
            width: 100%;
            height: 0.5rem;
            cursor: pointer;
            animate: 0.2s;
            background: var(--light-gray);
            border-radius: 0.5rem;
        }
        
        .slider-value {
            background-color: var(--primary-color);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
            margin-left: 0.5rem;
        }
        
        /* Input group styling */
        .input-group {
            margin-bottom: 1rem;
        }
        
        /* 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);
        }
        
        /* Chemistry-specific styling */
        .chemistry-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(--chemistry-green);
            font-weight: 600;
        }
        
        .abnormal-range {
            color: var(--chemistry-purple);
            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);
        }
        
        /* Buffer specific styles */
        .buffer-input-group {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .buffer-input {
            width: 150px;
            margin-right: 1rem;
        }
        
        .buffer-separator {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--text-muted);
            margin: 0 0.5rem;
        }
        
        .buffer-classification {
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            border-left: 5px solid;
        }
        
        .buffer-normal {
            background-color: rgba(40, 167, 69, 0.1);
            border-left-color: var(--chemistry-green);
        }
        
        .buffer-acidic {
            background-color: rgba(13, 110, 253, 0.1);
            border-left-color: #0d6efd;
        }
        
        .buffer-basic {
            background-color: rgba(253, 126, 20, 0.1);
            border-left-color: var(--medical-orange);
        }
        
        .buffer-chart-container {
            position: relative;
            height: 300px;
            width: 100%;
            margin: 1.5rem 0;
        }
        
        .buffer-status-indicator {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 8px;
        }
        
        .status-acidic {
            background-color: #0d6efd;
        }
        
        .status-basic {
            background-color: var(--medical-orange);
        }
        
        .status-neutral {
            background-color: var(--chemistry-green);
        }
        
        .chemical-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .chemical-table th, .chemical-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        
        .chemical-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        .chemical-table tr:nth-child(even) {
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .ingredient-list {
            list-style-type: none;
            padding-left: 0;
        }
        
        .ingredient-list li {
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--border-color);
        }
        
        .ingredient-list li:last-child {
            border-bottom: none;
        }
        
        .ingredient-name {
            font-weight: 600;
            color: var(--primary-color);
        }
        
        .ingredient-quantity {
            font-weight: 600;
            color: var(--text-color);
        }
        
        .ingredient-unit {
            color: var(--text-muted);
        }
        
        .preparation-steps {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
         