@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to right, #4e54c8, #8f94fb);
    color: white;
}

.cta {
    background-color: #fff;
    color: #4e54c8;
    padding: 0.75rem 1.5rem;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.features {
    padding: 2rem;
    background-color: #f9f9f9;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: white;
}
/*testmonials*/
.testimonials {
    padding: 2rem;
    background-color: #f0f4ff;
    text-align: center;
}

blockquote {
    font-style: italic;
    font-size: 1.2rem;
    margin: 1rem auto;
    max-width: 600px;
}

footer {
    margin-top: 0.5rem;
    font-weight: bold;
    color: #555;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    height: 88vh; /* Adjust 100px for header/footer */
    overflow: hidden; /* Prevent extra scrollbars */
}

    .iframe-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; /* Fill wrapper completely */
        border: none;
        background: transparent;
    }

/* Loading overlay: top center, no background */
.loading-overlay {
    position: absolute;
    top: 1rem; /* distance from top */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; /* no extra padding */
    background: none; /* no background */
    box-shadow: none; /* no shadow */
}

/*App Menu*/
.app-menu-container {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    background: #f8f9fa;
    min-height: 100vh;
}

.app-menu-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .app-menu-header h1 {
        color: #333;
        font-weight: 700;
        margin-bottom: 0.5rem;
        font-size: 2.5rem;
    }

.module-section {
    margin-bottom: 3rem;
}

.section-title {
    color: var(--bs-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--bs-primary);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.module-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.module-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

    .module-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3); /* Bootstrap primary */
        border-color: var(--bs-primary);
    }

.module-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-indigo) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.module-card:hover .module-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
}

.module-icon i {
    font-size: 3rem;
    color: #fff;
}

.module-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.module-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

