/* ====== KEYFRAME ANIMATIONS ====== */

/* ====== FADE IN ANIMATION ====== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ====== PULSE ANIMATION ====== */
@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0.5; 
    }
}

/* ====== SPIN ANIMATION ====== */
@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

/* ====== SLIDE IN ANIMATION ====== */
@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

/* ====== SLIDE UP ANIMATION ====== */
@keyframes slideUp {
    from { 
        transform: translateY(20px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* ====== BOUNCE ANIMATION ====== */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -10px, 0);
    }
    70% {
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* ====== GLOW ANIMATION ====== */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--accent-primary);
    }
    50% {
        box-shadow: 0 0 20px var(--accent-primary), 0 0 30px var(--accent-primary);
    }
}

/* ====== SHAKE ANIMATION ====== */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* ====== ANIMATION CLASSES ====== */
.fade-in {
    animation: fadeIn 0.3s ease;
}

.pulse {
    animation: pulse 1.5s infinite;
}

.spin {
    animation: spin 0.8s linear infinite;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.3s ease;
}

.bounce {
    animation: bounce 1s ease;
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

.shake {
    animation: shake 0.5s ease;
}

/* ====== HOVER TRANSITIONS ====== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ====== TAB CONTENT ANIMATIONS ====== */
.tab-content.active {
    animation: fadeIn 0.3s ease;
}

/* ====== NOTIFICATION ANIMATIONS ====== */
.notification {
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.error {
    border-left: 4px solid var(--error);
}

.notification.warning {
    border-left: 4px solid var(--warning);
}

/* ====== LOADING STATES ====== */
.loading {
    animation: spin 0.8s linear infinite;
}

.loading-text {
    animation: pulse 1.5s infinite;
}

/* ====== BUTTON ANIMATIONS ====== */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
}

/* ====== FORM INPUT ANIMATIONS ====== */
input:focus, select:focus {
    animation: glow 0.3s ease;
}

/* ====== SEARCH RESULT ANIMATIONS ====== */
.search-result-item {
    transition: all 0.2s ease;
}

.search-result-item:hover {
    transform: translateX(5px);
}

/* ====== TABLE ROW ANIMATIONS ====== */
.csv-table tr {
    transition: background 0.2s ease;
}

/* ====== DELAYED ANIMATIONS ====== */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}
