:root {
    --mbnd-natural-light: rgb(250, 250, 250);
    --mbnd-square-dark-backgroud-rgb: 14, 40, 65;
    --mbnd-square-dark-backgroud: rgb(var(--mbnd-square-dark-backgroud-rgb));
    --mbnd-quantum-blue-rgb: 6, 0, 255;
    --mbnd-quantum-blue: rgb(var(--mbnd-quantum-blue-rgb));
    --mbnd-quantum-violet-rgb: 144, 0, 255;
    --mbnd-quantum-violet: rgb(var(--mbnd-quantum-violet-rgb));
    --mbnd-quantum-cyan-rgb: 95, 255, 251;
    --mbnd-quantum-cyan: rgb(var(--mbnd-quantum-cyan-rgb));
    --mbnd-square-pink-rgb: 235, 43, 147;
    --mbnd-square-pink: rgb(var(--mbnd-square-pink-rgb));
    --mbnd-graphite-signal: rgb(0, 0, 0);
    --mbnd-tracker-orange-rgb: 255, 217, 103;
    --mbnd-tracker-orange: rgb(var(--mbnd-tracker-orange-rgb));
    --mb-border-radius: 0;
    --mb-input-bg: var(--mbnd-natural-light);
    --mb-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --mbnd--nohover-opacity: 0.6;
    --bs-info-bg-subtle: color-mix(in srgb, var(--mbnd-quantum-cyan) 60%, white 40%);
    --bs-info-border-subtle: color-mix(in srgb, var(--mbnd-quantum-cyan) 90%, black 10%);
    --bs-body-font-size: 12px;
    --border: var(--mbnd-square-dark-backgroud);

    /* from Figma */
    --Color-Buttons-btn-primary-bg-default: #0005F5;
    --Color-Surfaces-surface-highlight: #F1D06B;
    --Color-Messaging-priority-3: #7CF468;
    --Color-Surfaces-surface-L0: #F3F5F7;
    --Color-Surfaces-surface-L2: #B2B2B2;
    
    /* Additional design tokens for actions bar */
    --Color-Forms-input-bg: white;
    --Color-Forms-input-border: #E9ECEE;
    --Color-Buttons-btn-primary-disabled-bg: #F3F5F7;
    --Color-Buttons-btn-primary-disabled-label: #B2B2B2;
    --Color-Buttons-btn-primary-label: #FAFAFA;
    --Color-Buttons-btn-tertiary-bg-default: #F3F5F7;
    /* Table row highlight color for selected rows */
    --table-row-selected-highlight: rgba(241, 208, 107, 0.24);
}

:root,
[data-bs-theme=light] {
    --bs-border-radius: 0;
    --bs-border-radius-sm: 0;
    --bs-border-radius-lg: 0;
    --bs-border-radius-xl: 0;
    --bs-border-radius-xxl: 0;
    --bs-success-rgb: var(--mbnd-quantum-cyan-rgb);
    --bs-success: var(--mbnd-quantum-cyan);
    --bs-success-bg-subtle: var(--mbnd-quantum-cyan);
    --bs-danger-rgb: var(--mbnd-square-pink-rgb);
    --bs-danger: var(--mbnd-square-pink);
    --bs-danger-bg-subtle: var(--mbnd-square-pink);
    --bs-alert-color: var(--mbnd-natural-light);
    --bs-warning-bg: var(--mbnd-tracker-orange);
    --bs-warning-bg-subtle: color-mix(in srgb, var(--mbnd-tracker-orange) 60%, white 40%);
}

.badge, #mpg .badge {
    --bs-badge-border-radius: 1rem !important;
    border-radius: 1rem !important;
}

#mpg .badge.bg-success {
    background-color: var(--Color-Messaging-priority-3) !important;
}

#mpg .badge.bg-secondary {
    background-color: var(--Color-Surfaces-surface-L2) !important;
}

