/* Global Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Application Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.5s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.5s ease-out forwards;
}

/* Staggered delays for children */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Interactive Elements */
.btn-pulse:hover {
    animation: pulse 0.5s infinite;
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Table Row Animation */
tbody tr {
    animation: fadeIn 0.4s ease-out forwards;
    opacity: 0; /* Start hidden */
}

tbody tr:nth-child(1) { animation-delay: 0.1s; }
tbody tr:nth-child(2) { animation-delay: 0.15s; }
tbody tr:nth-child(3) { animation-delay: 0.2s; }
tbody tr:nth-child(4) { animation-delay: 0.25s; }
tbody tr:nth-child(5) { animation-delay: 0.3s; }

/* 5-Dot Loader (Shared) */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.dot-container { display: flex; gap: 15px; }
.dot {
    width: 18px; height: 18px; background: #e53935; border-radius: 50%;
    box-shadow: 0 0 8px rgba(229,57,53,0.7);
    animation: blood-bounce 1s infinite ease-in-out; position: relative;
}
.dot:nth-child(1){ animation-delay: 0s; }
.dot:nth-child(2){ animation-delay: 0.1s; }
.dot:nth-child(3){ animation-delay: 0.2s; }
.dot:nth-child(4){ animation-delay: 0.3s; }
.dot:nth-child(5){ animation-delay: 0.4s; }
@keyframes blood-bounce {
    0%, 80%, 100% { transform: scale(0.6,0.6); }
    40% { transform: scale(1.2,1.2); }
}
.dot::after {
    content: ''; position: absolute; bottom: -6px; left: 50%;
    width: 4px; height: 6px; background: #b71c1c; border-radius: 50%;
    transform: translateX(-50%) scaleY(0); animation: blood-drip 1s infinite ease-in-out;
}
.dot:nth-child(1)::after { animation-delay: 0s; }
.dot:nth-child(2)::after { animation-delay: 0.1s; }
.dot:nth-child(3)::after { animation-delay: 0.2s; }
.dot:nth-child(4)::after { animation-delay: 0.3s; }
.dot:nth-child(5)::after { animation-delay: 0.4s; }
@keyframes blood-drip {
    0%, 80%, 100% { transform: translateX(-50%) scaleY(0); opacity:0.6; }
    40% { transform: translateX(-50%) scaleY(1); opacity:1; }
}
