:root {
    --bg: #030712; /* Lebih gelap agar gradien terlihat */
    --card: rgba(30, 41, 59, 0.7); /* Transparan untuk efek Glassmorphism */
    --accent: #38bdf8;
    --green: #22c55e;
    --red: #ef4444;
}

body {
    background: var(--bg);
    /* Background Glow Effects */
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.07) 0%, transparent 35%),
        radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.07) 0%, transparent 35%);
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container { max-width: 1000px; margin: 0 auto; }

header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.app-title { font-size: 1.5rem; font-weight: 800; }
.accent { color: var(--accent); }

.search-box {
    background: var(--card);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #334155;
    display: flex; align-items: center; width: 100%; max-width: 300px;
}
.search-box input { background: transparent; border: none; color: #fff; margin-left: 10px; outline: none; width: 100%; }

.table-container { 
    background: var(--card); 
    backdrop-filter: blur(12px); /* Efek kaca */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px; 
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

table { width: 100%; border-collapse: collapse; min-width: 600px; }
tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
    transition: 0.2s;
}
th { background: #0f172a; padding: 15px; text-align: right; color: #94a3b8; font-size: 0.8rem; text-transform: uppercase; }
td { padding: 15px; text-align: right; border-bottom: 1px solid #334155; font-size: 0.9rem; }
th:nth-child(2), td:nth-child(2) { text-align: left; }

.coin-info { display: flex; align-items: center; gap: 12px; }
.coin-info img { border-radius: 50%; }
.coin-name { font-weight: 700; display: block; }
.coin-symbol { color: #94a3b8; font-size: 0.75rem; }

.text-green { color: var(--green); }
.text-red { color: var(--red); }

.loading, .error-msg { text-align: center; padding: 50px; }
.spinner { width: 30px; height: 30px; border: 3px solid #334155; border-top: 3px solid var(--accent); border-radius: 50%; margin: 0 auto 10px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

footer { text-align: center; margin-top: 40px; color: #64748b; font-size: 0.8rem; }

@media (max-width: 768px) { .hide-mobile { display: none; } }

/* Animasi Detak Jantung (Pulse) */
.pulse-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--green);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Badge Trending */
.badge-trending {
    font-size: 0.65rem;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    font-weight: 800;
}

.hidden { display: none; }

.empty {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.search-box input:focus {
    outline: none;
}

@media (max-width: 640px) {
    body { padding: 14px; }
    .app-title { font-size: 1.25rem; }
    table { min-width: 100%; }
}

