/* ============================================
   COT Module - Advanced Styles
   ============================================ */

.cot-advanced-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #000000;
    padding: 16px;
    gap: 16px;
}

/* Charts Row */
.cot-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    height: 280px;
}

.cot-chart-panel {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cot-chart-header {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cot-chart-title {
    color: #F39C12;
    font-size: 12px;
    font-weight: 600;
}

.cot-chart-subtitle {
    color: #F39C12;
    font-size: 11px;
    opacity: 0.8;
}

.cot-chart-body {
    flex: 1;
    padding: 16px;
    position: relative;
}

.cot-svg-chart {
    width: 100%;
    height: 100%;
}

/* Table Section */
.cot-table-section {
    flex: 1;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 300px;
}

.cot-table-header {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    background: #000000;
}

.cot-table-title {
    color: #F39C12;
    font-size: 12px;
    font-weight: 600;
}

.cot-table-subtitle {
    color: #F39C12;
    font-size: 11px;
    opacity: 0.8;
}

.cot-table-wrapper {
    flex: 1;
    overflow: auto;
}

.cot-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
}

.cot-data-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.cot-data-table th {
    background: #000000;
    color: #F39C12;
    font-weight: 500;
    padding: 8px 10px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.cot-data-table th:first-child {
    text-align: left;
}

.cot-data-table th.th-group {
    text-align: center;
    border-bottom: 1px solid rgba(243, 156, 18, 0.3);
    color: rgba(243, 156, 18, 0.7);
    font-size: 10px;
}

.cot-data-table th.highlight-col {
    background: rgba(243, 156, 18, 0.15);
}

.cot-data-table td {
    padding: 8px 10px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #C0C4CF;
}

.cot-data-table td:first-child {
    text-align: left;
}

.cot-data-table td.date-col {
    color: #888;
}

.cot-data-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.cot-data-table tbody tr:hover {
    background: rgba(243, 156, 18, 0.05);
}

.cot-data-table td.highlight-cell {
    background: #F39C12;
    color: #000;
    font-weight: 600;
}

.cot-data-table td.positive {
    color: #00C292;
}

.cot-data-table td.negative {
    color: #E74C3C;
}

/* Responsive */
@media (max-width: 1200px) {
    .cot-charts-row {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .cot-chart-panel {
        height: 250px;
    }
}
