/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(3deg);
    }
    66% {
        transform: translateY(10px) rotate(-3deg);
    }
}

/* Анимации для уведомлений */
.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--surface);
    color: var(--on-surface);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border: 1px solid var(--outline-variant);
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification i {
    color: var(--primary);
    font-size: 20px;
}

/* Анимации для alert */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.alert-box {
    background: var(--surface);
    padding: 2px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
}

.alert-box.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.alert-content {
    padding: 30px;
    text-align: center;
}

.alert-content p {
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 1.5;
}

.alert-ok {
    min-width: 120px;
}

/* Анимация переключения темы */
body {
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.header {
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Анимация для мобильного меню */
.mobile-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
