/* Custom animations and enhancements */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth transitions for all interactive elements */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #2d2d2d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #404040;
}

/* Loading shimmer effect */
.shimmer {
    background: linear-gradient(90deg, #2d2d2d 25%, #404040 50%, #2d2d2d 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Card hover effects */
.bg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Button hover effects */
button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Responsive font sizing */
@media (max-width: 768px) {
    .text-3xl {
        font-size: 1.875rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
}

/* Chart container responsive height */
@media (max-width: 768px) {
    .h-80 {
        height: 16rem;
    }
}

/* Grid responsive adjustments */
@media (max-width: 640px) {
    .grid-cols-1 {
        gap: 1rem;
    }
}

/* Status indicator glow effect */
.bg-positive {
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.5);
}

/* Bitcoin orange glow for emphasis */
.text-bitcoin {
    text-shadow: 0 0 10px rgba(247, 147, 26, 0.3);
}

/* Smooth number transitions */
.font-mono {
    font-variant-numeric: tabular-nums;
}

/* Alert card border animation */
.border-l-4 {
    position: relative;
    overflow: hidden;
}

.border-l-4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(45deg, #F7931A, #FFB84D);
    animation: pulse 3s ease-in-out infinite;
}

/* Loading states */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading * {
    animation: pulse 1.5s ease-in-out infinite;
}