/* Custom dropdown toggle icon */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.125em;
    content: "";
    border: none;
    width: 12px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' width='100%25' height='100%25' overflow='visible' style='display: block;' viewBox='0 0 12.8284 7.82843' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath id='icon (Stroke)' fill-rule='evenodd' clip-rule='evenodd' d='M6.41421 0L12.8284 6.41421L11.4142 7.82843L6.41421 2.82843L1.41421 7.82843L0 6.41421L6.41421 0Z' fill='var(--fill-0, %23B2B2B2)'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transform: rotate(180deg);
}

/* Ensure the custom icon works in different dropdown states */
.dropdown-toggle:empty::after {
    margin-left: 0;
}

/* For dark themes or specific color overrides */
.nav-link.dropdown-toggle::after {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' width='100%25' height='100%25' overflow='visible' style='display: block;' viewBox='0 0 12.8284 7.82843' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath id='icon (Stroke)' fill-rule='evenodd' clip-rule='evenodd' d='M6.41421 0L12.8284 6.41421L11.4142 7.82843L6.41421 2.82843L1.41421 7.82843L0 6.41421L6.41421 0Z' fill='currentColor'/%3E%3C/svg%3E%0A");
}

/* Add right spacing to dropdown nav items */
.nav-item.dropdown {
    margin-right: 1rem;
}

/* Prevent dropdown menus from expanding off-screen */
.dropdown-menu {
    max-width: 300px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure dropdowns near the right edge of the screen open to the left */
.navbar-nav .nav-item:last-child .dropdown-menu,
.navbar-nav .nav-item:nth-last-child(-n+2) .dropdown-menu {
    right: 0;
    left: auto;
}

/* Ensure dropdown content doesn't overflow viewport */
.dropdown-menu {
    max-height: 70vh;
    overflow-y: auto;
}

/* For mobile devices, ensure dropdown doesn't go off-screen */
@media (max-width: 767.98px) {
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
}

/* Ensure all badge variants use the custom border-radius */
.badge.text-bg-primary,
.badge.text-bg-secondary,
.badge.text-bg-success,
.badge.text-bg-danger,
.badge.text-bg-warning,
.badge.text-bg-info,
.badge.text-bg-light,
.badge.text-bg-dark,
.badge.bg-primary,
.badge.bg-secondary,
.badge.bg-success,
.badge.bg-danger,
.badge.bg-warning,
.badge.bg-info,
.badge.bg-light,
.badge.bg-dark,
span.badge,
.badge-pill,
.rounded-pill.badge {
    border-radius: 0.375rem !important;
}

.badge.bg-info {
    background-color: var(--Color-Surfaces-surface-highlight)!important;
}

.table-danger {
    --bs-table-bg:         color-mix(in srgb, var(--Color-Surfaces-surface-highlight) 60%, white 40%);
    --bs-table-striped-bg: color-mix(in srgb, var(--Color-Surfaces-surface-highlight) 40%, white 60%);
}

.table-success {
    --bs-table-bg: color-mix(in srgb, rgb(var(--mbnd-quantum-cyan-rgb)) 99%, black 1%);
    --bs-table-striped-bg: color-mix(in srgb, rgb(var(--mbnd-quantum-cyan-rgb)) 90%, black 10%);
}

.badge {
    --bs-badge-color: var(--mbnd-graphite-signal);
}

.py-4 {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
}

.tophcontainer {
    padding-top: 0rem;
}


.top-bar-gradient {
    min-height: 50px;
    width: 100%;
    background: linear-gradient(90deg, black 0%, black 50%, #0600FF 75%, #9000FF 85%, rgba(85, 255, 255, 0.98) 95%);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.borealis-gradient {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    background: black;
    overflow: hidden;
}

.borealis-gradient::before,
.borealis-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: -100%;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 15%,
        #9000FF 30%,
        #0600FF 40%,
        #9000FF 50%,
        rgba(85, 255, 255, 0.98) 60%,
        #9000FF 70%,
        transparent 85%,
        transparent 100%
    );
    animation: aurora-flow 12s ease-in-out infinite;
}

