/* Custom styles for the Refuel Dashboard */

.stat-card {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: #f9fafb;
    border-radius: 0.375rem;
}

.token-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    background-color: #e5e7eb;
}

.token-icon-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid white;
    object-fit: cover;
    background-color: #e5e7eb;
}

.coin-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
}

.coin-card img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e5e7eb;
}

.coin-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coin-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
}

.coin-address {
    font-size: 0.75rem;
    color: #6b7280;
    font-family: monospace;
}

.coin-address-link {
    color: #3b82f6;
    text-decoration: none;
    font-family: monospace;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.coin-address-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.copy-btn {
    padding: 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}

.copy-btn:hover {
    color: #111827;
}

.copy-btn svg {
    width: 14px;
    height: 14px;
}

.address-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pool select option styling */
.pool-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Table styles */
#donations-table th,
#leaderboard-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#donations-table td,
#leaderboard-table td {
    padding: 1rem;
    font-size: 0.875rem;
    color: #111827;
    white-space: nowrap;
}

#donations-table tbody tr:hover,
#leaderboard-table tbody tr:hover {
    background-color: #f9fafb;
}

.token-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.token-header img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Pagination styles */
.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f3f4f6;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-number-btn {
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.page-number-btn:hover:not(.active) {
    background-color: #f3f4f6;
}

.page-number-btn.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.page-ellipsis {
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-weight: 500;
}

/* Chart styles */
.chart-container {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.chart-container canvas {
    max-height: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card {
        padding: 0.75rem;
    }

    .token-icon {
        width: 32px;
        height: 32px;
    }

    #donations-table {
        font-size: 0.75rem;
    }

    #donations-table th,
    #donations-table td {
        padding: 0.5rem;
    }
}