.pin-option {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

    .pin-option label {
        cursor: pointer;
        font-size: 1rem;
        margin-bottom: 0;
    }

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

/* Responsive Design */
@@media (max-width: 1200px) {
    .module-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@@media (max-width: 768px) {
    .app-menu-container {
        padding: 1rem;
    }

    .app-menu-header h1 {
        font-size: 2rem;
    }

    .module-grid,
    .module-grid-4 {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .module-card {
        padding: 1.5rem;
    }

    .module-icon {
        width: 80px;
        height: 80px;
    }

        .module-icon i {
            font-size: 2.5rem;
        }

    .section-title {
        font-size: 1.5rem;
    }
}

@@media (max-width: 576px) {
    .module-grid,
    .module-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-card {
        padding: 1rem;
    }

    .module-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

        .module-icon i {
            font-size: 2rem;
        }

    .module-card h3 {
        font-size: 1rem;
    }

    .module-card p {
        font-size: 0.8rem;
    }
}

/*.dx-menu-item[aria-disabled="true"] {
    font-weight: bold;
    color: #fff;
    background-color: #004080;*/ /* Dark blue header */
/*cursor: default;
    pointer-events: none;*/ /* Prevent click */
/*}*/

.menu-group-title {
    font-weight: bold;
    color: #555;
    cursor: default;
    padding-left: 10px;
    background-color: #f0f0f0;
    border-top: 1px solid #ccc;
    pointer-events: none; /* Prevent click */
}

    .menu-group-title .dx-menu-item-text {
        text-transform: uppercase;
        font-weight: 600;
        opacity: .7;
        letter-spacing: .04em;
    }

/*Overview.razor*/
.overview-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.overview-header {
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.user-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar {
    color: white;
}

.user-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

    .user-avatar-large .avatar-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .user-avatar-large .avatar-initials {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
        font-weight: 700;
        color: white;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.stat-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card-header {
    background: white;
    border-bottom: 2px solid #f0f0f0;
    padding: 1.25rem;
    border-radius: 12px 12px 0 0;
}

.btn-lg {
    padding: 1rem 1.5rem;
}

.token-claims-list {
    max-height: 300px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.claim-item {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

    .claim-item:last-child {
        border-bottom: none;
    }

    .claim-item small {
        word-break: break-word;
    }

    .claim-item .text-muted {
        flex-shrink: 0;
        font-weight: 600;
    }

@@media (max-width: 768px) {
    .overview-container {
        padding: 1rem;
    }

    .overview-header {
        padding: 1.5rem;
    }

    .user-info-card {
        margin-top: 1rem;
    }

    .claim-item {
        flex-direction: column;
    }
}



/*Index.razor*/
.index-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header styling similar to Overview */
.index-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Cards grid */
.welcome-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Gradient cards */
.gradient-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(8px);
}

    .gradient-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

/* Card content */
.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.card-icon {
    width: 50px;
    height: 50px;
}

    .card-icon svg {
        width: 100%;
        height: 100%;
        fill: white;
    }


/* Responsive */
@media (max-width: 768px) {
    .index-container {
        padding: 1rem;
    }

    .gradient-card {
        padding: 1.5rem;
    }
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    display: inline-block;
    vertical-align: middle;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

/* Fluent Light custom */
:root[data-theme="fluent-custom"] {
    --bs-primary: var(--custom-primary, #0d6efd);
    --bs-link-color: var(--custom-primary, #0d6efd);
    --bs-focus-ring-color: color-mix(in oklab, var(--custom-primary, #0d6efd), transparent 70%);
}

    :root[data-theme="fluent-custom"] .btn-primary,
    :root[data-theme="fluent-custom"] .dxbs-btn-primary {
        --bs-btn-bg: var(--custom-primary, #0d6efd);
        --bs-btn-border-color: var(--custom-primary, #0d6efd);
        --bs-btn-hover-bg: color-mix(in oklab, var(--custom-primary, #0d6efd), black 10%);
        --bs-btn-hover-border-color: color-mix(in oklab, var(--custom-primary, #0d6efd), black 12%);
        --bs-btn-active-bg: color-mix(in oklab, var(--custom-primary, #0d6efd), black 14%);
        --bs-btn-active-border-color: color-mix(in oklab, var(--custom-primary, #0d6efd), black 16%);
    }

/* Fluent Dark custom (optional) */
:root[data-theme="fluent-dark-custom"] {
    --bs-primary: var(--custom-primary, #4f46e5);
    --bs-link-color: var(--custom-primary, #4f46e5);
    --bs-focus-ring-color: color-mix(in oklab, var(--custom-primary, #4f46e5), transparent 70%);
}

    :root[data-theme="fluent-dark-custom"] .btn-primary,
    :root[data-theme="fluent-dark-custom"] .dxbs-btn-primary {
        --bs-btn-bg: var(--custom-primary, #4f46e5);
        --bs-btn-border-color: var(--custom-primary, #4f46e5);
        --bs-btn-hover-bg: color-mix(in oklab, var(--custom-primary, #4f46e5), white 8%);
        --bs-btn-hover-border-color: color-mix(in oklab, var(--custom-primary, #4f46e5), white 8%);
        --bs-btn-active-bg: color-mix(in oklab, var(--custom-primary, #4f46e5), white 12%);
        --bs-btn-active-border-color: color-mix(in oklab, var(--custom-primary, #4f46e5), white 12%);
    }

/* --- Theme UI inside the sidebar menu --- */
#sidebar .theme-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 2px;
    /* Allow flex children to shrink without overflow */
    min-width: 0;
}

#sidebar .color-picker {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--dx-border-color, #d1d5db);
    border-radius: 6px;
    background: transparent;
    box-sizing: border-box;
    /* Remove default extra inner padding on some browsers */
    appearance: none;
}

/* Make DxTextBox stretch to available space */
#sidebar .hex-input,
#sidebar .hex-input .dxbs-text-editor,
#sidebar .hex-input .dxbs-text-editor input {
    width: 100%;
    min-width: 0; /* prevent overflow in flex container */
    box-sizing: border-box;
}

/* Action buttons in a row with safe wrapping */
#sidebar .theme-actions {
    display: flex;
    gap: 8px;
    padding: 4px 6px 6px;
    flex-wrap: wrap; /* wrap on narrow menus */
    min-width: 0;
}

    #sidebar .theme-actions .action-btn {
        flex: 1 1 0; /* make buttons share the row evenly */
        min-width: 120px; /* keep readable labels */
        white-space: nowrap; /* prevent label breaking */
    }

/* Optional: Compact the buttons slightly on very narrow sidebars */
@media (max-width: 480px) {
    #sidebar .theme-actions .action-btn {
        min-width: 100px;
    }
}

#sidebar .theme-actions {
    flex-direction: column;
}


/* DXAccordion Scope under #sidebar so styles don't leak */
#sidebar .menu .dx-accordion-item-header {
    padding: .5rem .75rem;
}

    #sidebar .menu .dx-accordion-item-header:hover,
    #sidebar .menu a.menu-item:hover {
        background-color: var(--bs-light);
    }

#sidebar .menu a.menu-item {
    color: var(--bs-body-color);
}

#sidebar .menu .menu-item.text-danger {
    color: var(--bs-danger) !important;
}

#sidebar .menu .menu-item.text-muted {
    color: var(--bs-secondary-color) !important;
}

#sidebar .menu i {
    width: 1.25rem; /* align icons */
    text-align: center;
}


/* site.css */
.app-root:not(.theme-ready) {
    visibility: hidden;
}

.app-root.theme-ready {
    visibility: visible;
}

/* Ensure the button lays out content in RTL as: icon | text | arrow (left) */
[dir="rtl"] .dxbl-menu .dxbl-btn {
    display: flex;
    align-items: center;
    /* Keep LTR row direction and control order explicitly */
    flex-direction: row;
    /* Unified spacing between icon and text */
    gap: var(--dxbl-menu-item-image-spacing, 0.5rem);
}

    /* 1) Icon first on the right */
    [dir="rtl"] .dxbl-menu .dxbl-btn .dxbl-btn-image,
    [dir="rtl"] .dxbl-menu .dxbl-btn .dxbl-btn-icon {
        order: 1; /* first in visual order */
        margin-inline: 0; /* let gap control spacing */
    }

    /* 2) Text second (middle) */
    [dir="rtl"] .dxbl-menu .dxbl-btn .dxbl-btn-text {
        order: 2;
        margin-inline: 0;
        white-space: nowrap; /* optional: prevent wrap if desired */
    }

    /* 3) Arrow last on the far left */
    [dir="rtl"] .dxbl-menu .dxbl-btn .dxbl-btn-arrow,
    [dir="rtl"] .dxbl-menu .dxbl-menu-item .dxbl-menu-item-arrow,
    [dir="rtl"] .dxbl-menu .dxbl-btn [class*="chevron"],
    [dir="rtl"] .dxbl-menu .dxbl-btn [class*="arrow"] {
        order: 3;
        margin-inline-start: auto; /* push to far left in RTL */
        margin-inline-end: 0;
    }

    /* 4) Make the arrow point LEFT in RTL (flip right-chevron glyphs) */
    [dir="rtl"] .dxbl-menu .dxbl-btn .dxbl-btn-arrow,
    [dir="rtl"] .dxbl-menu .dxbl-menu-item .dxbl-menu-item-arrow,
    [dir="rtl"] .dxbl-menu .dxbl-btn [class*="chevron-right"],
    [dir="rtl"] .dxbl-menu .dxbl-btn [class*="arrow-right"] {
        transform: scaleX(-1);
    }

/* Optional: logical padding for nicer edges */
[dir="rtl"] .dxbl-menu .dxbl-menu-item {
    padding-inline: var(--dxbl-menu-item-padding-x, 0.75rem);
}

[dir="rtl"] .dxbl-btn {
    flex: none !important;
}

.dxbl-menu .dxbl-menu-item-list,
.dxbl-menu-scrollable {
    overflow-y: hidden;
}

    .dxbl-menu .dxbl-menu-item-list:hover,
    .dxbl-menu-scrollable:hover {
        overflow-y: auto;
    }


.nav-buttons-container-legacy {
    padding: 0 !important;
}
.nav-buttons-container-dashboard {
    padding: 15px !important;
}


.gradient-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    font-weight: 600;
    text-align: center;
    transition: transform .2s ease;
}

    .gradient-card:hover {
        transform: translateY(-4px);
    }

.gradient-overview {
    background: var(--gradient-overview);
}

.gradient-appmenu {
    background: var(--gradient-appmenu);
}

.gradient-dashboard {
    background: var(--gradient-dashboard);
}

.gradient-ai {
    background: var(--gradient-ai);
}

.gradient-decision {
    background: var(--gradient-decision);
}

.gradient-config {
    background: var(--gradient-config);
}

:root {
    --gradient-overview: linear-gradient(135deg, #0078D4, #005A9E);
    --gradient-appmenu: linear-gradient(135deg, #6B4EFF, #4B2EFF);
    --gradient-dashboard: linear-gradient(135deg, #FF8C00, #FFB900);
    --gradient-ai: linear-gradient(135deg, #28A745, #218838);
    --gradient-decision: linear-gradient(135deg, #17A2B8, #138496);
    --gradient-config: linear-gradient(135deg, #DC3545, #B02A37);
}

[data-bs-theme="dark"] {
    --gradient-overview: linear-gradient(135deg, #2B88D8, #103F91);
    --gradient-appmenu: linear-gradient(135deg, #8B6FFF, #5A3FFF);
    --gradient-dashboard: linear-gradient(135deg, #FFB900, #C27C00);
    --gradient-ai: linear-gradient(135deg, #34C759, #248A3D);
    --gradient-decision: linear-gradient(135deg, #00B7C3, #007A87);
    --gradient-config: linear-gradient(135deg, #FF5C5C, #B02A37);
}
