/* JSON Diff Checker Styles */

.json-textarea {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
}

/* Diff Display */
.diff-display {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

[data-bs-theme="dark"] .diff-display {
    background-color: #212529;
    border-color: #495057;
}

.diff-no-changes {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

/* Diff List */
.diff-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.diff-item {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
}

[data-bs-theme="dark"] .diff-item {
    background-color: #2b3035;
    border-color: #495057;
}

.diff-item.diff-added {
    border-left: 4px solid #198754;
}

.diff-item.diff-removed {
    border-left: 4px solid #dc3545;
}

.diff-item.diff-modified {
    border-left: 4px solid #ffc107;
}

/* Diff Path */
.diff-path {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

[data-bs-theme="dark"] .diff-path {
    border-bottom-color: #495057;
}

.diff-path code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    color: #052c65;
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

[data-bs-theme="dark"] .diff-path code {
    color: #6ea8fe;
    background-color: #343a40;
}

/* Type Badges */
.diff-type-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.diff-badge-added {
    background-color: #d1e7dd;
    color: #0f5132;
}

.diff-badge-removed {
    background-color: #f8d7da;
    color: #842029;
}

.diff-badge-modified {
    background-color: #fff3cd;
    color: #664d03;
}

[data-bs-theme="dark"] .diff-badge-added {
    background-color: #0f5132;
    color: #d1e7dd;
}

[data-bs-theme="dark"] .diff-badge-removed {
    background-color: #842029;
    color: #f8d7da;
}

[data-bs-theme="dark"] .diff-badge-modified {
    background-color: #664d03;
    color: #fff3cd;
}

/* Diff Content */
.diff-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.diff-value {
    padding: 0.75rem;
    border-radius: 0.25rem;
}

.diff-value strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.diff-value pre {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
}

.diff-added-value {
    background-color: #d1e7dd;
    border-left: 3px solid #198754;
}

.diff-removed-value {
    background-color: #f8d7da;
    border-left: 3px solid #dc3545;
}

[data-bs-theme="dark"] .diff-added-value {
    background-color: #0a3622;
    border-left-color: #51cf66;
    color: #d1e7dd;
}

[data-bs-theme="dark"] .diff-removed-value {
    background-color: #2c0b0e;
    border-left-color: #ea868f;
    color: #f8d7da;
}

/* Swap Button - Custom Style */
.btn-swap {
    background-color: transparent;
    border: 1px solid #052c65;
    color: #052c65;
}

.btn-swap .fsvg {
    filter: none;
}

.btn-swap:hover {
    background-color: #052c65;
    border-color: #052c65;
    color: #ffffff;
}

.btn-swap:hover .fsvg {
    filter: brightness(0) invert(1);
}

.btn-swap:focus,
.btn-swap:active {
    background-color: #041f4d;
    border-color: #041f4d;
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(5, 44, 101, 0.25);
}

.btn-swap:focus .fsvg,
.btn-swap:active .fsvg {
    filter: brightness(0) invert(1);
}

[data-bs-theme="dark"] .btn-swap {
    border-color: #6ea8fe;
    color: #6ea8fe;
}

[data-bs-theme="dark"] .btn-swap:hover {
    background-color: #6ea8fe;
    border-color: #6ea8fe;
    color: #000000;
}

[data-bs-theme="dark"] .btn-swap:hover .fsvg {
    filter: none;
}

[data-bs-theme="dark"] .btn-swap:focus,
[data-bs-theme="dark"] .btn-swap:active {
    background-color: #548cd4;
    border-color: #548cd4;
    color: #000000;
}
