:root {
    --accent-color: #1a73e8;
    --accent-hover: #1558b0;
    --border-color: #d9e2f1;
    --border-strong: #b7c7de;
    --card-bg: #ffffff;
    --bg-color: #f5f7fb;
    --surface-color: #eef3fb;
    --text-color: #1f2937;
    --muted-color: #6b7280;
}

html,
body {
    min-height: 100%;
}

body {
    background: linear-gradient(180deg, #f8fafc 0%, #eef3fb 100%);
    color: var(--text-color);
}

a {
    color: var(--accent-color);
}

a:hover {
    color: var(--accent-hover);
}

pre,
textarea {
    font-family: inherit;
}

.app-shell-body .page-body {
    min-height: calc(100vh - 8rem);
}

.app-sidebar {
    position: sticky;
    top: 4.5rem;
    min-height: calc(100vh - 4.5rem);
}

.app-sidebar .nav-link {
    color: var(--text-color);
    font-weight: 500;
    border-radius: 0.75rem;
}

.app-sidebar .nav-link.active,
.offcanvas .nav-link.active {
    background: rgba(26, 115, 232, 0.12);
    color: var(--accent-color);
}

#userName {
    max-width: 16rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-inline-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-inline-actions[hidden] {
    display: none !important;
}

.account-nav-trigger {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-nav-trigger svg {
    width: 1rem;
    height: 1rem;
}

.debug-toggle .form-check-input {
    cursor: pointer;
}

.auth-card {
    width: min(100%, 34rem);
}

.app-panel-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-color);
    margin-bottom: 0.75rem;
}

.app-pre {
    margin: 0;
    padding: 0.875rem 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.875rem;
    color: var(--text-color);
}

.app-inline-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    word-break: break-word;
}

.app-empty {
    padding: 1rem;
    border: 1px dashed var(--border-strong);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--muted-color);
    text-align: center;
}

.app-status {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.app-list .list-group-item {
    background: transparent;
    padding-inline: 0;
    border-color: var(--border-color);
}

.app-diagnostics-event pre {
    display: none;
}

.app-diagnostics-event[data-open="true"] pre {
    display: block;
}

.table td,
.table th {
    vertical-align: top;
}

@media (max-width: 991.98px) {
    .app-shell-body .page-body {
        min-height: auto;
    }

    .app-sidebar {
        position: static;
        min-height: auto;
    }
}
