/* Custom Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slideDown {
    animation: slideDown 0.6s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.animate-slideLeft {
    animation: slideLeft 0.5s ease-out 0.3s both;
}

.animate-slideRight {
    animation: slideRight 0.5s ease-out 0.4s both;
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out both;
}

.animate-fadeInUp:nth-child(4) {
    animation-delay: 0.5s;
}

.animate-fadeInUp:nth-child(5) {
    animation-delay: 0.6s;
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-scale-small {
    transition: transform 0.2s ease;
}

.hover-scale-small:hover {
    transform: scale(1.02);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

.hover-lift-small {
    transition: transform 0.3s ease;
}

.hover-lift-small:hover {
    transform: translateY(-3px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
    min-width: 200px;
    z-index: 50;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.mobile-menu a:hover {
    background-color: #f3f4f6;
    color: #4f46e5;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #6366f1, #9333ea);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #4f46e5, #7e22ce);
}

/* Responsive Table */
@media (max-width: 640px) {
    table {
        font-size: 0.875rem;
    }
}

/* Input Focus States */
input:focus {
    outline: none;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Fade In Animation for Table Rows */
@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.table-row-animate {
    animation: fadeInRow 0.3s ease-out both;
}

/* Stagger animation delays */
.table-row-animate:nth-child(1) { animation-delay: 0.05s; }
.table-row-animate:nth-child(2) { animation-delay: 0.10s; }
.table-row-animate:nth-child(3) { animation-delay: 0.15s; }
.table-row-animate:nth-child(4) { animation-delay: 0.20s; }
.table-row-animate:nth-child(5) { animation-delay: 0.25s; }
.table-row-animate:nth-child(6) { animation-delay: 0.30s; }
.table-row-animate:nth-child(7) { animation-delay: 0.35s; }
.table-row-animate:nth-child(8) { animation-delay: 0.40s; }
.table-row-animate:nth-child(9) { animation-delay: 0.45s; }
.table-row-animate:nth-child(10) { animation-delay: 0.50s; }
.table-row-animate:nth-child(11) { animation-delay: 0.55s; }
.table-row-animate:nth-child(12) { animation-delay: 0.60s; }

/* Gradient Text Support for older browsers */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Print Styles */
@media print {
    header, footer, .no-print {
        display: none;
    }
    
    body {
        background: white;
    }
}