.borealis-gradient::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        #9000FF 15%,
        rgba(85, 255, 255, 0.4) 25%,
        #9000FF 35%,
        #0600FF 45%,
        #9000FF 55%,
        transparent 70%,
        transparent 100%
    );
    animation: aurora-flow-reverse 16s ease-in-out infinite;
    animation-delay: -4s;
}

/* Additional aurora layers for more realistic effect */
.aurora-layer-1,
.aurora-layer-2,
.aurora-layer-3 {
    position: absolute;
    top: 0;
    left: -50%;
    right: -50%;
    bottom: 0;
    pointer-events: none;
}

.aurora-layer-1 {
    background: linear-gradient(
        90deg,
        transparent 0%,
        #9000FF 15%,
        rgba(144, 0, 255, 0.8) 25%,
        rgba(6, 0, 255, 0.4) 35%,
        rgba(144, 0, 255, 0.9) 45%,
        rgba(85, 255, 255, 0.5) 55%,
        #9000FF 65%,
        transparent 80%,
        transparent 100%
    );
    animation: aurora-drift-1 20s linear infinite;
}

.aurora-layer-2 {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(144, 0, 255, 0.6) 20%,
        rgba(85, 255, 255, 0.2) 30%,
        rgba(144, 0, 255, 0.8) 40%,
        rgba(6, 0, 255, 0.4) 50%,
        rgba(144, 0, 255, 0.7) 60%,
        transparent 75%,
        transparent 100%
    );
    animation: aurora-drift-2 25s linear infinite reverse;
    animation-delay: -5s;
}

.aurora-layer-3 {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(144, 0, 255, 0.5) 15%,
        rgba(144, 0, 255, 0.9) 25%,
        rgba(6, 0, 255, 0.3) 35%,
        rgba(85, 255, 255, 0.3) 45%,
        rgba(144, 0, 255, 0.8) 55%,
        #9000FF 65%,
        transparent 80%,
        transparent 100%
    );
    animation: aurora-drift-3 30s linear infinite;
    animation-delay: -10s;
}

