/* ===== Mini Loader (Daily Rate Style) ===== */

.mini-loading-screen {
    position: relative;
    width: 100%;
    min-height: 50vh;
    backdrop-filter: blur(10px) brightness(0.6);
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: var(--global-font);
    font-size: var(--text-large);
    color: var(--secondary-color);
    z-index: 9999;
    animation: fadeIn 0.3s ease forwards;
}

/* Spinner */
.mini-loading-screen .loading-ring {
    position: absolute;
    top: calc(50% - 40px);
    left: calc(50% - 40px);
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* Icon inside spinner */
.mini-loading-screen .loader-icon {
    font-size: 34px;
    color: var(--secondary-color);
    animation: pulse 1.5s infinite ease-in-out;
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding-bottom: 1em;
}

/* Loading text */
.mini-loading-screen .loading-text {
    font-size: var(--text-normal);
    font-weight: 600;
    letter-spacing: 1px;
    animation: textFade 2s infinite;
    position: absolute;
    top: calc(50% + 55px);
    color: var(--secondary-color);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes textFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}
