/* ===== Scrollbar Styling ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 155, 155, 0.4) transparent;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.35);
    border-radius: 20px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: rgba(155, 155, 155, 0.55);
}

/* Sidebar / navbar: even subtler scrollbar */
.sidebar *,
.nav-scrollable {
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.sidebar ::-webkit-scrollbar-thumb,
.nav-scrollable::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.12);
}

.sidebar ::-webkit-scrollbar-thumb:hover,
.nav-scrollable::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

html, body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
}

a, .btn-link {
    color: #dd7a10;
    font-weight: 500;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 0rem;
}

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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIg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jAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    color: var(--bs-secondary-color);
    text-align: start;
}



/* Custom page CSS for demo page */

:root {
    --bs-body-bg: #f5f3f8;
    /* ===== Backgrounds ===== */
    --color-bg-primary: #1B0F2E; /* Deep Space Purple */
    --color-bg-secondary: #2A1450; /* Dark Violet */
    --color-bg-tertiary: #4B1E78; /* Royal Purple */
    --color-bg-elevated: #7A2FC6; /* Electric Purple */
    /* ===== Brand Core ===== */
    --color-brand-primary: #7A2FC6;
    --color-brand-secondary: #B84DFF;
    --color-brand-accent: #FF9A2E;
    /* ===== Glows & Energy ===== */
    --color-glow-purple: #D65CFF;
    --color-glow-orange: #FFC14D;
    --color-glow-gold: #FFE1A3;
    /* ===== Highlights ===== */
    --color-highlight-light: #E6C8FF;
    /* ===== Text ===== */
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #E6C8FF;
    --color-text-muted: #B9A6D3;
    /* ===== Utility ===== */
    --color-border-subtle: rgba(230, 200, 255, 0.25);
    --color-shadow-purple: rgba(122, 47, 198, 0.35);
    /* ===== Optional gradients ===== */
    --gradient-brand: linear-gradient(135deg, #7A2FC6, #D65CFF);
    --gradient-energy: linear-gradient(135deg, #FF9A2E, #FFC14D);
    --gradient-background: radial-gradient(circle at top, #4B1E78, #1B0F2E);
    /* ===== Animated Background Gradient ===== */
    .animated-gradient {
        background: linear-gradient( 270deg, #1B0F2E, #4B1E78, #7A2FC6, #FF9A2E );
        background-size: 400% 400%;
        animation: gradientShift 12s ease infinite;
    }

    .nav-scrollable {
        background: transparent;
    }

    .content .pagecontent {
        padding: 2rem;
        background: #fff;
        min-height: calc(100vh - 3.5rem);
    }

    .codeexample {
        color: lightgray;
        background-color: #1f1f1f;
        border-radius: 10px;
        border: none;
        border-top: 4px solid #654ff0;
        padding: 24px;
        box-shadow: 0 2px 10px rgba(0,0,0,.15);
    }

    @keyframes gradientShift {
        0% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }

        100% {
            background-position: 0% 50%;
        }
    }
}

/* ===== BPT Product Page Shared Styles ===== */

.bpt-page-header {
    background: linear-gradient(135deg, #1B0F2E 0%, #4B1E78 50%, #7A2FC6 100%);
    color: #fff;
    padding: 3rem 2rem;
    margin-bottom: 0;
}

.bpt-page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bpt-page-header p {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 700px;
    margin-bottom: 0;
}

.bpt-content-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.bpt-breadcrumb {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    color: #666;
    background: #f8f6fb;
    border-bottom: 1px solid #e8e4ef;
}

.bpt-breadcrumb a {
    color: #7A2FC6;
    text-decoration: none;
}

.bpt-breadcrumb a:hover {
    text-decoration: underline;
}

.bpt-code {
    background-color: #1a1a2e;
    color: #e0e0e0;
    border-radius: 8px;
    border: 1px solid #2d2d4a;
    border-top: 3px solid #7A2FC6;
    padding: 1.25rem;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    margin: 1rem 0;
    white-space: pre;
    line-height: 1.6;
}

.bpt-code code {
    color: inherit;
    background: none;
    padding: 0;
}

.bpt-callout {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.bpt-callout-info {
    background: #e8f4fd;
    border-color: #2196F3;
    color: #1565C0;
}

.bpt-callout-tip {
    background: #e8f5e9;
    border-color: #4CAF50;
    color: #2E7D32;
}

.bpt-callout-warning {
    background: #fff3e0;
    border-color: #FF9800;
    color: #E65100;
}

.bpt-callout strong {
    display: block;
    margin-bottom: 0.25rem;
}

.bpt-btn-accent {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #FF9A2E, #dd7a10);
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.bpt-btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 154, 46, 0.4);
    color: #fff !important;
}

.bpt-btn-ghost {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    text-decoration: none !important;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.bpt-btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.bpt-btn-outline-accent {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: #dd7a10 !important;
    font-weight: 600;
    border: 2px solid #dd7a10;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.bpt-btn-outline-accent:hover {
    background: #dd7a10;
    color: #fff !important;
}

.bpt-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #7A2FC6, #B84DFF);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.bpt-nav-card {
    display: block;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    height: 100%;
}

.bpt-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #7A2FC6;
}

.bpt-nav-card h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bpt-nav-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.bpt-nav-card .card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.bpt-section-alt {
    background: #f8f6fb;
}

h2.bpt-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1B0F2E;
    margin-bottom: 0.5rem;
}

p.bpt-section-subtitle {
    color: #666;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Navigation dropdown (shared for Getting Started, Docs) */
.nav-dropdown {
    position: relative;
    margin-left: 1.5rem;
}

.nav-dropdown-trigger {
    cursor: pointer;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
    user-select: none;
    font-weight: 500;
}

.nav-dropdown-trigger:hover {
    text-decoration: underline;
    color: #fff;
}

.nav-dropdown-panel {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 4px;
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-width: 220px;
    z-index: 10;
    padding: 4px 0;
}

.nav-dropdown-panel::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.nav-dropdown:hover .nav-dropdown-panel {
    display: block;
}

.nav-dropdown-panel a {
    display: block;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: background 0.15s;
    margin-left: 0 !important;
    font-weight: 400;
}

.nav-dropdown-panel a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-panel .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

/* ── Mobile overrides for nav dropdowns ── */
@media (max-width: 991.98px) {
    .nav-dropdown {
        width: 100%;
        margin-left: 0;
    }

    .nav-dropdown-trigger {
        display: block;
        padding: 0.6rem 1rem;
        width: 100%;
    }

    .nav-dropdown-panel {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.03);
        min-width: unset;
        margin-top: 0;
    }

    .nav-dropdown-panel a {
        padding-left: 2rem !important;
    }
}

/* ===== Collapsible Parameter Cards ===== */
.bpt-collapsible-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.15s;
}

.bpt-collapsible-header:hover {
    background-color: rgba(122, 47, 198, 0.06);
}

.bpt-collapsible-header::after {
    content: '\25BC';
    font-size: 0.7rem;
    color: #999;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.bpt-collapsible-header.collapsed::after {
    transform: rotate(-90deg);
}

.bpt-collapsible-body {
    transition: none;
}

.bpt-collapsible-body.collapsed {
    display: none;
}

/* ===== Account / Auth Pages ===== */

/* Centered auth card (login, register, forgot password, verify, set password) */
.bpt-auth-wrapper {
    min-height: calc(100vh - 3.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f3f8;
    padding: 2rem 1rem;
}

.bpt-auth-card {
    background: #fff;
    border: 1px solid #e8e4ef;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(75, 30, 120, 0.08);
    width: 100%;
    max-width: 440px;
    padding: 2.5rem 2rem;
}

.bpt-auth-card.wide {
    max-width: 600px;
}

.bpt-auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.bpt-auth-brand img {
    height: 40px;
    margin-bottom: 0.75rem;
}

.bpt-auth-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B0F2E;
    margin-bottom: 0.25rem;
}

.bpt-auth-brand p {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

.bpt-auth-card .form-floating {
    margin-bottom: 1rem;
}

.bpt-auth-card .form-control:focus {
    border-color: #B84DFF;
    box-shadow: 0 0 0 0.2rem rgba(122, 47, 198, 0.15);
}

.bpt-btn-brand {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #7A2FC6, #B84DFF);
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    text-decoration: none !important;
}

.bpt-btn-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(122, 47, 198, 0.3);
    color: #fff !important;
}

.bpt-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}