@keyframes aurora-flow {
    0% {
        transform: translateX(-50%) scaleY(0.8);
        opacity: 0.6;
    }
    25% {
        transform: translateX(-25%) scaleY(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateX(0%) scaleY(0.9);
        opacity: 0.7;
    }
    75% {
        transform: translateX(25%) scaleY(1.1);
        opacity: 0.9;
    }
    100% {
        transform: translateX(50%) scaleY(0.8);
        opacity: 0.6;
    }
}

@keyframes aurora-flow-reverse {
    0% {
        transform: translateX(50%) scaleY(1.1);
        opacity: 0.4;
    }
    25% {
        transform: translateX(25%) scaleY(0.7);
        opacity: 0.6;
    }
    50% {
        transform: translateX(0%) scaleY(1.3);
        opacity: 0.5;
    }
    75% {
        transform: translateX(-25%) scaleY(0.9);
        opacity: 0.7;
    }
    100% {
        transform: translateX(-50%) scaleY(1.1);
        opacity: 0.4;
    }
}

@keyframes aurora-drift-1 {
    0% {
        transform: translateX(-100%) scaleY(0.5);
        opacity: 0.4;
    }
    50% {
        transform: translateX(0%) scaleY(1.4);
        opacity: 0.7;
    }
    100% {
        transform: translateX(100%) scaleY(0.5);
        opacity: 0.4;
    }
}

@keyframes aurora-drift-2 {
    0% {
        transform: translateX(-100%) scaleY(1.5);
        opacity: 0.3;
    }
    50% {
        transform: translateX(0%) scaleY(0.5);
        opacity: 0.6;
    }
    100% {
        transform: translateX(100%) scaleY(1.5);
        opacity: 0.3;
    }
}

@keyframes aurora-drift-3 {
    0% {
        transform: translateX(-100%) scaleY(0.7);
        opacity: 0.5;
    }
    50% {
        transform: translateX(0%) scaleY(1.8);
        opacity: 0.8;
    }
    100% {
        transform: translateX(100%) scaleY(0.7);
        opacity: 0.5;
    }
}

.mb-bar {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
}

.navbar-logo {
    margin-right: 15px;
    margin-left: 48px;
}

.mb-logo {
    height: 15px;
    width: auto;
    max-width: 150px;
}

.frame {
    width: 1072px;
    height: 604px;
    left: 13px;
    top: 13px;
    position: absolute;
    overflow: hidden;
    background-color: var(--mbnd-natural-light);
}

.fuss {
    width: 1072px;
    left: 0;
    top: 243px;
    position: absolute;
}

.top-bar {
    width: 100%;
    height: 97px;
    border-radius: 12px;
}

@font-face {
    font-family: Aeonik Air;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/6811815844ee665ea964fb8d_aeonik-air.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/68118158ad0a748a40c688b8_aeonik-air.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Aeonik;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/68118158343df1c6a48cf7c2_aeonik-airitalic.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/681181589fb18c8c9c20425f_aeonik-regularitalic.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/681181582d3396c1ad04e25d_aeonik-airitalic.woff) format("woff"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/681181588e32a3f1e03a61e8_aeonik-regularitalic.woff) format("woff");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: Aeonik;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/681181582859dec2c5715e2d_aeonik-black.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/68118158cb262dfd6f766796_aeonik-black.woff) format("woff");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Aeonik;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/681181588e32a3f1e03a61c8_aeonik-blackitalic.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/681181588924bb1a020e4e01_aeonik-blackitalic.woff) format("woff");
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: Aeonik;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/68118158f7e09883bc2be4d2_aeonik-bold.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/6811815801b1abd1c36c5997_aeonik-bold.woff) format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Aeonik;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/6811815897854d6813d3ab30_aeonik-medium.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/68118158a2d7fac16fddf899_aeonik-medium.woff) format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Aeonik;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/68118158808822593c566949_aeonik-bolditalic.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/6811815864bc79b0072917dd_aeonik-bolditalic.woff) format("woff");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: Aeonik;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/6811815890e50df3177722c0_aeonik-lightitalic.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/6811815801b1abd1c36c59b2_aeonik-lightitalic.woff) format("woff");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: Aeonik;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/6811815861967b86a1490b9e_aeonik-light.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/68118158d323346f55beb91a_aeonik-light.woff) format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Aeonik;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/68118158311af9683d06809f_aeonik-regular.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/6811815801b1abd1c36c59b8_aeonik-regular.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Aeonik;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/6811815870af34bfb36b2585_aeonik-semibold.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/68118158204077b91dda3f01_aeonik-semibold.woff) format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Aeonik;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/681181588f2cd0b51b3bcdb0_aeonik-mediumitalic.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/681181586c0bd4b62c5c97bf_aeonik-mediumitalic.woff) format("woff");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: Aeonik;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/68118158d84a14f94ce1fb5b_aeonik-semibolditalic.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/681181582d9a6285f4a8a626_aeonik-semibolditalic.woff) format("woff");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: Aeonik;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/68118158b4983cde815c7e94_aeonik-thin.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/68118158d35772f828c222be_aeonik-thin.woff) format("woff");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Aeonik;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/68118158ad0a748a40c688df_aeonik-thinitalic.woff2) format("woff2"),
    url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/68118158c8c4c74ad0dfc384_aeonik-thinitalic.woff) format("woff");
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: Aeonikvf;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/681181586028e25981fef1ac_aeonikvf.woff2) format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Aeonikvf;
    src: url(https://cdn.prod.website-files.com/681162abe1317db9f7d38dc1/681181585c82553245754c95_aeonikvf-italic.woff2) format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

#authProviderSelection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
    gap: 20px;
}

#authProviderSelection .row {
    width: 100%;
    max-width: 600px;
}


