/* CEX Rankings Dashboard Custom Styles */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.container {
    flex: 1;
    padding-bottom: 60px; /* Add padding to prevent footer overlap */
}

footer {
    margin-top: auto; /* Push footer to bottom */
}

/* Card styles */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    background-color: #343a40;
    color: white;
    font-weight: 500;
}

/* Table styles */
.table-container {
    max-height: 600px;
    overflow-y: auto;
}

.table thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    color: #212529 !important;
    z-index: 10;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Filter styles */
.filter-panel {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 30px;
}

/* Exchange detail page */
.exchange-header {
    padding: 20px;
    background-color: #343a40;
    color: white;
    border-radius: 5px;
    margin-bottom: 20px;
}

.exchange-header h1 {
    margin-bottom: 0;
}

.metric-card {
    text-align: center;
    padding: 20px;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
}

.metric-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Badges for trust scores */
.badge-trust {
    font-size: 0.9rem;
    padding: 5px 10px;
}

.trust-score {
    display: inline-block;
    background-color: #e9ecef;
    color: #000000;
    font-size: 0.9rem;
    padding: 5px 10px;
    font-weight: 600;
    border-radius: 0.25rem;
    text-align: center;
    white-space: nowrap;
}

.trust-high {
    background-color: #28a745 !important;
}

.trust-medium {
    background-color: #ffc107 !important;
    color: #343a40 !important;
}

.trust-low {
    background-color: #dc3545 !important;
}

/* API Documentation */
.api-endpoint {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.api-endpoint pre {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .metric-card {
        margin-bottom: 15px;
    }
    
    .chart-container {
        height: 300px;
    }
}