﻿/* --- КЛЮЧЕВЫЕ КАДРЫ АНИМАЦИИ --- */
@keyframes gridScan {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}
@keyframes panelFadeIn {
    0% { opacity: 0; transform: scale(0.6) rotateX(45deg) rotateY(45deg) translateZ(-100px); } /* Начальное состояние: меньше, повернуто, дальше */
    50% { opacity: 0.7; transform: scale(1) rotateX(0deg) rotateY(0deg) translateZ(0px); } /* Середина: нормальный размер, без поворота, на уровне */
    100% { opacity: 0; transform: scale(1.2) rotateX(-45deg) rotateY(-45deg) translateZ(100px); } /* Конец: больше, повернуто, ближе */
}
@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(42, 93, 138, 0.4); }
    50% { box-shadow: 0 0 25px rgba(42, 93, 138, 0.8); }
}
@keyframes hoverPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* --- КОНТЕЙНЕР АНИМАЦИИ (ОСНОВА) --- */
.reports-animation-container {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: #f0f2f5; /* Светлый фон, как у современного UI */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 800px; /* Для легкого 3D эффекта */
    background-image: linear-gradient(0deg, transparent 9%, rgba(0, 0, 0, 0.05) 10%, rgba(0, 0, 0, 0.05) 11%, transparent 12%, transparent 89%, rgba(0, 0, 0, 0.05) 90%, rgba(0, 0, 0, 0.05) 91%, transparent 92%), linear-gradient(90deg, transparent 9%, rgba(0, 0, 0, 0.05) 10%, rgba(0, 0, 0, 0.05) 11%, transparent 12%, transparent 89%, rgba(0, 0, 0, 0.05) 90%, rgba(0, 0, 0, 0.05) 91%, transparent 92%);
    background-size: 50px 50px; /* Размер ячейки сетки */
    animation: gridScan 40s linear infinite; /* Медленный скан по сетке */
}

/* --- ЦЕНТРАЛЬНЫЙ БЛОК ДАННЫХ/ПОЛЬЗОВАТЕЛЯ --- */
.abstract-data-core-link {
    display: flex; /* Сделаем ссылку flex-контейнером */
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    background: rgba(42, 93, 138, 0.8); /* Основной цвет */
    border-radius: 15px; /* Скругленные углы, как у UI элемента */
    position: relative;
    color: white;
    font-size: 24px;
    font-weight: bold;
    animation: highlightPulse 3s ease-in-out infinite; /* Пульсирующее свечение */
    z-index: 10;
    text-decoration: none; /* Убираем подчеркивание у ссылки */
    cursor: pointer;
    transition: all 0.3s ease; /* Плавный переход для эффектов */
}
/* Эффект при наведении на центральный блок */
.abstract-data-core-link:hover {
    background: rgba(1e, 45, 66, 0.9); /* Темнее при наведении */
    animation: none; /* Отключаем пульс, чтобы не конфликтовал с hoverPulse */
    transform: scale(1.05); /* Легкое увеличение */
    box-shadow: 0 0 30px rgba(42, 93, 138, 0.9);
}
.abstract-data-core-link::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.abstract-data-core-link:hover::before {
    border-color: rgba(255, 255, 255, 0.6); /* Бордер становится ярче при наведении */
}

/* Стили для иконки */
.abstract-data-core-link .account-icon {
    font-size: 55px; /* Размер иконки */
    line-height: 1; /* Чтобы иконка не влияла на высоту строки */
    color: white;
    transition: color 0.3s ease;
}
.abstract-data-core-link:hover .account-icon {
    color: #f0f2f5; /* Слегка меняем цвет иконки при наведении */
}

