/* ===================================
   LOADING SCREEN STYLES - Professional Edition
   =================================== */

/* Loading Overlay - covers entire viewport */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Dark theme loading overlay */
.dark-theme .loading-overlay,
body.dark-theme .loading-overlay {
    background: #1e1e1e !important;
}

/* Dark theme text colors */
.dark-theme .brand-title,
body.dark-theme .brand-title {
    color: #e4e4e4 !important;
}

.dark-theme .brand-subtitle,
body.dark-theme .brand-subtitle {
    color: #569cd6 !important;
}

.dark-theme .brand-description,
body.dark-theme .brand-description {
    color: #9d9d9d !important;
}

.dark-theme .loading-text,
body.dark-theme .loading-text {
    color: #cccccc !important;
}

.dark-theme .percentage-value,
.dark-theme .percentage-symbol,
body.dark-theme .percentage-value,
body.dark-theme .percentage-symbol {
    color: #e4e4e4 !important;
}

.dark-theme .progress-background,
body.dark-theme .progress-background {
    stroke: #3c3c3c !important;
}

.dark-theme .progress-bar,
body.dark-theme .progress-bar {
    stroke: #569cd6 !important;
}

/* Loading Container */
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-primary);
    text-align: center;
    padding: 2rem;
}

/* No decorative background - solid colors only */

/* Brand Section */
.loading-brand {
    text-align: center;
    margin-bottom: 3rem;
    z-index: 1;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo-icon {
    width: auto;
    height: 80px;
    background: transparent;
    border-radius: 0;
    display: block;
    margin: 0 auto;
    box-shadow: none;
}

.logo-icon i {
    color: white;
    font-size: 2.5rem;
}

.brand-title {
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    margin: 1rem 0 0.5rem 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(44, 62, 80, 0.1);
}

.brand-subtitle {
    font-size: 1.2rem;
    color: #5B5959;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.5px;
}

.brand-description {
    font-size: 0.9rem;
    color: #5B5959;
    margin: 0;
    font-weight: 300;
}

/* Progress Ring */
.loading-progress-modern {
    margin: 2rem 0;
    z-index: 1;
}

.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-background,
.progress-bar {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.progress-background {
    stroke: rgba(44, 62, 80, 0.1);
}

.progress-bar {
    stroke: #000000;
    stroke-dasharray: 251.2;
    stroke-dashoffset: calc(251.2 - (251.2 * var(--blazor-load-percentage, 0)) / 100);
    transition: stroke-dashoffset 0.3s ease;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.percentage-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
}

.percentage-text::after {
    content: var(--blazor-load-percentage-text, "0%");
}

/* Loading Status */
.loading-status {
    text-align: center;
    margin: 2rem 0;
    z-index: 1;
}

.status-text {
    font-size: 1rem;
    color: #5B5959;
    font-weight: 500;
    margin-bottom: 1rem;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000 0%, #1368BC 100%);
    animation: dotPulse 1.5s infinite ease-in-out;
}

.dot1 { animation-delay: 0s; }
.dot2 { animation-delay: 0.2s; }
.dot3 { animation-delay: 0.4s; }

/* Footer */
.loading-footer {
    position: absolute;
    bottom: 2rem;
    text-align: center;
    z-index: 1;
}

.powered-by {
    font-size: 0.85rem;
    color: #5B5959;
    margin: 0;
}

.powered-by strong {
    color: #000000;
    font-weight: 600;
}

/* Animations */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-title {
        font-size: 2.5rem;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

    .logo-icon i {
        font-size: 2rem;
    }

    .progress-ring {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 2rem;
    }

    .brand-description {
        font-size: 0.8rem;
    }
}
