﻿/* ==========================================
   DOCUCOGNITO.AI - GLOBAL & LOADER STYLES
   ========================================== */

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #f8fafc;
    color: #0f172a;
    font-family: sans-serif;
    overflow: hidden;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    html.dark, html.dark body {
        background-color: #0b0f19;
        color: #f8fafc;
    }

#app {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: inherit;
}

.loader-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    position: relative;
    background-color: inherit;
}

.loading-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

    .loading-progress circle {
        stroke: #0046CE !important;
        transition: stroke 0.4s ease;
    }

html.dark .loading-progress circle {
    stroke: #00A6FF !important;
}

.logo-loader {
    width: 250px;
    max-width: 60vw;
    height: auto;
    animation: softBreathe 3s infinite ease-in-out;
    will-change: transform, opacity;
    z-index: 2;
}

html.dark #logo-img .logo-text {
    fill: #ffffff !important;
}

html:not(.dark) #logo-img .logo-text {
    fill: url(#text-gradient-light) !important;
}

@keyframes softBreathe {
    0% {
        transform: scale(0.97);
        opacity: 0.75;
    }

    50% {
        transform: scale(1.03);
        opacity: 1;
    }

    100% {
        transform: scale(0.97);
        opacity: 0.75;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slideInRight 0.35s ease-out;
}

.loading-bar-container {
    width: 200px;
    height: 8px;
    background-color: #e0e7ff;
    border-radius: 9999px;
    overflow: hidden;
    margin: -45px auto 0 auto;
    position: relative;
}

.dark .loading-bar-container {
    background-color: #312e81;
}

.loading-bar-indicator {
    position: absolute;
    height: 100%;
    background-color: #4f46e5;
    border-radius: 9999px;
    animation: indeterminate-loading 1.5s infinite ease-in-out;
}

.dark .loading-bar-indicator {
    background-color: #818cf8;
}

@keyframes indeterminate-loading {
    0% {
        left: -35%;
        width: 30%;
    }

    50% {
        left: 30%;
        width: 50%;
    }

    100% {
        left: 100%;
        width: 30%;
    }
}
