/* Анимация пульсации */
@keyframes skeleton-loading {
    0% {
        background-color: rgba(255, 255, 255, 0.05);
    }

    50% {
        background-color: rgba(255, 255, 255, 0.12);
    }

    100% {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

.skeleton {
    animation: skeleton-loading 1.5s infinite ease-in-out;
    border-radius: 8px;
    display: block;
}

/* Примеры блоков скелетона */
.skeleton-title {
    width: 60%;
    height: 28px;
    margin-bottom: 15px;
}

.skeleton-text {
    width: 100%;
    height: 16px;
    margin-bottom: 10px;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    margin: 20px 0;
}

/* Прячем контент, пока идет загрузка */
.hidden {
    display: none !important;
}

.skeleton-shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px;
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

/* Точные размеры под твою верстку */
.skeleton-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.skeleton-text-title {
    width: 120px;
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-text-sub {
    width: 80px;
    height: 10px;
}

.skeleton-button {
    width: 85px;
    height: 32px;
    border-radius: 8px;
}

.device-item-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}