/* Error pages */
body.error-page {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--mbnd-natural-light);
    text-align: center;
    background: linear-gradient(90deg, black 0%, black 50%, #0600ff 75%, #9000ff 85%, rgba(85, 255, 255, 0.98) 95%);
}

body.error404 {
    background: linear-gradient(135deg, #ffef00, #ff6a00);
}

body.error403 {
    background: linear-gradient(135deg, #000428, #004e92);
}

body.error-general {
    background: linear-gradient(135deg, #e52d27, #b31217);
}

.error-container {
    max-width: 600px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.error-container .error-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.error-container .error-timestamp {
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    color: var(--mbnd-graphite-signal);
    background: var(--mbnd-natural-light);
    border: 1px solid var(--border);
}

.error-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.error-container .error-title {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
}

.error-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.error-note {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
    margin-top: 1rem;
}

.error-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #ff4d4f;
    color: var(--mbnd-natural-light);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
}

.error-button:hover {
    background-color: var(--mbnd-square-pink);
}


/* Remove Bootstrap border-radius (make corners sharp) - excluding badges */
.btn:not(.badge),
.alert:not(.badge) {
    --bs-border-radius: 0;
    --bs-border-radius-sm: 0;
    --bs-border-radius-lg: 0;
    --bs-border-radius-xl: 0;
    --bs-border-radius-xxl: 0;
    --bs-border-radius-2xl: 0;
    --bs-border-radius-pill: 0;
}

.alert-success {
    --bs-success-bg-subtle: var(--mbnd-quantum-cyan);
    --bs-success-border-subtle: var(--mbnd-quantum-cyan);
}

.alert-warning {
    --bs-alert-color: var(--mbnd-natural-light);
}

.alert-danger {
    --bs-danger-bg-subtle: var(--Color-Surfaces-surface-highlight);
    --bs-alert-bg: var(--Color-Surfaces-surface-highlight);
    --bs-alert-color: var(--mbnd-graphite-signal);
    --bs-alert-border-color: var(--table-row-selected-highlight);
}

.btn-primary {
    --bs-btn-bg: var(--Color-Buttons-btn-primary-bg-default);
    --bs-btn-border-color: color-mix(in srgb, var(--mbnd-quantum-blue) 90%, black 10%);
    --bs-btn-active-bg: var(--mbnd-quantum-blue);
    --bs-btn-active-color: var(--mbnd-quantum-blue);
    --bs-btn-hover-bg: color-mix(in srgb, var(--mbnd-quantum-blue) 90%, black 10%);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--mbnd-quantum-blue) 60%, black 40%);
    --bs-btn-color: var(--mbnd-natural-light);
    --bs-btn-hover-color: var(--mbnd-natural-light);
}

.btn-success {
    --bs-btn-bg: var(--mbnd-quantum-cyan);
    --bs-btn-border-color: color-mix(in srgb, var(--mbnd-quantum-cyan) 90% black 10%);
    --bs-btn-active-bg: var(--mbnd-quantum-cyan);
    --bs-btn-active-color: var(--mbnd-graphite-signal);
    --bs-btn-hover-bg: var(--mbnd-quantum-cyan);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--mbnd-quantum-cyan) 80%, black 20%);
    --bs-btn-color: var(--mbnd-graphite-signal);
    --bs-btn-hover-color: var(--mbnd-graphite-signal);
}

.btn-warning {
    --bs-btn-bg: var(--Color-Surfaces-surface-highlight);
    --bs-btn-border-color: color-mix(in srgb, var(--Color-Surfaces-surface-highlight) 90%, black 10%);
    --bs-btn-active-bg: color-mix(in srgb, var(--Color-Surfaces-surface-highlight) 90%, black 10%);
    --bs-btn-active-color: var(--mbnd-graphite-signal);
    --bs-btn-hover-bg: color-mix(in srgb, var(--Color-Surfaces-surface-highlight) 90%, black 10%);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--mbnd-quantum-violet) 60%, black 40%);
    --bs-btn-color: var(--mbnd-graphite-signal);
    --bs-btn-hover-color: var(--mbnd-graphite-signal);
}

