/* Whale Tracker - Custom Styles */

/* Base animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-gold {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(245, 158, 11, 0.2);
    }
}

/* New row animation */
.whale-row-new {
    animation: slideIn 0.5s ease-out;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
}

/* Large transfer highlight */
.whale-row-large {
    animation: pulse-gold 2s ease-in-out;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, transparent 100%);
}

/* Exchange flow indicators */
.flow-inflow {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.flow-outflow {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.flow-unknown {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

/* Coin badges */
.coin-btc {
    background: linear-gradient(135deg, #f7931a20, #f7931a10);
    color: #f7931a;
    border-color: #f7931a40;
}

.coin-eth {
    background: linear-gradient(135deg, #627eea20, #627eea10);
    color: #627eea;
    border-color: #627eea40;
}

.coin-bnb {
    background: linear-gradient(135deg, #f3ba2f20, #f3ba2f10);
    color: #f3ba2f;
    border-color: #f3ba2f40;
}

.coin-trx {
    background: linear-gradient(135deg, #ff060620, #ff060610);
    color: #ff4d4d;
    border-color: #ff060640;
}

.coin-usdt {
    background: linear-gradient(135deg, #26a17b20, #26a17b10);
    color: #26a17b;
    border-color: #26a17b40;
}

.coin-xrp {
    background: linear-gradient(135deg, #23292f20, #23292f10);
    color: #9ca3af;
    border-color: #23292f40;
}

.coin-default {
    background: linear-gradient(135deg, #3b82f620, #3b82f610);
    color: #3b82f6;
    border-color: #3b82f640;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Table hover */
#whale-table tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* Address truncation */
.address-cell {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive mobile filters */
@media (max-width: 768px) {
    .mobile-filters {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        background: #1e293b;
        border-bottom: 1px solid #334155;
    }
}

/* Loading shimmer */
.shimmer {
    background: linear-gradient(90deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    pointer-events: auto;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid #334155;
    border-left: 4px solid #3b82f6;
    padding: 16px;
    border-radius: 8px;
    color: white;
    min-width: 300px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-notification.toast-alert {
    border-left-color: #ef4444;
}

.toast-notification.toast-success {
    border-left-color: #10b981;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}