* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

input, select {
    padding: 0.5rem;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #1e1e1e;
    color: #e0e0e0;
}

input {
    flex: 1;
}

input::placeholder {
    color: #888;
}

.crypto-table {
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 0.5fr 2fr 1fr 1fr 1fr;
    padding: 1rem;
    background: #252525;
    font-weight: bold;
    border-bottom: 2px solid #333;
}

.table-body {
    max-height: 800px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.crypto-row {
    will-change: transform;
    contain: content;
    display: grid;
    grid-template-columns: 0.5fr 2fr 1fr 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s;
}

.crypto-row:hover {
    background-color: #252525;
}

.col {
    display: flex;
    align-items: center;
}

.name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.crypto-icon {
    width: 24px;
    height: 24px;
}

.positive {
    color: #4caf50;
}

.negative {
    color: #f44336;
}

.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #888;
}

@media (max-width: 768px) {
    .table-header, .crypto-row {
        grid-template-columns: 0.5fr 2fr 1fr 1fr;
    }
    
    .change {
        display: none;
    }
}

@media (max-width: 480px) {
    .table-header, .crypto-row {
        grid-template-columns: 0.5fr 2fr 1fr;
    }
    
    .market-cap {
        display: none;
    }
}