/*
 * Splash screen + desktop (Electron) titlebar styles.
 * Linked render-blocking from index.html <head> so the splash is styled on first paint,
 * independent of the app's main styles bundle. Keep it small — it is on the critical path.
 */

:root {
    --isTop: 0
}

#fuse-splash-screen {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #072b40;
    z-index: 99999;
    pointer-events: none;
    top: var(--isTop);
    opacity: 1;
    transition: opacity 300ms ease;
}

/* Angular (App) adds .app-ready to <adit-shell-root> once real content
   has painted; CSS alone fades the splash out — no JS/DOM access. */
adit-shell-root.app-ready~#fuse-splash-screen {
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 0s linear 300ms;
}

#fuse-splash-screen .center {
    display: block;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#fuse-splash-screen .logo {
    width: 120px;
    margin: 0 auto;
}

#fuse-splash-screen .logo img {
    filter: drop-shadow(0px 10px 6px rgba(0, 0, 0, 0.2))
}

#fuse-splash-screen .spinner-wrapper {
    display: block;
    position: relative;
    width: 100%;
    min-height: 100px;
    height: 100px;
}

#fuse-splash-screen .spinner-wrapper .spinner {
    position: absolute;
    overflow: hidden;
    left: 50%;
    margin-left: -50px;
    animation: outer-rotate 2.91667s linear infinite;
}

#fuse-splash-screen .spinner-wrapper .spinner .inner {
    width: 100px;
    height: 100px;
    position: relative;
    animation: sporadic-rotate 5.25s cubic-bezier(0.35, 0, 0.25, 1) infinite;
}

#fuse-splash-screen .spinner-wrapper .spinner .inner .gap {
    position: absolute;
    left: 49px;
    right: 49px;
    top: 0;
    bottom: 0;
    border-top: 10px solid;
    box-sizing: border-box;
}

#fuse-splash-screen .spinner-wrapper .spinner .inner .left,
#fuse-splash-screen .spinner-wrapper .spinner .inner .right {
    position: absolute;
    top: 0;
    height: 100px;
    width: 50px;
    overflow: hidden;
}

#fuse-splash-screen .spinner-wrapper .spinner .inner .left .half-circle,
#fuse-splash-screen .spinner-wrapper .spinner .inner .right .half-circle {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100px;
    box-sizing: border-box;
    border: 10px solid #4285F4;
    border-bottom-color: transparent;
    border-radius: 50%;
}

#fuse-splash-screen .spinner-wrapper .spinner .inner .left {
    left: 0;
}

#fuse-splash-screen .spinner-wrapper .spinner .inner .left .half-circle {
    left: 0;
    border-right-color: transparent;
    animation: left-wobble 1.3125s cubic-bezier(0.35, 0, 0.25, 1) infinite;
    -webkit-animation: left-wobble 1.3125s cubic-bezier(0.35, 0, 0.25, 1) infinite;
}

#fuse-splash-screen .spinner-wrapper .spinner .inner .right {
    right: 0;
}

#fuse-splash-screen .spinner-wrapper .spinner .inner .right .half-circle {
    right: 0;
    border-left-color: transparent;
    animation: right-wobble 1.3125s cubic-bezier(0.35, 0, 0.25, 1) infinite;
    -webkit-animation: right-wobble 1.3125s cubic-bezier(0.35, 0, 0.25, 1) infinite;
}

/* Desktop app css */
.drag-region-dekstop {
    -webkit-app-region: drag;
    position: relative;
    z-index: 9999999999;

}

.no-drag-desktop {
    -webkit-app-region: no-drag;
}

.w20-desktop {
    width: 20px;
    cursor: pointer;
}

.w12-desktop {
    width: 12px;
    cursor: pointer;
}

.desktop-app-arrow {
    cursor: pointer;
    height: 30px;
    padding: 0 12px 0 12px;
    line-height: 24px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.bg-header-desktop {
    background: #DEE1E6;
    display: flex;
    justify-content: space-between;
    padding: 0px 0px;
    align-items: center;
    height: 32px;
}

.icon-block-desktop {
    text-align: right;
    flex-grow: 1.2;
    height: 30px;
    line-height: 24px;
}

.icon-w-block-desktop button {
    height: 30px;
    padding: 0 12px 0 12px;
    line-height: 24px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.icon-block-sec-desktop {
    text-align: right;
    flex-grow: 1;
}

.title-min-button-desktop:hover {
    background-color: #b8b9bb;
    color: #000;
}

.title-max-button-desktop:hover {
    background-color: #b8b9bb;
    color: #000;
}

.title-restore-button-desktop:hover {
    background-color: #b8b9bb;
    color: #000;
}

.title-close-button-desktop:hover {
    background-color: #e56868;
    color: #000;
}

#desktop-titlebar {
    display: none;
}

.desktop-app-arrow:hover {
    background-color: #b8b9bb;
    color: #000;
}

.tooltip-refresh {
    position: relative;
    display: inline-block
}

.tooltiptext {
    visibility: hidden;
    text-align: center;
    width: 70px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    opacity: 0;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 14px;
    font-family: 'Poppins' !important;
    display: inline-table;
    line-height: 16px;
    top: 24px;
    right: 30%;
    transform: translate(70%, 0%);

}

.tooltip-refresh:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


@keyframes outer-rotate {
    0% {
        transform: rotate(0deg) scale(0.5);
    }

    100% {
        transform: rotate(360deg) scale(0.5);
    }
}

@keyframes left-wobble {

    0%,
    100% {
        transform: rotate(130deg);
    }

    50% {
        transform: rotate(-5deg);
    }
}

@keyframes right-wobble {

    0%,
    100% {
        transform: rotate(-130deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

@keyframes sporadic-rotate {
    12.5% {
        transform: rotate(135deg);
    }

    25% {
        transform: rotate(270deg);
    }

    37.5% {
        transform: rotate(405deg);
    }

    50% {
        transform: rotate(540deg);
    }

    62.5% {
        transform: rotate(675deg);
    }

    75% {
        transform: rotate(810deg);
    }

    87.5% {
        transform: rotate(945deg);
    }

    100% {
        transform: rotate(1080deg);
    }
}
