/**
 * TCT Trades Styles
 */

.tct-trades-wrapper {
    margin: 20px 0;
}

.tct-trades-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tct-trades-header h3 {
    margin: 0;
    color: #333;
}

.tct-trades-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.tct-trades-controls label {
    font-weight: 500;
    color: #666;
}

.tct-trades-controls select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-left: 5px;
}

.trades-mainContainer {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.trades-singleContainer {
    border-bottom: 1px solid #eee;
}

.trades-singleContainer:last-child {
    border-bottom: none;
}

.trades-singleContainer table {
    width: 100%;
    border-collapse: collapse;
}

.trades-singleContainer th,
.trades-singleContainer td {
    padding: 12px 15px;
    text-align: left;
    border-right: 1px solid #eee;
}

.trades-singleContainer th:last-child,
.trades-singleContainer td:last-child {
    border-right: none;
}

.trades-singleContainer th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.trades-ticker {
    font-weight: bold;
    color: #2271b1;
}

.trades-side {
    font-weight: 500;
}

.trades-side:contains("BUY") {
    color: #00a32a;
}

.trades-side:contains("SELL") {
    color: #d63638;
}

.trades-price {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.trades-notes img {
    width: 16px;
    height: 16px;
    cursor: help;
}

.trades-timestamp {
    color: #666;
    font-size: 0.9em;
}

.trades-empty {
    padding: 40px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.tct-loading {
    padding: 40px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.error {
    padding: 15px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    color: #991b1b;
    margin: 10px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .tct-trades-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .tct-trades-controls {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .trades-singleContainer table {
        font-size: 0.9em;
    }
    
    .trades-singleContainer th,
    .trades-singleContainer td {
        padding: 8px 10px;
    }
}