.diff-container {
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #dee2e6;
            overflow: auto;
            max-height: 600px;
            font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace;
            font-size: 13px;
            line-height: 1.6;
            margin-top: 1rem;
        }
        .diff-table {
            width: 100%;
            border-collapse: collapse;
            table-layout: fixed;
        }
        .diff-table td {
            padding: 0.15rem 0.5rem;
            vertical-align: top;
            white-space: pre-wrap;
            word-break: break-word;
            border-bottom: 1px solid #f0f0f0;
        }
        .diff-line-num {
            width: 40px;
            text-align: right;
            color: #999;
            background: #f8f9fa;
            user-select: none;
            border-right: 1px solid #e9ecef;
            font-size: 11px;
            padding-right: 8px;
        }
        .diff-line-content {
            width: 50%;
            padding-left: 12px;
        }
        .diff-line-content-left {
            border-right: 1px solid #e9ecef;
        }
        .diff-row-unchanged .diff-line-content {
            background: #ffffff;
        }
        .diff-row-added .diff-line-content-right {
            background: #d4edda;
        }
        .diff-row-added .diff-line-content-left {
            background: #f8f9fa;
            color: #999;
        }
        .diff-row-deleted .diff-line-content-left {
            background: #f8d7da;
        }
        .diff-row-deleted .diff-line-content-right {
            background: #f8f9fa;
            color: #999;
        }
        .diff-row-modified .diff-line-content-left {
            background: #fff3cd;
        }
        .diff-row-modified .diff-line-content-right {
            background: #fff3cd;
        }
        .diff-row-unchanged .diff-line-num {
            background: #f8f9fa;
        }
        .diff-row-added .diff-line-num-right {
            background: #d4edda;
        }
        .diff-row-deleted .diff-line-num-left {
            background: #f8d7da;
        }
        .diff-row-modified .diff-line-num {
            background: #fff3cd;
        }
        .diff-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            padding: 0.75rem 1rem;
            background: white;
            border-radius: 8px;
            border: 1px solid #dee2e6;
            margin-top: 0.75rem;
        }
        .diff-stat-item {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .diff-stat-badge {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 3px;
        }
        .diff-stat-badge.added { background: #28a745; }
        .diff-stat-badge.deleted { background: #dc3545; }
        .diff-stat-badge.modified { background: #ffc107; }
        .diff-stat-badge.unchanged { background: #6c757d; }
        .diff-stat-number {
            font-weight: 700;
            font-size: 1.1rem;
        }
        .diff-option-group {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
            background: #f8f9fa;
            padding: 0.75rem 1rem;
            border-radius: 6px;
            margin: 0.5rem 0 1rem 0;
        }
        .diff-option-group .form-check {
            margin-bottom: 0;
        }
        .diff-textarea {
            font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace;
            font-size: 13px;
            line-height: 1.6;
            min-height: 180px;
            resize: vertical;
        }
        .diff-textarea.drag-over {
            border-color: #0d6efd;
            background-color: #e7f1ff;
            box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
        }
        .diff-header-label {
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 0.25rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .diff-header-label .badge {
            font-size: 0.7rem;
        }
        .file-upload-wrapper {
            position: relative;
            display: inline-block;
        }
        .file-upload-wrapper input[type="file"] {
            position: absolute;
            left: 0;
            top: 0;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }
        .diff-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 0.5rem 0;
        }
        .diff-empty-state {
            padding: 2rem;
            text-align: center;
            color: #6c757d;
        }
        .diff-empty-state i {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
            opacity: 0.5;
        }
        .deep-dive p {
            text-align: justify;
        }
        .legend {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.5rem;
            margin: 0.5rem 0;
            font-size: 0.85rem;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        .legend-color {
            width: 14px;
            height: 14px;
            border-radius: 3px;
            border: 1px solid rgba(0,0,0,0.08);
        }
        .legend-color.added { background: #d4edda; }
        .legend-color.deleted { background: #f8d7da; }
        .legend-color.modified { background: #fff3cd; }
        .legend-color.unchanged { background: #ffffff; border-color: #ccc; }
        .diff-char-removed {
            background-color: #f8d7da;
            text-decoration: line-through;
            color: #721c24;
            display: inline;
            padding: 0 1px;
            border-radius: 2px;
        }
        .diff-char-added {
            background-color: #d4edda;
            color: #155724;
            display: inline;
            padding: 0 1px;
            border-radius: 2px;
            border-bottom: 1px solid #28a745;
        }
        .toast-custom {
            background: #fff;
            border-left: 4px solid #28a745;
            box-shadow: 0 4px 12px rgba(0,0,0,0.12);
            padding: 0.75rem 1.25rem;
            border-radius: 6px;
            margin-bottom: 0.5rem;
            min-width: 240px;
        }
        @media (max-width: 768px) {
            .diff-table td {
                font-size: 12px;
                padding: 0.1rem 0.3rem;
            }
            .diff-line-num {
                width: 28px;
                font-size: 10px;
                padding-right: 4px;
            }
            .diff-line-content {
                padding-left: 6px;
            }
            .diff-stats {
                gap: 0.75rem;
                font-size: 0.85rem;
            }
        }