        :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;
            --acid-color: #e74c3c;
            --base-color: #3498db;
            --amphoteric-color: #9b59b6;
        }
         
        /* Chemical Structure */
        .chemical-structure {
            text-align: center;
            font-family: 'Courier New', monospace;
            font-size: 1.2rem;
            margin: 1rem 0;
            padding: 1rem;
            background-color: white;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }
        
        /* Analysis Summary */
        .analysis-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        .badge{color:red}
        .analysis-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);
        }
        
        .analysis-item h4 {
            font-size: 1rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }
        
        .analysis-item .value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        
        .analysis-item .detail {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
        }
         
        /* Responsive Adjustments */
        @media (max-width: 768px) { 
            .analysis-summary {
                grid-template-columns: 1fr;
            }
        }
        
        /* Toggle switch for calculation modes */
        .analysis-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;
        }
        
       
        /* Molecular visualization */
        .molecule-viewer {
            width: 100%;
            height: 300px;
            background-color: #f8f9fa;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            margin: 1.5rem 0;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        
        .molecule-canvas {
            width: 100%;
            height: 100%;
        }
        
        .molecule-placeholder {
            color: var(--text-muted);
            text-align: center;
        }
        
        .molecule-placeholder i {
            font-size: 3rem;
            margin-bottom: 1rem;
            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);
        }
        
        /* Orbital visualization */
        .orbital-diagram {
            display: flex;
            justify-content: center;
            margin: 1.5rem 0;
        }
        
        .orbital {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 1rem;
            position: relative;
        }
        
        .orbital-acid {
            background-color: rgba(231, 76, 60, 0.1);
            border: 2px solid var(--acid-color);
        }
        
        .orbital-base {
            background-color: rgba(52, 152, 219, 0.1);
            border: 2px solid var(--base-color);
        }
        
        .orbital-label {
            position: absolute;
            bottom: -25px;
            left: 0;
            right: 0;
            text-align: center;
            font-weight: 600;
        }
        
        .electron-pair {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .electron {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: #333;
            margin: 0 2px;
        }
        
        .interaction-arrow {
            font-size: 2rem;
            color: var(--text-muted);
            margin: 0 1rem;
            display: flex;
            align-items: center;
        }
        
        .generating-indicator {
            display: none;
            padding: 1rem;
            text-align: center;
            background-color: rgba(44, 125, 160, 0.1);
            border-radius: 6px;
            margin: 1rem 0;
        }
        
        /* Mode-specific form styling - FIXED */
        .mode-form {
            display: none;
        }
        
        .mode-form.active {
            display: block;
        }
        
        /* 3Dmol.js viewer styling */
        .viewer-controls {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 10;
            display: flex;
            gap: 5px;
        }
        
        .viewer-control-btn {
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 5px 10px;
            cursor: pointer;
            font-size: 0.8rem;
        }
        
        .viewer-control-btn:hover {
            background: white;
        }
        
        /* HOMO-LUMO visualization */
        .orbital-energy-levels {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 1.5rem 0;
        }
        
        .energy-level {
            width: 200px;
            height: 30px;
            margin: 5px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            color: white;
            font-weight: bold;
        }
        
        .homo-level {
            background-color: #3498db;
        }
        
        .lumo-level {
            background-color: #e74c3c;
        }
        
        .energy-gap {
            width: 10px;
            height: 40px;
            background-color: #f1c40f;
            margin: 5px 0;
        }
        
        .energy-label {
            margin-top: 5px;
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        
        .text-acid {
            color: var(--acid-color);
        }
        
        .text-base {
            color: var(--base-color);
        }
        
        .social-icon {
            display: inline-block;
            width: 36px;
            height: 36px;
            background-color: var(--light-gray);
            border-radius: 50%;
            text-align: center;
            line-height: 36px;
            margin-right: 0.5rem;
            color: var(--text-muted);
            transition: all 0.3s;
        }
        
        .social-icon:hover {
            background-color: var(--primary-color);
            color: white;
        }
    