/**
 * Кастомное окно загрузки TamicAdmin
 * Показывается при любых загрузках на сайте
 */

/* Контейнер окна загрузки */
#tamicSplash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 99999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#tamicSplash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Логотип с загрузкой вокруг */
.tamic-splash-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Логотип в центре */
.tamic-splash-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    position: absolute;
    z-index: 1;
}

/* Крутящаяся загрузка вокруг */
.tamic-splash-loader {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 5px solid rgba(220, 53, 69, 0.2);
    border-top-color: #dc3545;
    border-radius: 50%;
    z-index: 2;
    animation: tamicSpin 2s linear infinite; /* 2 секунды на оборот */
}

@keyframes tamicSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Название */
.tamic-splash-text {
    margin-top: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 42px;
    font-weight: bold;
    color: #dc3545;
    letter-spacing: 2px;
    text-align: center;
}

/* Адаптивность для мобильных */
@media (max-width: 576px) {
    .tamic-splash-container {
        width: 160px;
        height: 160px;
    }
    
    .tamic-splash-logo {
        width: 120px;
        height: 120px;
    }
    
    .tamic-splash-loader {
        width: 160px;
        height: 160px;
        border-width: 4px;
    }
    
    .tamic-splash-text {
        font-size: 32px;
        margin-top: 30px;
    }
}
