        :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;
            --danger-color: #dc3545;
        }
  
        .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);
        }
       
        
        .summary-card {
            background: 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);
        }
        
        .summary-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        
        .summary-label {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        
        /* Chart Container */
        .chart-container {
            position: relative;
            height: 400px;
            width: 100%;
            margin: 2rem 0;
        }
        
        /* Financial Summary */
        .financial-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        
        .financial-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);
        }
        
        .financial-item h4 {
            font-size: 1rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }
        
        .financial-item .value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        
        .financial-item .detail {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
        }
         
        /* Responsive Adjustments */
        @media (max-width: 768px) { 
            .financial-summary {
                grid-template-columns: 1fr;
            }
        }
        
        /* 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;
        }
        
      
        /* Equation helper styles */
        .equation-helper {
            background-color: #f8f9fa;
            border-radius: 6px;
            padding: 1rem;
            margin-bottom: 1rem;
            border-left: 4px solid var(--primary-color);
        }
        
        .equation-example {
            font-family: monospace;
            background-color: #e9ecef;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            margin: 0 0.25rem;
        }
        
        .validation-error {
            color: var(--danger-color);
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }
        
        .compound-help {
            font-size: 0.875rem;
            color: var(--text-muted);
            margin-top: 0.25rem;
        }
        
        .reaction-visualization {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .reaction-equation {
            font-size: 1.25rem;
            text-align: center;
            padding: 1rem;
            background-color: var(--light-gray);
            border-radius: 6px;
            font-family: 'Times New Roman', serif;
        }
        
        .coefficient {
            font-weight: bold;
            margin-right: 0.25rem;
        }
        
        .compound {
            font-style: italic;
        }
        
        .reaction-arrow {
            margin: 0 1rem;
            font-weight: bold;
        }
        
        .plus {
            margin: 0 0.5rem;
        }
        
        .calculation-steps {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid var(--border-color);
        }
        
        .step {
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .step:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        
        .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-size: 0.875rem;
            font-weight: bold;
        }
        
        .preset-reactions {
            margin-bottom: 1.5rem;
        }
        
        .preset-btn {
            margin: 0.25rem;
        }
        
        .molar-mass-auto {
            color: var(--success-color);
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }
        
        /* Reaction input styling */
        .reaction-input {
            margin-bottom: 1.5rem;
        }
        
        .reactant-row, .product-row {
            display: flex;
            align-items: center;
            margin-bottom: 0.75rem;
            padding: 0.75rem;
            background-color: var(--light-gray);
            border-radius: 6px;
        }
        
        .coefficient-input {
            width: 60px;
            margin-right: 0.5rem;
        }
        
        .compound-input { 
            margin-right: 0.5rem;
        }
        
    
        .add-reagent-btn {
            margin-top: 0.5rem;
        }
        
        /* Mole comparison visualization */
        .mole-visualization {
            display: flex;
            align-items: center;
            margin: 1rem 0;
            padding: 1rem;
            background-color: white;
            border-radius: 6px;
            border: 1px solid var(--border-color);
        }
        
        .mole-bar {
            height: 20px;
            border-radius: 10px;
            margin: 0 0.5rem;
            transition: all 0.3s;
        }
        
        .mole-label {
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
    .result-container{display:none}