h1:focus {
    outline: none;
}

#reconnect-modal .reconnect-action {
    color: #ffffff;
    border-color: #17191c;
    background-color: #17191c;
}

#reconnect-modal .reconnect-action .label-icon {
    color: #f0522d;
}

#reconnect-modal .reconnect-action:hover,
#reconnect-modal .reconnect-action:active {
    color: #ffffff;
    border-color: #2a2d31;
    background-color: #2a2d31;
}

#reconnect-modal .reconnect-action:hover .label-icon,
#reconnect-modal .reconnect-action:active .label-icon {
    color: #f9734b;
}

#reconnect-modal .reconnect-action:focus-visible {
    outline: 3px solid rgba(240, 82, 45, 0.35);
    outline-offset: 3px;
}

.drop-target {
    position: relative;
}

.drop-target.drop-active::after {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f1015;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
    content: "";
}

.drop-target-add.drop-active::after {
    content: "+";
    color: #0f1015;
    background: #22c55e;
}

.drop-target-remove.drop-active::after {
    content: "-";
    color: #0f1015;
    background: #ef4444;
}

.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+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbn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SA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

:root {
    --primary-color: #82C91E;
    --bg-dark: #0f0f0f;
    --surface-dark: #121212;
    --surface-light: #1f1f1f;
    --text-secondary: #9ca3af;
    --indicator-red: #e11d48;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-dark);
    color: #f3f4f6;
    min-height: 100vh;
    background-image: radial-gradient(circle at 90% 0%, #322b09 0%, #0f0f0f 30%);
    overflow-x: hidden;
}

.navbar-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50rem;
    padding: 0.25rem;
}

.nav-pills .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 50rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

    .nav-pills .nav-link:hover {
        color: #fff;
        background-color: rgba(255,255,255,0.05);
    }

    .nav-pills .nav-link.active {
        background-color: rgba(255,255,255,0.15);
        color: #fff;
    }

        .nav-pills .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 4px;
            left: 25%;
            right: 25%;
            height: 2px;
            background-color: #f5c12e;
            border-radius: 2px;
        }

