/* ==========================================================================
   UI KIT: LOADERS (Спинъри, Скелети и Овърлей)
   ========================================================================== */

/* 1. СПИНЪР АНИМАЦИЯ */
@keyframes aopc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.aopc-spinner {
    animation: aopc-spin 1s linear infinite;
    display: inline-block;
    line-height: 0;
}

/* 2. SKELETON LOADER (Пулсиращи кутии) */
@keyframes aopc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.aopc-skeleton {
    background-color: var(--fiptec-slate-200);
    border-radius: 6px;
    animation: aopc-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Специфични форми на скелета */
.aopc-skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}
.aopc-skeleton-text:last-child { margin-bottom: 0; }

.aopc-skeleton-circle {
    border-radius: 50%;
}

.aopc-skeleton-image {
    width: 100%;
    height: 100%;
    border-radius: var(--fiptec-radius-global, 14px);
}

/* 3. OVERLAY LOADER (Блокиращ слой) */
.aopc-overlay-loader {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: var(--z-elevated, 10);
    border-radius: inherit; /* Взима заоблянето на родителя */
    gap: 10px;
}

.aopc-overlay-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--fiptec-slate-700);
}