/**
 * Price History Table Styles
 */

.dbx-coin-historical-data {
    margin: 20px 0;
    overflow-x: auto;
}

#dbx_historical_tbl {
    width: 100%;
    border-collapse: collapse;
}

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

#dbx_historical_tbl tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

#dbx_historical_tbl tbody tr:hover {
    background-color: #f5f5f5;
}

.dbx_h_date,
.dbx_h_price,
.dbx_h_volume,
.dbx_h_marketcap {
    white-space: nowrap;
}

.dbx-formatted-price {
    font-weight: 500;
}

/* DataTables pagination styling */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px;
    text-align: right;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 12px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    background-color: #fff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #e9ecef;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dataTables_wrapper .dataTables_length {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_length select {
    padding: 5px 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Loading state */
.dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #dbx_historical_tbl thead th,
    #dbx_historical_tbl tbody td {
        padding: 8px 10px;
        font-size: 14px;
    }
}