@keyframes rainbow-glow {
    0% {
        box-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
        border-color: rgba(0, 150, 255, 0.5);
    }

    33% {
        box-shadow: 0 0 15px rgba(0, 255, 150, 0.5);
        border-color: rgba(0, 255, 150, 0.5);
    }

    66% {
        box-shadow: 0 0 15px rgba(150, 0, 255, 0.5);
        border-color: rgba(150, 0, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
        border-color: rgba(0, 150, 255, 0.5);
    }
}

.search-trigger-box {
    background-color: var(--surface-light);
    border-radius: 50rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .search-trigger-box:hover {
        animation: rainbow-glow 4s infinite linear;
    }

.search-modal-content {
    background-color: var(--surface-dark);
    border: 1.5px solid transparent;
    animation: rainbow-glow 6s infinite linear;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.app-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.app-item:hover .app-icon-wrapper {
    transform: scale(1.15);
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 240px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, background-color 0.3s;
}

    .glass-card:hover {
        transform: translateY(-8px);
        background-color: rgba(255, 255, 255, 0.1);
    }

.card-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.card-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.dynamic-json-table {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.7);

    max-height: calc(100vh - 280px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}


.dynamic-json-table .table-responsive {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.dynamic-json-table .table {
    margin-bottom: 0;
    background-color: transparent;
    border-collapse: separate;
    border-spacing: 0;
}

.dynamic-json-table .table thead th {
    border: none;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #f6f6f6;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    position: relative;
}

.dynamic-json-table .filter-row th {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.35rem 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dynamic-json-table .filter-input {
    background-color: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f3f4f6;
}

.dynamic-json-table .filter-input::placeholder {
    color: #9ca3af;
}

.dynamic-json-table .filter-input:focus {
    border-color: rgba(130, 201, 30, 0.6);
    box-shadow: 0 0 0 0.1rem rgba(130, 201, 30, 0.2);
}

.dynamic-json-table .filter-input option {
    background-color: #1f1f1f;
}

.dynamic-json-table .resize-handle {
    position: absolute;
    inset: 0 auto 0 auto;
    right: 0;
    width: 6px;
    cursor: col-resize;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
    touch-action: none;
    z-index: 10;
    pointer-events: auto;
}

.dynamic-json-table .sortable-column:hover .resize-handle,
.dynamic-json-table .resize-handle:active,
.dynamic-json-table .resize-handle:hover {
    opacity: 1;
}

.dynamic-json-table.resizing {
    cursor: col-resize;
    user-select: none;
}

.dynamic-json-table.resizing .resize-handle {
    opacity: 1;
}

.dynamic-json-table .table tbody td {
    border: none;
    font-size: 0.85rem;
    color: #e5e7eb;
}

.dynamic-json-table .table tbody tr {
    transition: background 0.2s ease;
}

.dynamic-json-table .table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.dynamic-json-table .sortable-column {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.dynamic-json-table .sortable-column.drag-target::after {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    right: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(130, 201, 30, 0.1), rgba(130, 201, 30, 0.9), rgba(130, 201, 30, 0.1));
    box-shadow: 0 0 8px rgba(130, 201, 30, 0.6);
}

.dynamic-json-table .sortable-column .sortable-content {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dynamic-json-table .sort-icon {
    font-size: 1rem;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.dynamic-json-table .sortable-column[aria-sort="ascending"] .sort-icon,
.dynamic-json-table .sortable-column[aria-sort="descending"] .sort-icon {
    opacity: 1;
}

.fs-7 {
    font-size: 0.75rem;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 40;
}

/* Favicon animation for visual feedback */
@keyframes favicon-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.8));
    }
}

/* Apply favicon pulse on page load */
link[rel="icon"] {
    animation: favicon-pulse 3s ease-in-out;
}

.dropdown-menu-dark {
    background-color: var(--surface-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
}

.select2-container--default {
    font-family: "Inter", sans-serif;
}

.select2-container--default .select2-selection--single {
    background-color: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f3f4f6;
    border-radius: 0.75rem;
    min-height: 2.65rem;
    padding: 0.25rem 0.75rem;
    display: flex;
    align-items: center;
    line-height: 1;
    position: relative;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    color: #b1b5c3;
}
    .select2-container--default .select2-results__option--selected {
        background-color: #b99797;
    }
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f3f4f6;
    padding-right: 0.5rem;
}

.select2-dropdown {
    background-color: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
}

.select2-results__option {
    padding: 0.35rem 0.75rem;
    color: #f3f4f6;
}

.select2-results__option--highlighted {
    background-color: rgba(130, 201, 30, 0.1);
    color: #fff;
}

.select2-results__option[aria-disabled="true"] {
    color: rgba(255, 255, 255, 0.45);
}

.select2-container--default .select2-selection--single .select2-selection__rendered::after,
.select2-container--default .select2-selection--single .select2-selection__rendered::before {
    color: #f3f4f6;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    color: #f3f4f6;
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 0.95rem;
}

.select2-container .select2-selection--single .select2-selection__clear {
    color: #f3f4f6;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: block;
    width: 0.75rem;
    height: 0.45rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered span {
    display: inline-flex;
    align-items: center;
}

.btn,
.btn-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.btn .material-symbols-outlined,
.btn .ri,
.btn .fa,
.btn .bi {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .mobile-header-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        margin: 0;
    }

    .mobile-nav-row {
        width: 100%;
        margin-top: 1rem;
        overflow-x: auto;
        white-space: nowrap;
    }

        .mobile-nav-row .navbar-glass {
            display: inline-flex;
            border-radius: 50rem;
            width: auto;
            min-width: 100%;
        }

        .mobile-nav-row .nav-pills {
            flex-wrap: nowrap !important;
        }

    .nav-container-wrapper {
        width: 100%;
    }
}
