﻿
html, body, #app {
    font-family: var(--bdo-font-family-base);
    margin: 0;
    padding: 0;
    font-family: var(--bdo-font-family-base) !important;
    height: 100%;
    background-color: transparent !important;
    color: var(--bdo-ui-text);
}


    /* 2) Make most things inherit it (but don't break icon fonts) */
    body *:not(.dxbl-icon):not(i[class*="dxbl-"]):not(.bi):not([class*="bi-"]):not(.ph):not([class*="ph-"]) {
        font-family: inherit !important;

    }

/* ① Hide on mobile / small screens  */
@media (max-width: 767.98px) {
    .desktop-only {
        display: none !important;
    }
}

/* ② Show again from 768 px upward */
@media (min-width: 768px) {
    .desktop-only {
        display: block !important;
    }
}

.badge-fit-content {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    padding: 0.35em 0.65em;
    vertical-align: middle;
}

/* This is for the modal popups, specifically in te required actions area.*/
.no-padding {
    padding: unset !important;
}

* {
    font-family: var(--bdo-font-family-base) !important;
}

.no-scroll {
    overflow-y: hidden;
}

#blazor-error-ui {
    display: none;
}


@media (max-width: 768px) {
    .bdoPopup {
        width: 100% !important;
        height: 90% !important;
        overflow: unset;
    }
}


/* START: App.razor - Please wait authentication*/
.auth-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
    color: white !important;
}

.auth-loading-content {
    text-align: center;
    color: inherit;
    padding: 3rem 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.5s ease-out;
    min-width: 500px;
    max-width: 500px;
}

.loading-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(1.5);
}

.platform-title {
    color: inherit;
    font-size: 2rem;
    font-weight: 700;
    /*    margin: 0 0 2rem 0;*/
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.status-title {
    color: inherit;
    font-size: 1.5rem;
    font-weight: 600;
    /*    margin: 1rem 0 0.5rem 0;*/
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.status-message {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.auth-loading-content .text-primary {
    color: inherit !important;
}

.auth-loading-content .spinner-border {
    border-color: #60A5FA;
    border-top-color: inherit;
    margin: 1.5rem 0;
}

.auth-loading-content .progress {
    background-color: #60A5FA;
    border-radius: 8px;
    margin: 1rem auto 0 auto;
    height: 6px;
    overflow: hidden;
}

.auth-loading-content .progress-bar {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, white 50%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .auth-loading-content {
        padding: 2rem 1.5rem;
        min-width: 280px;
        margin: 0 1rem;
    }

    .platform-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .loading-logo {
        transform: scale(1.3);
        margin-bottom: 1rem;
    }

    .status-title {
        font-size: 1.1rem;
    }

    .status-message {
        font-size: 0.9rem;
    }

    .progress {
        width: 200px !important;
    }
}


/* END: App.razor - Please wait authentication*/

/* In app.css or a global stylesheet */
body.Fluent::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("/images/aiplatform-home-light-bg.png") center calc(0% - 300px) / 120% 130% no-repeat !important;
    filter: blur(2px);
    opacity: 0.2;
    pointer-events: none;
    z-index: -2
}

/*body.FluentDark::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("/images/aiplatform-home-dark-bg.png") center calc(0% - 1050px) no-repeat;
    background-size: 120% auto !important;
    filter: brightness(0.3) blur(1px);*/ /* soften effect */
    /*pointer-events: none;
    z-index: -2;
}*/

body.FluentDark::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0px, rgba(0,0,0,1) 600px), /* fade overlay */
    url("/images/aiplatform-home-dark-bg.png") center calc(0% - 1050px) no-repeat;
    background-size: auto, 120% auto !important;
    filter: brightness(0.3) blur(1px); /* soften effect */
    pointer-events: none;
    z-index: -2;
}

:root {
    --glow-color: rgba(0, 200, 255, 0.8);
}

/* Any Bootstrap button or link */
/*a,
.btn {
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 4px;*/ /* optional: keeps highlight looking neat */
/*}*/

    /* Links highlight */
    /*a:hover,
    a:focus-visible {
        color: #0dcaf0;*/ /* Bootstrap "info" accent */
        /*background-color: rgba(13, 202, 240, 0.15);*/ /* soft cyan highlight */
    /*}*/

    /* Button highlight */
    /*.btn:hover,
    .btn:focus-visible {
        background-color: rgba(13, 202, 240, 0.2);*/ /* stronger highlight */
    /*}*/
