/* Exchange List Page Specific Styles */

/* Exchange list table wrapper */
.exchange-list-wrapper {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 0;
    overflow-x: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.exchange-list-wrapper table {
    margin: 0;
    border: none;
    width: 100%;
    border-collapse: collapse;
}

/* Table headers */
.exchange-list-wrapper th {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
    padding: 12px 15px;
    border: none;
    white-space: nowrap;
    text-align: left;
}

.exchange-list-wrapper th:first-child {
    border-top-left-radius: 8px;
}

.exchange-list-wrapper th:last-child {
    border-top-right-radius: 8px;
}

/* Table cells */
.exchange-list-wrapper td {
    padding: 12px 15px;
    border-bottom: 1px solid #e1e1e1;
    vertical-align: middle;
}

.exchange-list-wrapper tbody tr {
    transition: background-color 0.2s ease;
}

.exchange-list-wrapper tbody tr:hover {
    background: #f9f9f9;
}

.exchange-list-wrapper tbody tr:last-child td {
    border-bottom: none;
}

/* Filter row */
.exchange-list-wrapper .filter-row {
    background-color: #f9f9f9;
}

.exchange-list-wrapper .filter-row th {
    background: #f5f5f5 !important;
    border-top: 1px solid #e1e1e1;
    border-radius: 0 !important;
    font-weight: normal !important;
    padding: 8px 15px !important;
}

.exchange-list-wrapper .filter-input {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

.exchange-list-wrapper .filter-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Column specific styling */
.exchange-list-wrapper .col-number {
    width: 60px;
    text-align: center;
}

.exchange-list-wrapper .col-exchange {
    min-width: 200px;
}

.exchange-list-wrapper .col-symbol {
    width: 150px;
}

.exchange-list-wrapper .col-volume {
    width: 150px;
    text-align: right;
}

.exchange-list-wrapper .col-rate {
    width: 120px;
    text-align: right;
}

.exchange-list-wrapper .col-percentage {
    width: 100px;
    text-align: right;
}

.exchange-list-wrapper .col-updated {
    width: 160px;
}

.exchange-list-wrapper .col-action {
    width: 120px;
    text-align: center;
}

/* Exchange name links */
.exchange-list-wrapper a {
    color: #0073aa;
    text-decoration: none;
}

.exchange-list-wrapper a:hover {
    text-decoration: underline;
}

/* Button styling */
.exchange-list-wrapper .btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
}

.exchange-list-wrapper .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.exchange-list-wrapper .btn-primary {
    color: #fff;
    background-color: #0073aa;
    border-color: #0073aa;
}

.exchange-list-wrapper .btn-primary:hover {
    color: #fff;
    background-color: #005177;
    border-color: #004766;
    text-decoration: none;
}

/* Text utilities */
.exchange-list-wrapper .text-right {
    text-align: right !important;
}

.exchange-list-wrapper .text-center {
    text-align: center !important;
}

.exchange-list-wrapper .text-muted {
    color: #999;
}

/* Pairs showing info */
.pairs-showing-info {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

/* Table footer */
.exchange-list-wrapper tfoot td {
    background: #f9f9f9;
    font-weight: 600;
    padding: 12px 15px;
    border-top: 2px solid #e1e1e1;
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    .exchange-list-wrapper {
        font-size: 12px;
        border-radius: 0;
    }
    
    .exchange-list-wrapper table {
        table-layout: fixed;
        width: 100%;
    }
    
    .exchange-list-wrapper th, 
    .exchange-list-wrapper td {
        padding: 12px 8px;
        font-size: 11px;
    }
    
    /* Hide filter row on mobile */
    .exchange-list-wrapper .filter-row {
        display: none;
    }
    
    /* Hide # column on mobile */
    .exchange-list-wrapper .col-number {
        display: none;
    }
    
    /* Adjust column widths for mobile - Exchange List View */
    .exchange-list-wrapper .col-exchange {
        width: 60%;
        min-width: auto;
    }
    
    .exchange-list-wrapper .col-action {
        width: 40%;
    }
    
    /* Adjust column widths for mobile - Pairs View */
    .exchange-list-wrapper .col-symbol {
        width: 25%;
    }
    
    .exchange-list-wrapper .col-volume {
        width: 25%;
        font-size: 10px;
    }
    
    .exchange-list-wrapper .col-rate {
        width: 20%;
        font-size: 10px;
    }
    
    /* Hide percentage and last updated on mobile */
    .exchange-list-wrapper .col-percentage,
    .exchange-list-wrapper .col-updated {
        display: none;
    }
    
    /* Smaller buttons on mobile */
    .exchange-list-wrapper .btn-sm {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    /* Footer adjustments */
    .exchange-list-wrapper tfoot td {
        font-size: 11px;
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .exchange-list-wrapper th,
    .exchange-list-wrapper td {
        font-size: 10px;
        padding: 10px 6px;
    }
    
    .exchange-list-wrapper .col-volume,
    .exchange-list-wrapper .col-rate {
        font-size: 9px;
    }
}

/* Loading and error states */
.no-exchanges,
.no-pairs {
    text-align: center;
    padding: 40px 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.no-exchanges p,
.no-pairs p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 16px;
}

.no-exchanges p:last-child,
.no-pairs p:last-child {
    margin-bottom: 0;
}

/* Pagination (reuse from market-overview) */
.pagination-wrapper {
    text-align: center;
    margin: 30px 0;
}

.pagination-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper ul li {
    display: inline-block;
}

.pagination {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    background: #fff;
    border-radius: 4px;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
    display: inline-block;
}

.pagination a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.pagination .current,
.pagination span.current,
.pagination li.active span {
    background: #0073aa;
    color: #fff !important;
    border-color: #0073aa;
    font-weight: 600;
    cursor: default;
}

.pagination .prev, .pagination .next {
    font-weight: 500;
    padding: 8px 16px;
}

.pagination span.dots {
    border: none;
    background: none;
}

@media (max-width: 767px) {
    .pagination a, .pagination span {
        padding: 6px 8px;
        font-size: 14px;
        min-width: 30px;
    }
    
    .pagination .prev, .pagination .next {
        padding: 6px 10px;
    }
}