/* Orders section styles */
.orders-section {
    padding-top: 100px;
}

/* Filter section styles */
.filter-card {
    padding: 20px;
    margin-bottom: 20px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 8px;
    font-weight: 500;
}

.filter-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-btn:hover {
    background-color: #1976d2;
}

/* Table styles */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

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

.orders-table th {
    background-color: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.orders-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

/* 夜间模式样式 */
.dark-mode .orders-table th {
    background-color: #2a2a2a;
    color: #fff;
    border-bottom-color: #444;
}

.dark-mode .orders-table td {
    color: #fff;
    border-bottom-color: #444;
}

/* 去除选中背景色 */
.orders-table tr {
    user-select: none;
}

.orders-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.dark-mode .orders-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Order status styles */
.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.success {
    color: #0ecb81;
}

.failed {
    color: #f6465d;
}

.pending {
    color: #f0b90b;
}

/* 金额样式 */
td.success {
    color: #0ecb81;
    font-weight: bold;
}

td.failed {
    color: #f6465d;
    font-weight: bold;
}

/* Order side styles */
.side-buy {
    color: #66bb6a;
}

.side-sell {
    color: #ef5350;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
    gap: 10px;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: #f0f0f0;
}

.page-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.page-input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 5px;
}

/* 夜间模式样式 */
.dark-mode .pagination-btn {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

.dark-mode .pagination-btn:hover {
    background: #3a3a3a;
}

.dark-mode .page-info {
    color: #999;
}

.dark-mode .page-input {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .pagination {
        padding: 10px;
    }
    
    .pagination-btn {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
    }
    
    .page-input {
        width: 40px;
        height: 25px;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .orders-section {
        padding-top: 80px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filter-group select {
        font-size: 14px;
    }

    .filter-btn {
        width: 100%;
        padding: 10px;
    }

    .orders-table th,
    .orders-table td {
        padding: 8px;
        font-size: 13px;
    }

    .pagination {
        gap: 12px;
    }

    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