/* --- ЛЕТАЮЩИЕ ПАНЕЛИ/ОКНА (Имитация графиков/виджетов) --- */
.data-panel {
    position: absolute;
    background: rgba(100, 149, 237, 0.1); /* Прозрачный синий */
    border: 1px solid rgba(100, 149, 237, 0.3);
    border-radius: 5px;
    opacity: 0; /* <-- Изначально невидимый */
    animation: panelFadeIn 8s ease-in-out infinite alternate;
    z-index: 5;
    transform-style: preserve-3d;
}

/* Размеры и позиции отдельных панелей с начальными трансформациями */
/* Новые и измененные блоки */
.data-panel:nth-child(1) { width: 80px; height: 50px; top: 15%; left: 8%; animation-delay: 0s; transform: rotateX(15deg) rotateY(-10deg) translateZ(-20px); }
.data-panel:nth-child(2) { width: 60px; height: 70px; top: 10%; right: 12%; animation-delay: 2s; animation-duration: 9s; transform: rotateX(-20deg) rotateY(15deg) translateZ(10px); }
.data-panel:nth-child(3) { width: 90px; height: 40px; bottom: 8%; left: 20%; animation-delay: 4s; animation-duration: 7s; transform: rotateX(25deg) rotateY(5deg) translateZ(-5px); }
.data-panel:nth-child(4) { width: 50px; height: 50px; bottom: 15%; right: 7%; animation-delay: 6s; animation-duration: 10s; transform: rotateX(-10deg) rotateY(-20deg) translateZ(25px); }
.data-panel:nth-child(5) { width: 70px; height: 60px; top: 35%; left: 40%; animation-delay: 1s; animation-duration: 8.5s; transform: rotateX(5deg) rotateY(25deg) translateZ(-15px); }
.data-panel:nth-child(6) { width: 45px; height: 45px; top: 5%; left: 45%; animation-delay: 7s; animation-duration: 6s; transform: rotateX(30deg) rotateY(-5deg) translateZ(-30px); }
.data-panel:nth-child(7) { width: 100px; height: 30px; bottom: 5%; right: 25%; animation-delay: 3s; animation-duration: 9.5s; transform: rotateX(-15deg) rotateY(-10deg) translateZ(5px); }
.data-panel:nth-child(8) { width: 55px; height: 75px; top: 25%; right: 5%; animation-delay: 5s; animation-duration: 8s; transform: rotateX(10deg) rotateY(30deg) translateZ(-10px); }
.data-panel:nth-child(9) { width: 85px; height: 60px; top: 60%; left: 15%; animation-delay: 8s; animation-duration: 7.5s; transform: rotateX(-5deg) rotateY(-25deg) translateZ(20px); }
.data-panel:nth-child(10) { width: 70px; height: 40px; bottom: 25%; left: 5%; animation-delay: 1.5s; animation-duration: 10.5s; transform: rotateX(20deg) rotateY(10deg) translateZ(-8px); }
.data-panel:nth-child(11) { width: 65px; height: 85px; top: 50%; right: 20%; animation-delay: 9s; animation-duration: 7s; transform: rotateX(-25deg) rotateY(-15deg) translateZ(18px); }
.data-panel:nth-child(12) { width: 95px; height: 55px; top: 5%; left: 70%; animation-delay: 0.5s; animation-duration: 11s; transform: rotateX(10deg) rotateY(20deg) translateZ(-22px); }
.data-panel:nth-child(13) { width: 50px; height: 50px; bottom: 30%; right: 40%; animation-delay: 4.5s; animation-duration: 6.5s; transform: rotateX(-5deg) rotateY(5deg) translateZ(12px); }
.data-panel:nth-child(14) { width: 75px; height: 35px; top: 70%; left: 50%; animation-delay: 2.5s; animation-duration: 9s; transform: rotateX(15deg) rotateY(-5deg) translateZ(-10px); }
.data-panel:nth-child(15) { width: 40px; height: 60px; top: 20%; left: 60%; animation-delay: 10s; animation-duration: 8s; transform: rotateX(-10deg) rotateY(10deg) translateZ(7px); }
