/* Liquidation Radar Styles */
.liquidation-radar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #4a90e2;
    border-radius: 15px;
    padding: 20px;
    color: #e3e3e3;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.15);
    position: relative;
    overflow: hidden;
    height: 350px; /* Fixed height */
}

.radar-content {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

.radar-content::-webkit-scrollbar {
    width: 6px;
}

.radar-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.radar-content::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 226, 0.5);
    border-radius: 3px;
}

.radar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 144, 226, 0.8);
}

.liquidation-radar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    animation: radarSweep 3s infinite;
}

@keyframes radarSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.radar-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    z-index: 2;
    position: relative;
}

.radar-icon {
    font-size: 14px;
    margin-right: 8px;
    color: #4a90e2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.radar-title {
    font-size: 13px;
    font-weight: bold;
    color: #4a90e2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.radar-status {
    margin-left: auto;
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.radar-grid {
    display: grid;
    gap: 12px;
    z-index: 2;
    position: relative;
}

.radar-coin {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.radar-coin:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4a90e2;
    transform: translateY(-2px);
}

.coin-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.coin-symbol {
    font-size: 16px;
    font-weight: bold;
    color: #ffa726;
    margin-right: 10px;
}

.coin-amount {
    font-size: 12px;
    color: #888;
    margin-left: auto;
}

.pressure-section {
    margin-bottom: 8px;
}

.pressure-label {
    font-size: 11px;
    color: #bbb;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pressure-delta {
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.pressure-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.pressure-fill {
    height: 100%;
    transition: width 0.5s ease;
    position: relative;
}

.pressure-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

.long-pressure .pressure-fill {
    background: linear-gradient(90deg, #ff4444, #ff6666);
}

.short-pressure .pressure-fill {
    background: linear-gradient(90deg, #00aa44, #00cc55);
}

.pressure-value {
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    text-align: right;
    margin-top: 2px;
}

.radar-loading {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.loading-spinner {
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-top: 2px solid #4a90e2;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.radar-error {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .liquidation-radar {
        padding: 15px;
    }
    
    .radar-grid {
        gap: 10px;
    }
    
    .radar-coin {
        padding: 12px;
    }
    
    .coin-symbol {
        font-size: 14px;
    }
}