.currency-table {
    margin-bottom: 70px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-header {
    background: #f8fafc;
    border-bottom: 1px solid #e1e8ed;
    padding: 0;
}

.table-row {

    /* display: grid;
    grid-template-columns: 220px 100px 120px 120px 100px 100px 100px 100px 120px; */
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f3f7;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.table-row > div {
    width: 105px;
    flex-shrink: 0;
}

.table-row > div:first-child {
    width: 220px;
}

.table-row > div:last-child {
    width: 120px;
}

.table-row:hover {
    background: #f8fafc;
    text-decoration: none;
    color: #14171a;
}

.table-header .table-row {
    font-weight: 600;
    color: #657786;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-data {
    font-size: 13px;
}

.currency-pair {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 10px;
}

.currency-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.flag-eur { background: linear-gradient(135deg, #003399, #ffcc00); }
.flag-usd { background: linear-gradient(135deg, #b22234, #ffffff); }
.flag-gbp { background: linear-gradient(135deg, #012169, #ffffff); }
.flag-aud { background: linear-gradient(135deg, #00008b, #ffffff); }
.flag-cad { background: linear-gradient(135deg, #ff0000, #ffffff); }
.flag-chf { background: linear-gradient(135deg, #ff0000, #ffffff); }
.flag-nzd { background: linear-gradient(135deg, #00247d, #ffffff); }

.currency-name {
    font-size: 14px;
    font-weight: 500;
    color: #14171a;
}

.currency-code {
    font-size: 12px;
    color: #657786;
}

.price {
    font-weight: 600;
    /* font-size: 14px; */
    color: #14171a;
}

.change {
    font-weight: 500;
}

.change.positive {
    color: #17bf63;
}

.change.negative {
    color: #e0245e;
}

.action-btn {
    display: block;
    padding: 6px 9px;
    width: 100%;
    border: 1px solid #1da1f2;
    background: white;
    color: #1da1f2;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.action-btn:hover {
    background: #1da1f2;
    text-decoration: none;
    color: white;
}

.action-btn.sell {
    border-color: #e0245e;
    text-decoration: none;
    color: #e0245e;
}

.action-btn.sell:hover {
    text-decoration: none;
    background: #e0245e;
    color: white;
}

.last-update {
    text-align: center;
    color: #657786;
    font-size: 12px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .currency-table {
        overflow-x: scroll;
    }
}


/* @media (max-width: 1024px) {
    .table-row {
        grid-template-columns: 180px 80px 100px 100px 80px 80px 80px 80px 100px;
        font-size: 13px;
    }
} */