.bpt-auth-footer a {
    color: #7A2FC6;
    font-weight: 500;
}

.bpt-auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: #bbb;
    font-size: 0.8rem;
}

.bpt-auth-divider::before,
.bpt-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e4ef;
}

/* Account dashboard pages (MyAccount, Licenses, Receipts) */
.bpt-account-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.bpt-account-section-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1B0F2E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8e4ef;
}

.bpt-account-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e8e4ef;
    border-radius: 10px;
    text-decoration: none !important;
    color: inherit !important;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.bpt-account-card:hover {
    border-color: #7A2FC6;
    box-shadow: 0 4px 16px rgba(75, 30, 120, 0.1);
    transform: translateY(-2px);
}

.bpt-account-card .card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bpt-account-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1B0F2E;
    margin: 0 0 0.15rem;
}

.bpt-account-card p {
    font-size: 0.82rem;
    color: #888;
    margin: 0;
}

/* Manage layout sidebar nav */
.bpt-manage-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bpt-manage-nav li {
    margin-bottom: 0.25rem;
}

.bpt-manage-nav .nav-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #555;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.bpt-manage-nav .nav-link:hover {
    background: #f0ebf7;
    color: #7A2FC6;
}

.bpt-manage-nav .nav-link.active {
    background: rgba(122, 47, 198, 0.1);
    color: #7A2FC6;
    font-weight: 600;
}