@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins',sans-serif;
    background:#0f172a;
    color:white;
    min-height:100vh;
    padding:20px;
}

.container{
    max-width:1400px;
    margin:auto;
}

.top-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    flex-wrap:wrap;
    gap:15px;
}

.top-bar h1{
    font-size:32px;
    font-weight:600;
}

#searchInput{
    padding:12px 20px;
    width:300px;
    border:none;
    border-radius:12px;
    background:rgba(255,255,255,0.08);
    color:white;
    outline:none;
    backdrop-filter:blur(10px);
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-bottom:30px;
}

.stat-card{
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.1);
    padding:25px;
    border-radius:20px;
    backdrop-filter:blur(20px);
    transition:0.3s;
}

.stat-card:hover{
    transform:translateY(-5px);
}

.stat-card h2{
    font-size:36px;
    margin-bottom:10px;
}

.buy-card{
    border-left:5px solid #22c55e;
}

.sell-card{
    border-left:5px solid #ef4444;
}

.filters{
    margin-bottom:25px;
    display:flex;
    gap:10px;
}

.filter-btn{
    padding:10px 20px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
    background:#1e293b;
    color:white;
    transition:0.3s;
}

.filter-btn.active{
    background:#3b82f6;
}

.filter-btn.buy{
    background:#16a34a;
}

.filter-btn.sell{
    background:#dc2626;
}

.alerts-container{
    display:grid;
    gap:20px;
}

.alert-card{
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:20px;
    padding:20px;
    backdrop-filter:blur(20px);
    transition:0.3s;
    animation:fadeIn 0.5s ease;
}

.alert-card:hover{
    transform:translateY(-4px);
}

.badge{
    display:inline-block;
    padding:6px 14px;
    border-radius:50px;
    font-size:12px;
    font-weight:600;
}

.buy-badge{
    background:#16a34a;
}

.sell-badge{
    background:#dc2626;
}

.info-badge{
    background:#334155;
}

.alert-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
    margin-top:20px;
}

.alert-item{
    background:#111827;
    padding:12px;
    border-radius:12px;
}

.alert-item h4{
    font-size:13px;
    color:#94a3b8;
    margin-bottom:8px;
}

.alert-item p{
    font-size:14px;
    word-break:break-word;
}

.raw-json{
    max-height:150px;
    overflow:auto;
    background:#020617;
    padding:15px;
    border-radius:12px;
    margin-top:15px;
    font-size:12px;
}

.loader{
    width:50px;
    height:50px;
    border:5px solid rgba(255,255,255,0.1);
    border-top:5px solid #3b82f6;
    border-radius:50%;
    animation:spin 1s linear infinite;
    margin:50px auto;
    display:none;
}

.empty-state{
    text-align:center;
    padding:80px 20px;
    color:#94a3b8;
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:768px){

    .top-bar{
        flex-direction:column;
        align-items:flex-start;
    }

    #searchInput{
        width:100%;
    }

}




























.table-wrapper{
    width:100%;
    overflow-x:auto;
    margin-top:20px;
}

.alerts-table{
    width:100%;
    border-collapse:collapse;
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(10px);
    border-radius:16px;
    overflow:hidden;
}

.alerts-table thead{
    background:#1e293b;
}

.alerts-table th{
    padding:15px;
    text-align:left;
    font-size:14px;
    color:#cbd5e1;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.alerts-table td{
    padding:14px;
    font-size:14px;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.alerts-table tr:hover{
    background:rgba(255,255,255,0.04);
}

.buy-text{
    color:#22c55e;
    font-weight:600;
}

.sell-text{
    color:#ef4444;
    font-weight:600;
}