/* ═══════════════════════════════════════════════
   GLOBAL ANIMATIONS (Final Safe Version)
   ═══════════════════════════════════════════════ */

/* انیمیشن ورود نرم */
@keyframes fadeUpAnim {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.card, .menu-item, .book-card, .news-card, .info-card, .birthday-card, .welcome-card, .form-section, .stat-card, .org-card, .list-card, .ticket-card, .faq-item, .day-box, .assignment-card, .exam-card, .report-card, .absence-card, .student-item {
    animation: fadeUpAnim 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* شناوری ملایم آیکون‌ها */
@keyframes floatIconSmooth {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.menu-item .icon, .stat-card .icon, .info-icon, .org-avatar, .birthday-icon {
    animation: floatIconSmooth 4s ease-in-out infinite;
}

/* درخشش ملایم دکمه‌ها */
@keyframes glowPulseSmooth {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2); }
    50% { box-shadow: 0 0 15px 2px rgba(37, 99, 235, 0.1); }
}
.btn--primary, .btn-submit, .fab, .btn-save, .support-fab {
    animation: glowPulseSmooth 3s infinite;
}

/* پس‌زمینه متحرک هدرها */
@keyframes heroBgAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.page-hero, .welcome-card, .carousel {
    background-size: 200% 200% !important;
    animation: heroBgAnim 12s ease infinite;
}

/* افکت هاور بسیار نرم برای کارت‌ها */
.menu-item, .book-card, .news-card, .org-card, .list-card {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    will-change: transform, box-shadow;
}
.menu-item:hover, .book-card:hover, .news-card:hover, .org-card:hover, .list-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px -8px rgba(0,0,0,0.1) !important;
}

/* رفع مشکل خط زیر لینک‌ها */
a { text-decoration: none !important; }

/* 🌟 استایل استیکی برای هدر پنل‌ها */
.app-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
}

/* 🌟 تنظیمات اسکرول برای پیام‌رسان */
body.chat-open {
    overflow: hidden !important;
}