.btn-danger {
    --bs-btn-bg: var(--mbnd-square-pink);
    --bs-btn-border-color: color-mix(in srgb, var(--mbnd-square-pink) 90%, black 10%);
    --bs-btn-active-bg: var(--mbnd-square-pink);
    --bs-btn-active-color: var(--mbnd-square-pink);
    --bs-btn-hover-bg: color-mix(in srgb, var(--mbnd-square-pink) 90%, black 10%);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--mbnd-square-pink) 60%, black 40%);
    --bs-btn-color: var(--mbnd-natural-light);
    --bs-btn-hover-color: var(--mbnd-natural-light);
}


.spepver {
    margin-bottom: 0.5rem;
}

/* Modern Table Styling */
.modern-table {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 0;
}

.modern-table thead {
    border-radius: 4px 4px 0 0;
}

.modern-table thead th {
    font-weight: 600;
    font-size: 0.875rem;
    color: #ffffff;
    background-color: var(--mbnd-graphite-signal);
    letter-spacing: 0.5px;
    padding: 8px 3px;
    border: none;
}

.modern-table thead th:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;

}

.modern-table thead th:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.modern-table tbody tr {
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.15s ease;
}

.modern-table tbody tr:hover {
    background-color: #f8f9fa;
}

.modern-table tbody tr:last-child {
    border-bottom: none;
}

.modern-table tbody td {
    padding: 4px 4px;
    vertical-align: middle;
    border: none;
    color: #495057;
}

/* Checkbox alignment in tables */
.modern-table .checkbox-column {
    text-align: center;
    width: 50px;
    padding: 12px 8px;
    vertical-align: middle;
}

.modern-table .checkbox-column .form-check-input {
    margin: 0 auto;
    position: relative;
    display: block;
    vertical-align: middle;
}

.modern-table .checkbox-column .form-check-label {
    display: none;
}

.modern-table .icon-column {
    width: 60px;
    text-align: center;
    padding: 4px 4px;
}

.modern-table .label-column {
    font-weight: 500;
    min-width: 200px;
}

.modern-table .date-column {
    /*
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
    color: #6c757d;
    */
    min-width: 140px;
}

.modern-table .user-column {
    min-width: 150px;
}

.modern-table .count-column {
    text-align: center;
    font-weight: 500;
    width: 80px;
}

.modern-table .action-column {
    width: 140px;
    text-align: center;
}

.table-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.15s ease;
    text-decoration: none;
}

.table-icon-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.table-icon-link img {
    display: block;
}

/* Modern button styling for table actions */
.modern-table .btn-sm {
    padding: 6px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    transition: all 0.15s ease;
}

.modern-table .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.modern-table .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
}

/* Responsive table improvements */
@media (max-width: 768px) {
    .modern-table thead th,
    .modern-table tbody td {
        padding: 12px 16px;
    }

    .modern-table .date-column,
    .modern-table .user-column {
        min-width: auto;
    }

    .modern-table .btn-sm {
        padding: 4px 12px;
        font-size: 0.8rem;
    }
}

.main_flashes {
    padding-top: 0.25em;
}

.alert-warning {
    --bs-alert-color: #000;
}

.nobr {
    white-space: nowrap;
}

.monodate {
    font-family: monospace;
}

div.belonav-title-bar {
    background-color: var(--Color-Surfaces-surface-L0) !important;
    margin-bottom: 1em;
}

.account-admin-title {
    letter-spacing: -0.36px;
    color: black;
    font-size: 36px;
    font-family: Aeonik, Helvetica, Arial, sans-serif;
    font-weight: 500;
    word-wrap: break-word;
}

/* App Footer Styling - Based on Figma Design */
.app-footer {
    width: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 50%, rgba(6, 0, 255, 1) 75%, rgba(144, 0, 255, 1) 85%, rgba(85, 255, 255, 0.98431) 95%);
    padding: 0;
    margin-top: auto;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.app-footer-content {
    width: 100%;
    padding: 0 48px;
    display: flex;
    align-items: center;
    min-height: 34px;
}

