.bit-grid {
            display: flex;
            flex-wrap: nowrap;
            justify-content: center;
            overflow-x: auto;
            background: #f8f9fc;
            border-radius: 12px;
            padding: 1rem;
            margin: 1rem 0;
            font-family: 'Courier New', monospace;
        }
        .bit-cell {
            width: 42px;
            height: 48px;
            margin: 2px;
            background: white;
            border: 1px solid #ced4da;
            border-radius: 6px;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            transition: transform 0.1s;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        }
        .bit-cell span:first-child {
            font-size: 1rem;
            font-weight: 600;
        }
        .bit-cell span:last-child {
            font-size: 0.7rem;
            color: #6c757d;
        }
        .bit-cell.active-1 {
            background-color: #d1e7ff;
            border-color: #0d6efd;
            color: #0a58ca;
        }
        .bit-label {
            font-size: 0.7rem;
            text-align: center;
            margin-top: 5px;
        }
        .shift-visual {
            background: #f2f2f2;
            padding: 10px;
            border-radius: 12px;
        }
        .result-badge {
            font-size: 1.3rem;
            font-weight: 600;
            font-family: monospace;
            background: #e9ecef;
            padding: 0.5rem 1rem;
            border-radius: 20px;
        }
        .binary-string {
            font-family: 'Courier New', monospace;
            font-size: 1rem;
            letter-spacing: 1px;
            word-break: break-all;
            background: #f1f3f5;
            padding: 0.6rem;
            border-radius: 10px;
        }
        .method-card {
            background-color: #fef9e6;
            border-left: 5px solid #f0ad4e;
        }
        .shift-example {
            cursor: pointer;
            transition: all 0.2s;
        }
        .shift-example:hover {
            background-color: rgba(13,110,253,0.1);
            transform: translateY(-2px);
        }
        .icon-bit {
            font-size: 1.8rem;
            color: #2c3e50;
        }
        .bitwise-table td, .bitwise-table th {
            text-align: center;
            vertical-align: middle;
        }
        .legend-bit {
            display: inline-block;
            width: 14px;
            height: 14px;
            background: #d1e7ff;
            border: 1px solid #0d6efd;
            border-radius: 3px;
            margin-right: 6px;
        }
        .result-value-large {
            font-size: 2rem;
            font-weight: 700;
            color: #0d6efd;
        }