/* Trades Page Styles */

.filters-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-form {
    margin-bottom: 0;
}

.filter-form .form-group {
    margin-bottom: 0;
}

.filter-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.filter-form .form-control,
.filter-form select {
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
}

.header-title {
    margin-bottom: 1rem;
}

.header-title h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Card Header */

.card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card .card-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-info h3 {
    margin: 0;
}

.sort-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Trades Table */

.trades-table {
    margin-bottom: 0;
}

.trades-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding: 1rem;
    white-space: nowrap;
}

.trades-table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.trades-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.trades-table tbody tr:hover {
    background-color: #f8f9fa;
}

.trades-table tbody tr:last-child {
    border-bottom: none;
}

.symbol-badge {
    background-color: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.trades-table .badge {
    padding: 0.4rem 0.7rem;
}

.trades-table .text-success {
    font-weight: 700;
    color: #198754;
}

.trades-table .text-danger {
    font-weight: 700;
    color: #dc3545;
}

/* Page Actions */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.page-header .header-title {
    margin-bottom: 0;
}

.page-header .header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Export Buttons */

.btn-outline-secondary {
    font-size: 0.9rem;
}

/* Pagination */

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
}

.pagination {
    margin: 0;
}

.page-link {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.page-item.active .page-link {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
    background-color: transparent;
}

/* Responsive */

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .header-actions .btn {
        flex: 1;
        font-size: 0.8rem;
    }
    
    .filter-form .row {
        gap: 1rem;
    }
    
    .filter-form .col-md-3,
    .filter-form .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .trades-table {
        font-size: 0.875rem;
    }
    
    .trades-table thead th,
    .trades-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .trades-table .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .symbol-badge {
        padding: 0.2rem 0.5rem;
    }
}