.app-footer-text {
    margin: 0;
    font-family: Aeonik, Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.1px;
    color: white;
    white-space: nowrap;
    flex: 1;
}

.app-footer-brand {
    font-family: Aeonik, Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: white;
}

.app-footer-separator {
    color: #f1d06b;
    margin: 0 0.5em;
}

.app-footer-tagline {
    color: white;
}

/* Make submit button with class simplelink look like a regular link */
button.simplelink[type="submit"] {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #0d6efd;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline;
}

button.simplelink[type="submit"]:hover,
a.simplelink:hover {
    text-decoration: underline;
}

/* Make sure the body takes full height and footer sticks to bottom */
html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--mbnd-natural-light);
    color: var(--mbnd-graphite-signal);
    font-family: Aeonik, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
}

/* Ensure main content area grows to fill available space */
.page-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
}

/* Responsive footer */
@media (max-width: 768px) {
    .app-footer-content {
        padding: 0 20px;
    }

    .app-footer-text {
        font-size: 9px;
    }
}

.selbak {
    background: var(--Color-Surfaces-surface-L0);
}

/* Component Tab List Styles - Matching Figma Design */
.component-tab-list {
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.tab-container {
    display: flex;
    gap: 0;
    align-items: center;
    padding: 0;
}

.tab-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0;
    text-decoration: none;
    color: black;
    background: transparent;
    border: none;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.tab-item:hover {
    text-decoration: none;
    color: black;
}

.tab-item.tab-active {
    background: var(--Color-Surfaces-surface-highlight);
}

.tab-label {
    font-family: 'Aeonik', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.12px;
    padding: 0 12px;
    white-space: nowrap;
}

/* Actions Bar Styles - Matching Figma Design */
.betab-actions-bar {
    background: var(--Color-Surfaces-surface-L0);
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 0;
    padding-right: 0;
    border-radius: 3px;
    margin-bottom: 1rem;
}
.betab-actions-bar .col-md-3 , .betab-actions-bar .col-md-2 {
    padding-right: 6px ;
    padding-left: 6px ;
}

.actions-select-group {
    position: relative;
    display: flex;
    align-items: center;
}

.form-select-custom {
    background: var(--Color-Forms-input-bg);
    border-right: 1px solid var(--Color-Forms-input-border);
    display: flex;
    gap: 6px;
    height: 36px;
    align-items: center;
    padding: 6px 12px;
    position: relative;
    z-index: 5;
    pointer-events: none;
}

.form-select-custom.disabled {
    cursor: not-allowed;
}

.form-select-custom:not(.disabled) {
    cursor: pointer;
}

.form-select-custom:not(.disabled) .form-select-label {
    color: black;
}

.form-select-custom:not(.disabled) .chevron-icon {
    opacity: 1;
}

.form-select-label {
    font-family: 'Aeonik', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.12px;
    color: var(--Color-Buttons-btn-primary-disabled-label);
    margin: 0;
    white-space: nowrap;
}

.chevron-icon {
    width: 13px;
    height: 8px;
    transform: rotate(180deg);
    opacity: 0.5;
}

.form-select-custom .hidden {
    display: none;
}

.actions-select-group {
    position: relative;
    display: flex;
    align-items: center;
}

.form-select-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    background: transparent;
    color: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 0;
    z-index: 10;
    text-indent: -9999px;
    overflow: hidden;
}

.form-select-overlay:disabled {
    cursor: not-allowed;
}

.form-select-overlay option {
    color: black;
    font-size: 12px;
    font-family: 'Aeonik', sans-serif;
    text-indent: 0;
}

.actions-button-group {
    display: flex;
    align-items: center;
}

.actions-spacer {
    flex: 1;
}

