/* TN CS Movement - SVG Icons & Animations */

/* ========== BASE ICON STYLES ========== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.icon-sm {
    font-size: 1rem;
}

.icon-md {
    font-size: 1.25rem;
}

.icon-lg {
    font-size: 1.5rem;
}

.icon-xl {
    font-size: 2rem;
}

.icon-2xl {
    font-size: 2.5rem;
}

/* ========== ICON ANIMATIONS ========== */
@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes iconShake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes iconGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 2px currentColor);
    }

    50% {
        filter: drop-shadow(0 0 8px currentColor);
    }
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

.icon-bounce {
    animation: iconBounce 1.5s ease-in-out infinite;
}

.icon-shake {
    animation: iconShake 0.5s ease-in-out;
}

.icon-float {
    animation: iconFloat 3s ease-in-out infinite;
}

.icon-glow {
    animation: iconGlow 2s ease-in-out infinite;
}

.icon-spin {
    animation: iconSpin 1s linear infinite;
}

/* Hover animations */
.icon-hover-scale:hover {
    transform: scale(1.2);
}

.icon-hover-rotate:hover {
    transform: rotate(15deg);
}

.icon-hover-bounce:hover {
    animation: iconBounce 0.5s ease;
}

/* ========== SVG ICON DEFINITIONS ========== */
/* These are embedded inline in HTML, here are the styles for icon containers */

.feature-icon-svg {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--gray-100);
    transition: all 0.3s ease;
    color: var(--primary);
}

.feature-icon-svg svg {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-svg {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon-svg svg {
    fill: white;
}

/* Stat card icons */
.stat-icon-svg {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-svg svg {
    width: 24px;
    height: 24px;
}

.stat-icon-svg.total {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
}

.stat-icon-svg.students {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

.stat-icon-svg.teachers {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.stat-icon-svg.today {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
}

/* Button icons */
.btn-icon-svg {
    width: 1.25em;
    height: 1.25em;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon-svg {
    transform: scale(1.1);
}

/* Section badge icons */
.badge-icon-svg {
    width: 1em;
    height: 1em;
    margin-right: 0.375rem;
}

/* Gallery zoom icon */
.gallery-zoom-svg {
    width: 2.5rem;
    height: 2.5rem;
    color: white;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-zoom-svg {
    transform: scale(1);
}

/* Nav logo */
.nav-logo-svg {
    width: 36px;
    height: 36px;
    margin-right: 0.5rem;
}

/* Admin logo */
.admin-logo-svg {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
}

/* Form field icons */
.form-icon-svg {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.375rem;
    opacity: 0.7;
}

/* Card header icons */
.card-header-icon-svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
}