[data-bs-theme="light"] {
    --jwt-body-bg: #f4f6f9;
    --jwt-json-bg: #f1f3f5;
    --jwt-json-color: #212529;
    --jwt-claims-header-bg: #212529;
    --jwt-claims-header-color: #fff;
    color-scheme: light;
}

[data-bs-theme="dark"] {
    --jwt-body-bg: #0d1117;
    --jwt-json-bg: #161b22;
    --jwt-json-color: #e6edf3;
    --jwt-claims-header-bg: #21262d;
    --jwt-claims-header-color: #e6edf3;
    color-scheme: dark;
}

body {
    background-color: var(--jwt-body-bg);
    min-height: 100vh;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.jwt-input {
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 6rem;
}

.json-block {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8125rem;
    line-height: 1.45;
    padding: 1rem;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    background-color: var(--jwt-json-bg);
    color: var(--jwt-json-color);
    border-radius: 0;
    max-height: 320px;
    overflow: auto;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.signature-block {
    max-height: 160px;
}

.panel-card .card-header {
    font-weight: 600;
}

.claims-header {
    background-color: var(--jwt-claims-header-bg);
    color: var(--jwt-claims-header-color);
    font-weight: 600;
}

.claims-table th {
    white-space: nowrap;
    width: 140px;
}

.claims-table td:first-child {
    font-weight: 500;
}

.claim-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    word-break: break-word;
}

.badge-valid {
    background-color: #198754;
}

.badge-expired {
    background-color: #dc3545;
}

.badge-not-yet {
    background-color: #fd7e14;
}

.badge-neutral {
    background-color: #6c757d;
}

#results-section .card {
    border: none;
}

#theme-toggle {
    min-width: 7.5rem;
}

.seo-intro code {
    font-size: 0.85em;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .json-block {
        max-height: 240px;
    }
}
