@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8fafc;
}

/* Mobile touch improvements */
@media (max-width: 768px) {
    input,
    button,
    select {
        min-height: 44px;
    }

    .mobile-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Smooth animations */
#customModal {
    backdrop-filter: blur(4px);
}

/* Achievement Badge Animations */
@keyframes badgeUnlock {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.badge-unlock {
    animation: badgeUnlock 0.6s ease-out;
}

/* Toast Notifications */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.toast-enter {
    animation: slideInDown 0.3s ease-out forwards;
}

.toast-exit {
    animation: slideOutUp 0.3s ease-in forwards;
}

/* Download Protection for Student Evidence Images */
.no-download {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    -webkit-touch-callout: none;
}

/* Additional image protection */
img[data-protected="true"] {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .no-print {
        display: none !important;
    }

    @page {
        margin: 1cm;
    }
}

/* Activity feed type chips */
.activity-type-chip {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.activity-type-chip:hover {
    background-color: #e0e7ff;
    border-color: #a5b4fc;
    color: #4338ca;
}

.activity-chip-active {
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
}

/* Skill card highlight glow (used when navigating from activity feed) */
@keyframes skillGlowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7), 0 0 0 0 rgba(99, 102, 241, 0.4);
        border-color: #6366f1;
    }

    40% {
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.25), 0 0 20px 4px rgba(99, 102, 241, 0.3);
        border-color: #6366f1;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0), 0 0 0 0 rgba(99, 102, 241, 0);
        border-color: #6366f1;
    }
}

.skill-highlight-glow {
    animation: skillGlowPulse 0.7s ease-out 3;
    border-color: #6366f1 !important;
}
