body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(-45deg, #0f172a, #1a2a47, #0f172a, #25395a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Эффект матового стекла для карточки входа */
.frosted-glass {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(30, 41, 59, 0.5);
}

/* Анимация для кнопок */
.btn-animation {
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-animation:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.btn-animation:active {
    transform: translateY(0);
}

.btn-animation::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.5s, opacity 0.5s;
}

/* Анимация волны при нажатии на кнопку */
.btn-animation:active::after {
    width: 200px;
    height: 200px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
}

/* Анимация для полей ввода */
.input-animation:focus {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Chart specific styles */
.chart-line {
    stroke: url(#lineGradient);
    stroke-width: 3;
    fill: url(#areaGradient);
}
.chart-line-2 {
    stroke: url(#lineGradient2);
    stroke-width: 3;
    fill: url(#areaGradient2);
}

/* Стили для задвижной боковой панели */
.sidebar {
    transition: transform 0.3s ease-in-out;
    transform: translateX(-14rem); /* Скрываем, оставляя 2rem видимыми */
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 50;
    width: 16rem;
}
.sidebar-visible .sidebar {
    transform: translateX(0); /* Выдвигаем при наведении */
}
.main-content {
    transition: margin-left 0.3s ease-in-out;
    margin-left: 0; /* Основное содержимое занимает всю ширину по умолчанию */
}
.sidebar-visible .main-content {
    margin-left: 16rem; /* Сдвигаем содержимое при выдвижении панели */
}