﻿h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* 移动Logo图像上面的框 */
.layout-logo {
    border: none !important; /* 移除边框 */
    background-color: transparent !important; /* 移除背景，防止“填充框” */
    box-shadow: none !important; /* 如果有阴影，也移除 */
    border-radius: 0 !important; /* 移除圆角，让图片方形（可选，如果你要方形 Logo） */
    /* 如果想保持圆形但无框，只需注释掉 border-radius: 0 */
}

    .layout-logo img {
        border-radius: 0 !important; /* 图片也无圆角（可选） */
    }

/* Dark 模式也覆盖 */
[data-theme="dark"] .layout-logo {
    border: none !important;
    background-color: transparent !important;
}

.row-highlight-level9 {
    --bs-table-striped-bg: #f26700;
    --bs-table-bg: #f26700;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #75bd42;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level8 {
    --bs-table-striped-bg: #800080;
    --bs-table-bg: #800080;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #75bd42;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level7 {
    --bs-table-striped-bg: #3c5f21;
    --bs-table-bg: #3c5f21;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #75bd42;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level6 {
    --bs-table-striped-bg: #add88d;
    --bs-table-bg: #add88d;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #75bd42;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level5 {
    --bs-table-striped-bg: #ccc0da;
    --bs-table-bg: #ccc0da;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #75bd42;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level4 {
    --bs-table-striped-bg: #00b0f0;
    --bs-table-bg: #00b0f0;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #75bd42;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level3 {
    --bs-table-striped-bg: #ffff00;
    --bs-table-bg: #ffff00;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #add88d;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level2 {
    --bs-table-striped-bg: #ff0000;
    --bs-table-bg: #ff0000;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #c9e4b4;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level1 {
    --bs-table-striped-bg: #00b050;
    --bs-table-bg: #00b050;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level0 {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}

/* 暗色主题 (Dark Mode) 表格高亮颜色 */
[data-bs-theme="dark"] .row-highlight-level9 {
    --bs-table-striped-bg: #8c4004; /* 深橙色 */
    --bs-table-bg: #8c4004;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #a6e37a;
    --bs-table-color-state: #e0e0e0; /* 亮灰色文字，降低刺眼感 */
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level8 {
    --bs-table-striped-bg: #4d004d; /* 深紫色 */
    --bs-table-bg: #4d004d;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #a6e37a;
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level7 {
    --bs-table-striped-bg: #223812; /* 极深绿色 */
    --bs-table-bg: #223812;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #a6e37a;
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level6 {
    --bs-table-striped-bg: #384f2b; /* 哑光暗绿 */
    --bs-table-bg: #384f2b;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #a6e37a;
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level5 {
    --bs-table-striped-bg: #484152; /* 暗灰紫 */
    --bs-table-bg: #484152;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #a6e37a;
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level4 {
    --bs-table-striped-bg: #004761; /* 深海蓝 */
    --bs-table-bg: #004761;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #a6e37a;
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level3 {
    --bs-table-striped-bg: #666600; /* 暗橄榄黄 */
    --bs-table-bg: #666600;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #cbeba7; /* 提亮原有的绿色 */
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level2 {
    --bs-table-striped-bg: #660000; /* 深酒红 */
    --bs-table-bg: #660000;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #dff2d1;
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level1 {
    --bs-table-striped-bg: #004d23; /* 深森林绿 */
    --bs-table-bg: #004d23;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #effce8;
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level0 {
    --bs-table-hover-bg: #5c7080; /* Hover 颜色稍微调亮一点以适配暗色底 */
    --bs-table-hover-color: #ffffff;
}


.cell-Positive {
    --bs-table-striped-bg: #f1416c;
    --bs-table-bg: #f1416c;
}

.cell-Negative {
    --bs-table-striped-bg: #50cd89;
    --bs-table-bg: #50cd89;
}

.cell-Zero {
    --bs-table-striped-bg: #ccc0da;
    --bs-table-bg: #ccc0da;
}

.row-blue-level4 {
    --bs-table-striped-bg: #4874cb;
    --bs-table-bg: #4874cb;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-blue-level3 {
    --bs-table-striped-bg: #91aadf;
    --bs-table-bg: #91aadf;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-blue-level2 {
    --bs-table-striped-bg: #91aadf;
    --bs-table-bg: #91aadf;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-blue-level1 {
    --bs-table-striped-bg: #d9e1f4;
    --bs-table-bg: #d9e1f4;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-blue-level0 {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}

.row-orange-level4 {
    --bs-table-striped-bg: #ee822f;
    --bs-table-bg: #ee822f;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-orange-level3 {
    --bs-table-striped-bg: #f4b382;
    --bs-table-bg: #f4b382;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-orange-level2 {
    --bs-table-striped-bg: #f9cbaa;
    --bs-table-bg: #f9cbaa;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-orange-level1 {
    --bs-table-striped-bg: #fce4d3;
    --bs-table-bg: #fce4d3;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-orange-level0 {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}

.row-yellow-level4 {
    --bs-table-striped-bg: #f2ba02;
    --bs-table-bg: #f2ba02;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-yellow-level3 {
    --bs-table-striped-bg: #fedb61;
    --bs-table-bg: #fedb61;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-yellow-level2 {
    --bs-table-striped-bg: #fee796;
    --bs-table-bg: #fee796;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-yellow-level1 {
    --bs-table-striped-bg: #fff3ca;
    --bs-table-bg: #fff3ca;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-yellow-level0 {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}

.row-green-level4 {
    --bs-table-striped-bg: #75bd42;
    --bs-table-bg: #75bd42;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-green-level3 {
    --bs-table-striped-bg: #add88d;
    --bs-table-bg: #add88d;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-green-level2 {
    --bs-table-striped-bg: #c9e4b4;
    --bs-table-bg: #c9e4b4;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-green-level1 {
    --bs-table-striped-bg: #e3f2d9;
    --bs-table-bg: #e3f2d9;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-green-level0 {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}

.row-cyan-level4 {
    --bs-table-striped-bg: #30c0b4;
    --bs-table-bg: #30c0b4;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-cyan-level3 {
    --bs-table-striped-bg: #7cded7;
    --bs-table-bg: #7cded7;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-cyan-level2 {
    --bs-table-striped-bg: #a8eae4;
    --bs-table-bg: #a8eae4;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-cyan-level1 {
    --bs-table-striped-bg: #d2f4f2;
    --bs-table-bg: #d2f4f2;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-cyan-level0 {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}

.row-red-level4 {
    --bs-table-striped-bg: #e54c5e;
    --bs-table-bg: #e54c5e;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-red-level3 {
    --bs-table-striped-bg: #ef949f;
    --bs-table-bg: #ef949f;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-red-level2 {
    --bs-table-striped-bg: #f4b7be;
    --bs-table-bg: #f4b7be;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-red-level1 {
    --bs-table-striped-bg: #fadade;
    --bs-table-bg: #fadade;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-red-level0 {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}

@keyframes left {
    0% {
        transform: rotateZ(45deg);
    }

    50% {
        transform: rotateZ(0deg);
    }
}

@keyframes right {
    50% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(-45deg);
    }
}

.table-dark-one thead th {
    color: #00E5FF !important;
}

.table-dark-two thead th {
    color: #FFD54F !important;
}

.table-light-one thead th {
    color: #1565C0 !important;
}

.table-light-two thead th {
    color: #D84315 !important;
}

/* 暗色/黑色主题专用 */
[data-bs-theme="dark"] .cell-Positive {
    --bs-table-striped-bg: #8a1d3a; /* 深玫红 */
    --bs-table-bg: #8a1d3a;
    --bs-table-color-state: #ffffff;
}

[data-bs-theme="dark"] .cell-Negative {
    --bs-table-striped-bg: #1c5236; /* 深翠绿 */
    --bs-table-bg: #1c5236;
    --bs-table-color-state: #ffffff;
}

[data-bs-theme="dark"] .cell-Zero {
    --bs-table-striped-bg: #403a4a; /* 深灰紫 */
    --bs-table-bg: #403a4a;
    --bs-table-color-state: #ffffff;
}

/* Blue 系列 - 蓝调 */
[data-bs-theme="dark"] .row-blue-level4 {
    --bs-table-striped-bg: #1a3a7a;
    --bs-table-bg: #1a3a7a;
    --bs-table-color-state: #e0e0e0;
}

[data-bs-theme="dark"] .row-blue-level3 {
    --bs-table-striped-bg: #152d5e;
    --bs-table-bg: #152d5e;
    --bs-table-color-state: #d0d0d0;
}

[data-bs-theme="dark"] .row-blue-level2 {
    --bs-table-striped-bg: #102245;
    --bs-table-bg: #102245;
    --bs-table-color-state: #c0c0c0;
}

[data-bs-theme="dark"] .row-blue-level1 {
    --bs-table-striped-bg: #0b162e;
    --bs-table-bg: #0b162e;
    --bs-table-color-state: #b0b0b0;
}

/* Orange 系列 - 橙调 */
[data-bs-theme="dark"] .row-orange-level4 {
    --bs-table-striped-bg: #7a3e14;
    --bs-table-bg: #7a3e14;
    --bs-table-color-state: #e0e0e0;
}

[data-bs-theme="dark"] .row-orange-level3 {
    --bs-table-striped-bg: #5e3010;
    --bs-table-bg: #5e3010;
    --bs-table-color-state: #d0d0d0;
}

[data-bs-theme="dark"] .row-orange-level2 {
    --bs-table-striped-bg: #45230c;
    --bs-table-bg: #45230c;
    --bs-table-color-state: #c0c0c0;
}

[data-bs-theme="dark"] .row-orange-level1 {
    --bs-table-striped-bg: #2e1708;
    --bs-table-bg: #2e1708;
    --bs-table-color-state: #b0b0b0;
}

/* Yellow 系列 - 黄/金调 */
[data-bs-theme="dark"] .row-yellow-level4 {
    --bs-table-striped-bg: #614a01;
    --bs-table-bg: #614a01;
    --bs-table-color-state: #e0e0e0;
}

[data-bs-theme="dark"] .row-yellow-level3 {
    --bs-table-striped-bg: #4a3801;
    --bs-table-bg: #4a3801;
    --bs-table-color-state: #d0d0d0;
}

[data-bs-theme="dark"] .row-yellow-level2 {
    --bs-table-striped-bg: #362901;
    --bs-table-bg: #362901;
    --bs-table-color-state: #c0c0c0;
}

[data-bs-theme="dark"] .row-yellow-level1 {
    --bs-table-striped-bg: #211a00;
    --bs-table-bg: #211a00;
    --bs-table-color-state: #b0b0b0;
}

/* Green 系列 - 绿调 */
[data-bs-theme="dark"] .row-green-level4 {
    --bs-table-striped-bg: #2d4a1a;
    --bs-table-bg: #2d4a1a;
    --bs-table-color-state: #e0e0e0;
}

[data-bs-theme="dark"] .row-green-level3 {
    --bs-table-striped-bg: #223813;
    --bs-table-bg: #223813;
    --bs-table-color-state: #d0d0d0;
}

[data-bs-theme="dark"] .row-green-level2 {
    --bs-table-striped-bg: #18260d;
    --bs-table-bg: #18260d;
    --bs-table-color-state: #c0c0c0;
}

[data-bs-theme="dark"] .row-green-level1 {
    --bs-table-striped-bg: #0d1407;
    --bs-table-bg: #0d1407;
    --bs-table-color-state: #b0b0b0;
}

/* Cyan 系列 - 青调 */
[data-bs-theme="dark"] .row-cyan-level4 {
    --bs-table-striped-bg: #12544f;
    --bs-table-bg: #12544f;
    --bs-table-color-state: #e0e0e0;
}

[data-bs-theme="dark"] .row-cyan-level3 {
    --bs-table-striped-bg: #0e423e;
    --bs-table-bg: #0e423e;
    --bs-table-color-state: #d0d0d0;
}

[data-bs-theme="dark"] .row-cyan-level2 {
    --bs-table-striped-bg: #0a302d;
    --bs-table-bg: #0a302d;
    --bs-table-color-state: #c0c0c0;
}

[data-bs-theme="dark"] .row-cyan-level1 {
    --bs-table-striped-bg: #061f1d;
    --bs-table-bg: #061f1d;
    --bs-table-color-state: #b0b0b0;
}

/* Red 系列 - 红调 */
[data-bs-theme="dark"] .row-red-level4 {
    --bs-table-striped-bg: #6e212a;
    --bs-table-bg: #6e212a;
    --bs-table-color-state: #e0e0e0;
}

[data-bs-theme="dark"] .row-red-level3 {
    --bs-table-striped-bg: #541920;
    --bs-table-bg: #541920;
    --bs-table-color-state: #d0d0d0;
}

[data-bs-theme="dark"] .row-red-level2 {
    --bs-table-striped-bg: #3d1217;
    --bs-table-bg: #3d1217;
    --bs-table-color-state: #c0c0c0;
}

[data-bs-theme="dark"] .row-red-level1 {
    --bs-table-striped-bg: #260b0e;
    --bs-table-bg: #260b0e;
    --bs-table-color-state: #b0b0b0;
}

/* 公共状态 */
[data-bs-theme="dark"] [class*="row-"][class*="-level"] {
    --bs-table-hover-bg: #444b55; /* 统一的悬停深灰色 */
    --bs-table-hover-color: #ffffff;
    --bs-table-striped-color: #ffffff;
}

.row-workflow-level100 {
    --bs-table-striped-bg: #00b050;
    --bs-table-bg: #00b050;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level9 {
    --bs-table-striped-bg: #00b050;
    --bs-table-bg: #00b050;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level8 {
    --bs-table-striped-bg: #30bbff;
    --bs-table-bg: #30bbff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level7 {
    --bs-table-striped-bg: #48c3ff;
    --bs-table-bg: #48c3ff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level6 {
    --bs-table-striped-bg: #60cbff;
    --bs-table-bg: #60cbff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level10 {
    --bs-table-striped-bg: #6ccfff;
    --bs-table-bg: #6ccfff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level5 {
    --bs-table-striped-bg: #78d3ff;
    --bs-table-bg: #78d3ff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level4 {
    --bs-table-striped-bg: #90dbff;
    --bs-table-bg: #90dbff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level3 {
    --bs-table-striped-bg: #a8e3ff;
    --bs-table-bg: #a8e3ff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level2 {
    --bs-table-striped-bg: #c0ebff;
    --bs-table-bg: #c0ebff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level1 {
    --bs-table-striped-bg: #d8f3ff;
    --bs-table-bg: #d8f3ff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level0 {
    --bs-table-striped-bg: #f0fbff;
    --bs-table-bg: #f0fbff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}
/* 暗色主题 - 工作流 (Workflow) 颜色组 */

/* Level 100 & 9: 通常代表完成状态 (绿色) */
[data-bs-theme="dark"] .row-workflow-level100,
[data-bs-theme="dark"] .row-workflow-level9 {
    --bs-table-striped-bg: #00632d; /* 深森林绿 */
    --bs-table-bg: #00632d;
    --bs-table-striped-color: #a6e37a;
    --bs-table-color-state: #ffffff;
}

/* Level 8: 顶层阶段 (最深的蓝色) */
[data-bs-theme="dark"] .row-workflow-level8 {
    --bs-table-striped-bg: #004c73;
    --bs-table-bg: #004c73;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #ffffff;
}

/* Level 7 */
[data-bs-theme="dark"] .row-workflow-level7 {
    --bs-table-striped-bg: #004266;
    --bs-table-bg: #004266;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #e0e0e0;
}

/* Level 6 */
[data-bs-theme="dark"] .row-workflow-level6 {
    --bs-table-striped-bg: #003859;
    --bs-table-bg: #003859;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #e0e0e0;
}

/* Level 10: 在 Level 6 和 Level 5 之间的过渡色 */
[data-bs-theme="dark"] .row-workflow-level10 {
    --bs-table-striped-bg: #003353;
    --bs-table-bg: #003353;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #e0e0e0;
}

/* Level 5 */
[data-bs-theme="dark"] .row-workflow-level5 {
    --bs-table-striped-bg: #002e4d;
    --bs-table-bg: #002e4d;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #e0e0e0;
}

/* Level 4 */
[data-bs-theme="dark"] .row-workflow-level4 {
    --bs-table-striped-bg: #002440;
    --bs-table-bg: #002440;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #d0d0d0;
}

/* Level 3 */
[data-bs-theme="dark"] .row-workflow-level3 {
    --bs-table-striped-bg: #001a33;
    --bs-table-bg: #001a33;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #d0d0d0;
}

/* Level 2 */
[data-bs-theme="dark"] .row-workflow-level2 {
    --bs-table-striped-bg: #001026;
    --bs-table-bg: #001026;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #c0c0c0;
}

/* Level 1 */
[data-bs-theme="dark"] .row-workflow-level1 {
    --bs-table-striped-bg: #000a1a;
    --bs-table-bg: #000a1a;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #b0b0b0;
}

/* Level 0: 初始/待处理状态 (接近背景的极深色) */
[data-bs-theme="dark"] .row-workflow-level0 {
    --bs-table-striped-bg: #080c12;
    --bs-table-bg: #080c12;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #a0a0a0;
}

/* ── 通知中心铃铛脉冲动画（类似微信消息提醒）── */
@keyframes bell-pulse {
    0%, 100% { transform: rotate(0deg) scale(1); color: inherit; }
    10%  { transform: rotate(15deg) scale(1.3); color: #f59e0b; }
    20%  { transform: rotate(-12deg) scale(1.15); color: #d97706; }
    30%  { transform: rotate(10deg) scale(1.25); color: #f59e0b; }
    40%  { transform: rotate(-8deg) scale(1.1); color: #d97706; }
    50%  { transform: rotate(0deg) scale(1); color: inherit; }
}

.bell-pulse {
    animation: bell-pulse 0.8s ease-in-out infinite;
    display: inline-block;
    transform-origin: top center;
}

/* ── 通知抽屉表格内联圆点 ── */
.table-noti-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2563eb;
    flex-shrink: 0;
}

/* 统一的悬停和条纹文本设置 */
[data-bs-theme="dark"] [class*="row-workflow-level"] {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}

/* ============================================================
   AI Chat 页面 - 全链路高度传递
   确保 .ai-chat-container 能正确撑满 BootstrapBlazor Tab 内容区
   ============================================================ */

/* Tab 面板内容区（BootstrapBlazor TabPanel 的实际渲染容器） */
.bb-tab-panel,
.tab-content > .tab-pane.active,
.bb-tabs-body,
.bb-layout-main .bb-tab-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Blazor 渲染根节点链路 */
.bb-layout-main article,
.bb-layout-main .bb-main,
.bb-layout-main > article {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* 当 AI Chat 是 Tab 激活页时，让其直接子元素（Blazor 组件 host）撑满 */
.bb-tab-panel > *,
.tab-pane.active > * {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* AI Chat 组件外层包装，确保 flex 传递 */
.page-content,
[class*="page-content"],
[route] {
    height: 100%;
    display: flex;
    flex-direction: column;
}
/* ── CSS 变量：Light 主题 ── */
:root {
    /* 品牌色 */
    --ai-brand-start: #4f46e5; /* indigo-600 */
    --ai-brand-end: #7c3aed; /* violet-700 */
    --ai-brand: #6366f1; /* indigo-500（主要强调色） */
    /* 背景层次 */
    --ai-bg-page: #f1f5f9; /* 页面层（最底） */
    --ai-bg-container: #f1f5fb; /* 容器层 */
    --ai-bg-surface: #f8fafc; /* 卡片/消息层 */
    --ai-bg-input: #ffffff; /* 输入框层 */
    /* 文字 */
    --ai-text-1: #0f172a; /* 主要文字 */
    --ai-text-2: #475569; /* 次要文字 */
    --ai-text-3: #94a3b8; /* 弱文字/占位符 */
    --ai-text-inverse: #0f172a;
    /* 边框与阴影 */
    --ai-border: #0f172a;
    --ai-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --ai-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --ai-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --ai-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    /* 消息气泡 */
    --ai-ai-bg: #eef2f7; /* Light 主题：稍深一点的背景 */
    --ai-ai-border: #d1d9e6;
    --ai-ai-text: #1e293b;
    --ai-ai-accent: #6366f1; /* AI 消息左边线 */
    --ai-user-bg: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --ai-user-text: #ffffff;
    /* 代码 */
    --ai-code-bg: #f1f5f9;
    --ai-code-border: #e2e8f0;
    /* 表格 */
    --ai-table-border: #e2e8f0;
    --ai-table-header: #f8fafc;
    /* 警告 */
    --ai-warn-bg: #fffbeb;
    --ai-warn-border: #fde68a;
    --ai-warn-text: #92400e;
    /* 危险 */
    --ai-danger-bg: #fef2f2;
    --ai-danger-text: #991b1b;
    /* 滚动条 */
    --ai-scrollbar: #cbd5e1;
    /* 动画缓动 */
    --ai-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ai-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── CSS 变量：Dark 主题 ── */
[data-bs-theme="dark"] {
    --ai-brand-start: #6366f1;
    --ai-brand-end: #8b5cf6;
    --ai-brand: #818cf8;
    --ai-bg-page: #1a1e22;
    --ai-bg-container: #202528;
    --ai-bg-surface: #2a2f34;
    --ai-bg-input: #1a1e22;
    --ai-text-1: #e2e8f0;
    --ai-text-2: #94a3b8;
    --ai-text-3: #64748b;
    --ai-text-inverse: #ffffff;
    --ai-border: rgba(255, 255, 255, 0.08);
    --ai-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
    --ai-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
    --ai-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.45);
    --ai-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.55);
    --ai-ai-bg: #1a1e22;
    --ai-ai-border: #2a2f34;
    --ai-ai-text: #e2e8f0;
    --ai-ai-accent: #60a5fa;
    --ai-user-bg: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    --ai-user-text: #f1f5f9;
    --ai-code-bg: #1a1e22;
    --ai-code-border: #2a2f34;
    --ai-table-border: #2a2f34;
    --ai-table-header: #2a2f34;
    --ai-warn-bg: #2a2010;
    --ai-warn-border: #78350f;
    --ai-warn-text: #fde68a;
    --ai-danger-bg: #2a1515;
    --ai-danger-text: #fca5a5;
    --ai-scrollbar: #475569;
}

/* ── SweetAlert2 Dark 主题适配（后备方案） ── */
:root[data-bs-theme="dark"] .swal2-container .swal2-popup {
    background: #1e2125 !important;
    color: #e2e8f0 !important;
}
:root[data-bs-theme="dark"] .swal2-container .swal2-title {
    color: #f1f5f9 !important;
}
:root[data-bs-theme="dark"] .swal2-container .swal2-html-container {
    color: #e2e8f0 !important;
}
:root[data-bs-theme="dark"] .swal2-container .swal2-icon.swal2-info {
    border-color: #60a5fa !important;
    color: #60a5fa !important;
}
:root[data-bs-theme="dark"] .swal2-container .swal2-close {
    color: #94a3b8 !important;
}
:root[data-bs-theme="dark"] .swal2-container .swal2-close:hover {
    color: #f1f5f9 !important;
}
:root[data-bs-theme="dark"] .swal2-container .swal2-footer {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* ── BootstrapBlazor Dialog 垂直居中 ── */
.modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
    margin-top: 0;
    margin-bottom: 0;
}

/* ============================================================
   AI Chat — Markdig 渲染样式（必须在全局 CSS 中，不能隔离）
   原因：Markdig 通过 MarkupString 动态生成 HTML，不带 Blazor scope 属性
   ============================================================ */

/* 标题（h1-h3） */
.ai-msg-bubble h1 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 16px 0 8px;
    line-height: 1.3;
    color: var(--ai-text-1);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ai-border);
}

.ai-msg-bubble h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 14px 0 6px;
    line-height: 1.3;
    color: var(--ai-text-1);
}

.ai-msg-bubble h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 12px 0 4px;
    line-height: 1.3;
    color: var(--ai-text-1);
}

/* 列表 */
.ai-msg-bubble ul,
.ai-msg-bubble ol {
    margin: 6px 0;
    padding-left: 20px;
}

.ai-msg-bubble li {
    margin: 2px 0;
    line-height: 1.5;
}

.ai-msg-bubble a {
    color: var(--ai-brand);
    text-decoration: underline;
    text-decoration-color: rgba(99, 102, 241, 0.4);
}

.ai-msg-bubble a:hover {
    text-decoration-color: var(--ai-brand);
}

/* 代码块 */
.ai-msg-bubble pre {
    background: var(--ai-code-bg);
    border: 1px solid var(--ai-code-border);
    border-radius: 10px;
    padding: 14px 16px;
    overflow-x: auto;
    margin: 10px 0;
    font-size: 0.83rem;
    line-height: 1.6;
    font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
    scrollbar-width: thin;
}

.ai-msg-bubble pre::-webkit-scrollbar {
    height: 4px;
}

.ai-msg-bubble pre::-webkit-scrollbar-thumb {
    background: var(--ai-scrollbar);
    border-radius: 4px;
}

.ai-msg-bubble code {
    background: var(--ai-code-bg);
    border: 1px solid var(--ai-code-border);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
    color: var(--ai-brand);
}

[data-bs-theme="dark"] .ai-msg-bubble code {
    color: var(--ai-brand);
}

.ai-msg-bubble pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--ai-text-1);
    font-size: inherit;
}

/* 表格 */
.ai-msg-bubble table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
    font-size: 0.85rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ai-table-border);
}

.ai-msg-bubble th,
.ai-msg-bubble td {
    border: 1px solid var(--ai-table-border);
    padding: 8px 12px;
    text-align: left;
}

.ai-msg-bubble th {
    background: var(--ai-table-header);
    font-weight: 600;
    color: var(--ai-text-1);
}

.ai-msg-bubble td {
    color: var(--ai-text-2);
}

/* 水平线（---） */
.ai-msg-bubble hr {
    border: none;
    border-top: 2px solid var(--ai-border);
    margin: 16px 0;
}

/* 引用块（> text） */
.ai-msg-bubble blockquote {
    margin: 10px 0;
    padding: 8px 16px;
    border-left: 4px solid var(--ai-brand);
    background: rgba(99, 102, 241, 0.04);
    border-radius: 0 8px 8px 0;
    color: var(--ai-text-2);
}

.ai-msg-bubble blockquote p {
    margin: 4px 0;
}

/* 删除线（~~text~~） */
.ai-msg-bubble del {
    text-decoration: line-through;
    color: var(--ai-text-3);
}

/* 任务列表（- [ ] / - [x]） */
.ai-msg-bubble input[type="checkbox"] {
    margin-right: 6px;
    accent-color: var(--ai-brand);
    pointer-events: none;
}

/* 表格偶数行条纹 */
.ai-msg-bubble tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="dark"] .ai-msg-bubble tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

[data-bs-theme="dark"] .ai-msg-bubble blockquote {
    background: rgba(99, 102, 241, 0.06);
}

[data-bs-theme="dark"] .ai-msg-bubble pre code {
    color: var(--ai-text-1);
}

/* ── 铃铛下拉通知列表（全局样式，因 BootstrapBlazor DropdownWidget 渲染在组件作用域外）── */
.noti-dropdown-body {
    overflow-x: auto;
}

.noti-dropdown-item {
    padding: 4px 8px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    min-width: max-content;
}

.noti-dropdown-item:last-child {
    border-bottom: none;
}

.noti-dropdown-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── 服务器断线重连（全局样式，因 Blazor Reconnector 渲染在组件作用域外）── */
.connection-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
}

.connection-card {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 2.5rem 2rem 2rem;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
    z-index: 10000;
    width: 380px;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
}

.connection-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: conn-spin 0.8s linear infinite;
    margin: 0 auto 1.25rem;
}

@keyframes conn-spin {
    to { transform: rotate(360deg); }
}

.connection-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.connection-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.connection-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.connection-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.connection-btn {
    display: inline-block;
    padding: 0.5rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

.connection-btn-primary {
    background: #2563eb;
    color: #fff;
}
.connection-btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.connection-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.connection-btn-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

[data-bs-theme='dark'] .connection-mask {
    background: rgba(0, 0, 0, 0.75);
}
[data-bs-theme='dark'] .connection-card {
    background: #1e293b;
}
[data-bs-theme='dark'] .connection-title {
    color: #f1f5f9;
}
[data-bs-theme='dark'] .connection-desc {
    color: #64748b;
}
[data-bs-theme='dark'] .connection-spinner {
    border-color: #334155;
    border-top-color: #60a5fa;
}
[data-bs-theme='dark'] .connection-btn-secondary {
    background: #334155;
    border-color: #475569;
    color: #cbd5e1;
}
[data-bs-theme='dark'] .connection-btn-secondary:hover {
    background: #475569;
    color: #e2e8f0;
}
}