/* Spinner / Loader Logic - Elegant Silver Style */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    width: 100%;
    margin-top: 10px;
}

.progress-bar-wrapper {
    width: 100%;
    max-width: 280px;
    height: 6px;
    /* Slightly thicker for elegance */
    background: rgba(255, 255, 255, 0.1);
    /* Subtle glass track */
    border-radius: 10px;
    /* Fully rounded */
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #cfcfcf, #ffffff);
    /* Silver Gradient */
    width: 0%;
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth easing */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    /* Soft white glow */
}

/* Elegant Text */
.loading-text {
    font-family: 'Inter', sans-serif;
    /* Match App Font */
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 300;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Hide legacy status text */
.status-text.hidden {
    display: none !important;
}

/* Chat Specific Loader Overrides */
.chat-loader-style {
    padding: 10px 15px !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    align-items: flex-start !important;
    /* Align left for chat flow */
    width: auto !important;
    max-width: 220px !important;
    align-self: flex-start;
}

.chat-loader-style .progress-bar-wrapper {
    margin-bottom: 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.chat-loader-style .loading-text {
    font-size: 0.65rem !important;
    opacity: 0.8;
}