.market-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    /* content-visibility speeds up rendering for long lists */
    content-visibility: auto; 
}

th, td {
    padding: 2px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background-color: #2a2a2a;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #aaa;
}

tbody tr:hover {
    background-color: #252525;
}

td img {
    vertical-align: middle;
    border-radius: 4px;
}

/* Badges for Buy/Sell */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge.buy {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.badge.sell {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}


/* --- Pagination Styles --- */
.pagination-container {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px solid #333;
}

.page-btn {
    background-color: #2a2a2a;
    color: #aaa;
    border: 1px solid #333;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}

.page-btn:hover {
    background-color: #3a3a3a;
    color: #fff;
    border-color: #555;
}

.page-btn.active {
    background-color: rgba(46, 204, 113, 0.2); /* Matching your Buy Order green */
    color: #2ecc71;
    border-color: #2ecc71;
    pointer-events: none; /* Prevents clicking the current page */
}