﻿/* ===================================================
   BABYLLONE - GLOBAL PAGE & RESOURCE LOADER
   Barre de progression elegante en haut d'ecran
=================================================== */

#lbc-global-loader-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #e87684, #ff5c7c, #db5665);
    box-shadow: 0 0 10px rgba(232, 118, 132, 0.8), 0 0 5px rgba(255, 92, 124, 0.6);
    z-index: 100000;
    opacity: 0;
    transition: width 0.25s ease, opacity 0.3s ease;
    pointer-events: none;
}

#lbc-global-loader-bar.loading {
    opacity: 1;
}

#lbc-global-loader-bar.complete {
    width: 100% !important;
    opacity: 0;
    transition: width 0.2s ease, opacity 0.4s ease 0.15s;
}

/* Spinner discret en coin superieur droit pendant les requetes */
#lbc-corner-spinner {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(232, 118, 132, 0.25);
    border-top-color: #e87684;
    border-radius: 50%;
    z-index: 100001;
    opacity: 0;
    visibility: hidden;
    animation: lbcSpin 0.75s linear infinite;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#lbc-corner-spinner.active {
    opacity: 1;
    visibility: visible;
}

@keyframes lbcSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================================
   MODALE DE TELEVERSEMENT D'ANNONCE (UPLOAD LOADER)
=================================================== */

#lbc-upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: lbcFadeIn 0.3s ease;
}

.lbc-upload-card {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(232, 118, 132, 0.2);
    animation: lbcCardScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html.theme-dark .lbc-upload-card {
    background: #181b24;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.lbc-upload-icon-box {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    background: rgba(232, 118, 132, 0.12);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lbc-upload-icon-box i {
    font-size: 34px;
    color: #e87684;
    animation: lbcBounce 1.5s ease-in-out infinite;
}

/* Anneau pulsant autour de l'icone */
.lbc-upload-icon-box::before {
    content: "";
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(232, 118, 132, 0.45);
    animation: lbcSpin 8s linear infinite;
}

.lbc-upload-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

html.theme-dark .lbc-upload-title {
    color: #f1f5f9;
}

.lbc-upload-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 22px;
}

html.theme-dark .lbc-upload-desc {
    color: #94a3b8;
}

/* Barre de progression indéterminée */
.lbc-upload-progress-wrapper {
    width: 100%;
    height: 8px;
    background: #f0f2f5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

html.theme-dark .lbc-upload-progress-wrapper {
    background: #282d3c;
}

.lbc-upload-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, #e87684, #ff5c7c, #db5665);
    border-radius: 8px;
    animation: lbcIndeterminate 1.6s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}

.lbc-upload-status {
    font-size: 13px;
    font-weight: 600;
    color: #e87684;
}

@keyframes lbcIndeterminate {
    0% {
        left: -40%;
        width: 40%;
    }
    50% {
        left: 30%;
        width: 60%;
    }
    100% {
        left: 100%;
        width: 40%;
    }
}

@keyframes lbcBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes lbcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lbcCardScale {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