.btn-custom {
    display: flex;
    gap: 6px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 3px 12px;
    font-family: 'Aeonik', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 0;
    white-space: nowrap;
}

.btn-custom.btn-disabled {
    background: var(--Color-Buttons-btn-primary-disabled-bg);
    color: var(--Color-Buttons-btn-primary-disabled-label);
    cursor: not-allowed;
}

.btn-custom.btn-disabled:hover {
    background: var(--Color-Buttons-btn-primary-disabled-bg);
    color: var(--Color-Buttons-btn-primary-disabled-label);
    text-decoration: none;
}

.btn.btn-secondary {
    background: var(--Color-Buttons-btn-tertiary-bg-default);
    color: black;
    cursor: pointer;
    border: none;
}

.btn.btn-secondary:hover {
    background: color-mix(in srgb, var(--Color-Buttons-btn-tertiary-bg-default) 90%, black 10%);
    color: black;
    cursor: pointer;
    border: none;
}

.btn-custom.btn-secondary-active {
    background: var(--Color-Surfaces-surface-highlight);
    color: black;
    cursor: pointer;
}

.btn-custom.btn-secondary-active:hover {
    background: color-mix(in srgb, var(--Color-Surfaces-surface-highlight) 90%, black 10%);
    color: black;
    text-decoration: none;
}

.btn-custom.btn-primary {
    background: var(--Color-Buttons-btn-primary-bg-default);
    color: var(--Color-Buttons-btn-primary-label);
    padding-left: 6px;
}

.btn-custom.btn-primary:hover {
    background: color-mix(in srgb, var(--Color-Buttons-btn-primary-bg-default) 90%, black 10%);
    color: var(--Color-Buttons-btn-primary-label);
    text-decoration: none;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-icon-rotated {
    width: 18px;
    height: 18px;
    transform: rotate(45deg);
}

/* Row selection highlighting for modern-table */

.modern-table tbody tr.row-selected td {
    background-color: var(--table-row-selected-highlight);
}

a, a.simplelink, button.simplelink {
    text-decoration: none;
}

/* Make submit button with class simplelink look like a regular link */
button.simplelink[type="submit"] {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #0d6efd;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline;
}

button.simplelink[type="submit"]:hover,
.main-content a:hover ,
a.simplelink:hover
{
    text-decoration: underline;
}

.background-hints {
    background: var(--Color-Surfaces-surface-L0);
    border-radius: 3px;
    margin-left: 1rem;
    padding: 2rem;
}

#add-users-btn {
    text-align: left;
}

.box-info {
    margin-bottom: 1em;
}

.dummy-center-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    color: white;
    font-family: 'Segoe UI', Arial, sans-serif;
    text-shadow: 0 0 10px #0600FF, 0 0 20px rgba(85,255,255,0.98);
    z-index: 1;
    overflow: hidden;
    max-width: 80vw;
    width: auto;
    display: inline-block;
    animation: message-tilt 6s ease-in-out infinite;
}

.dummy-center-message::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 60%,
        transparent 100%
    );
    transform: rotate(25deg);
    animation: glass-shine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes message-tilt {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    15% {
        transform: translate(-50%, -50%) rotate(-1deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(2deg);
    }
    85% {
        transform: translate(-50%, -50%) rotate(-1deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes glass-shine {
    0% {
        left: -50%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

a.footlink {
    color: white;
    text-decoration: none;
    font-weight: 400;
}

a.footlink:hover {
    color: white;
    text-decoration: underline;
}

.page-wrapper .modal.show .modal-dialog {
    margin-top: 0;
}

.modal-dialog {
    margin-top: 0;
}

.page-wrapper .btn {
    display: flex;
    gap: 6px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 3px 12px;
    font-family: 'Aeonik', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 0;
    white-space: nowrap;
}

h5.modal-title {
    font-size: 24px;
}
.modal-body h6 {
    font-size: 12px;
}

.modal-body , .modal-body p {

}

.modal-header {
    border-bottom: 0px;
}

.modal-footer {
    border-top: 0px;
}