/* Shared Animations for QuickMarkr */

/* Card Animations */
.card-enter {
    animation: card-enter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-exit {
    animation: card-exit 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes card-exit {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
}

/* Glass Card Effects */
.glass-card {
    background: rgba(15, 20, 25, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(100, 254, 217, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(100, 254, 217, 0.1);
    border-color: rgba(100, 254, 217, 0.2);
}

/* Counter Animations */
.counter-animate {
    animation: counter-pop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes counter-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chart Hover Effects */
.chart-container {
    position: relative;
    transition: transform 0.3s ease;
}

.chart-container:hover {
    transform: scale(1.02);
}

.chart-container::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, transparent, rgba(100, 254, 217, 0.1), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-container:hover::after {
    opacity: 1;
}

/* Button Loading Animation */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    right: 1rem;
    border: 2px solid rgba(100, 254, 217, 0.3);
    border-top: 2px solid #64FED9;
    border-radius: 50%;
    animation: button-spinner 0.8s linear infinite;
}

@keyframes button-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Table Row Animations */
.table-row-enter {
    animation: table-row-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes table-row-enter {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Progress Bar Animation */
.progress-bar {
    position: relative;
    height: 8px;
    border-radius: 4px;
    background: rgba(100, 254, 217, 0.1);
    overflow: hidden;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #64FED9, #4EE0C0);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Notification Animation */
.notification-enter {
    animation: notification-enter 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes notification-enter {
    from {
        transform: translateX(100%) scale(0.5);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Badge Animation */
.badge-pulse {
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(100, 254, 217, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(100, 254, 217, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(100, 254, 217, 0);
    }
}

/* Stat Card Hover */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(10deg);
}

.stat-icon {
    transition: transform 0.3s ease;
}