/* ==================== COMMODITIES & FOREX SECTIONS ==================== */

.commodities-layout,
.forex-layout {
    padding: 20px;
    width: 45%;
    min-width: 900px;
    margin: 0 auto;
    position: relative;
    background: #1F1F1B;
}

.commodities-container,
.forex-container {
    background: #121212;
    border-radius: 12px;
    overflow: hidden;
    padding: 0 20px;
}

.commodities-header,
.forex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-top: 20px;
    gap: 20px;
}

.commodities-title,
.forex-title {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.commodities-controls,
.forex-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.commodities-category-tabs,
.forex-category-tabs {
    display: flex;
    gap: 6px;
}

.category-tab {
    padding: 6px 16px;
    background: #252525;
    border: 1px solid #444;
    border-radius: 16px;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-tab:hover {
    border-color: #666;
    color: #ccc;
}

.category-tab.active {
    background: rgba(202, 169, 153, 0.15);
    border-color: #caa999;
    color: #caa999;
}

.commodities-table-wrapper,
.forex-table-wrapper {
    background: #121212;
    border-radius: 8px;
    overflow: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    scrollbar-width: thin;
    scrollbar-color: #333 #121212;
}

.commodities-table-wrapper::-webkit-scrollbar,
.forex-table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.commodities-table-wrapper::-webkit-scrollbar-track,
.forex-table-wrapper::-webkit-scrollbar-track {
    background: #121212;
}

.commodities-table-wrapper::-webkit-scrollbar-thumb,
.forex-table-wrapper::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.commodities-table-wrapper::-webkit-scrollbar-thumb:hover,
.forex-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.commodities-table,
.forex-table {
    width: 100%;
    border-collapse: collapse;
    background: #121212;
}

.commodities-table th,
.forex-table th {
    background: #1a1a1a;
    color: #999;
    font-weight: 700;
    font-size: 14px;
    text-align: left;
    padding: 16px 12px;
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 2;
}

.commodities-table td,
.forex-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #2a2a2a;
    color: #e3e3e3;
}

.commodities-table tr:hover,
.forex-table tr:hover {
    background: #1a1a1a;
}

.commodity-asset,
.forex-asset {
    display: flex;
    align-items: center;
    gap: 10px;
}

.commodity-symbol,
.forex-symbol {
    font-weight: 600;
    color: #e3e3e3;
    font-size: 14px;
}

.commodity-name,
.forex-name {
    color: #999;
    font-size: 13px;
}

.category-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.category-badge.metals { background: rgba(255, 215, 0, 0.15); color: #ffd700; }
.category-badge.energy { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }
.category-badge.agriculture { background: rgba(81, 207, 102, 0.15); color: #51cf66; }
.category-badge.livestock { background: rgba(204, 153, 102, 0.15); color: #cc9966; }
.category-badge.majors { background: rgba(124, 195, 228, 0.15); color: #7CC3E4; }
.category-badge.crosses { background: rgba(178, 102, 255, 0.15); color: #b266ff; }

.commodities-footer,
.forex-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    color: #888;
    font-size: 13px;
}
