/* Custom styles for Dynamo Spot Dashboard */

/* Smooth transitions for interactive elements */
.transition-all {
    transition: all 0.2s ease-in-out;
}

/* Custom scrollbar for tables */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Enhanced card hover effects */
.card-hover {
    transition:
        transform 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 25px -5px rgb(0 0 0 / 10%),
        0 10px 10px -5px rgb(0 0 0 / 4%);
}

/* Pulse animation for live data indicator */
@keyframes pulse-soft {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

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

/* Price movement animations */
.price-up {
    color: #10b981;
    animation: flash-green 0.5s ease-in-out;
}

.price-down {
    color: #ef4444;
    animation: flash-red 0.5s ease-in-out;
}

@keyframes flash-green {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: rgb(16 185 129 / 20%);
    }

    100% {
        background-color: transparent;
    }
}

@keyframes flash-red {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: rgb(239 68 68 / 20%);
    }

    100% {
        background-color: transparent;
    }
}

/* Order book depth visualization */
.bid-depth {
    background: linear-gradient(
        to right,
        rgb(16 185 129 / 10%) 0%,
        transparent 100%
    );
}

.ask-depth {
    background: linear-gradient(
        to left,
        rgb(239 68 68 / 10%) 0%,
        transparent 100%
    );
}

/* Chart container enhancements */
.chart-container {
    position: relative;
    background: white;
    border-radius: 0.5rem;
    box-shadow:
        0 1px 3px 0 rgb(0 0 0 / 10%),
        0 1px 2px 0 rgb(0 0 0 / 6%);
}

/* Status indicator styles */
.status-active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Responsive text adjustments */
@media (width <= 640px) {
    .text-responsive-sm {
        font-size: 0.875rem;
    }

    .text-responsive-base {
        font-size: 1rem;
    }

    .text-responsive-lg {
        font-size: 1.125rem;
    }
}

/* Enhanced table styles */
.table-hover tbody tr {
    transition: background-color 0.15s ease-in-out;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Header gradient */
.header-gradient {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

/* Chart legend enhancements */
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Dashboard grid enhancements */
.dashboard-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (width >= 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility classes for market data */
.hash-rate-high {
    color: #059669;
    font-weight: 600;
}

.hash-rate-low {
    color: #dc2626;
    font-weight: 600;
}

.volume-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.volume-high {
    background-color: #10b981;
}

.volume-medium {
    background-color: #f59e0b;
}

.volume-low {
    background-color: #ef4444;
}
