/* =============================================================================
   trade-modal.css - Trade Modal Component Styles
   ============================================================================= */

/* Trade Modal Base */
.trade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

/* Trade Modal Controls */
.trade-modal-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.trade-parameters {
    flex: 1;
}

.parameter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.param-item {
    background: #f7fafc;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
}

.param-item strong {
    color: #4a5568;
}

.trade-export-controls {
    display: flex;
    gap: 10px;
}

/* Trade Table */
.trade-table-container {
    flex: 1;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
}

.trade-table {
    width: 100%;
    background: white;
}

.trade-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.trade-table th {
    background: #585858;
    color: white;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.trade-table td {
    padding: 10px;
    border-bottom: 1px solid #f7fafc;
    font-size: 13px;
}

.trade-table tr:hover {
    background: #f7fafc;
}

.trade-row.buy {
    border-left: 4px solid #48bb78;
}

.trade-row.sell {
    border-left: 4px solid #f56565;
}

.trade-type.buy {
    color: #22543d;
    font-weight: 600;
    background: #c6f6d5;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
}

.trade-type.sell {
    color: #c53030;
    font-weight: 600;
    background: #fed7d7;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
}

/* Loading State */
.loading-trades {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 16px;
}

.no-trades {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 16px;
}

/* Trade Pagination */
.trade-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
}

/* Chart Container */
.chart-container {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    position: relative;
    background: #131722;
    border-radius: 4px;
    overflow: hidden;
}

.chart-legend {
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    user-select: none;
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-family: monospace;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    pointer-events: none;
}