/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #1a3c6e;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.stats-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 200px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 120px; /* Fixed height for uniformity */
}

.card:nth-child(1) {
    background-color: #e6f0fa;
    border-left: 4px solid #4a90e2;
}

.card:nth-child(2) {
    background-color: #e6faeb;
    border-left: 4px solid #28a745;
}

.card:nth-child(3) {
    background-color: #f5e6fa;
    border-left: 4px solid #9b59b6;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
}

.card p {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a3c6e;
    line-height: 1.2;
    margin: 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chart-wrapper {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 500px;
}

canvas#xrpChart {
    width: 100% !important;
    height: 100% !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .stats-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 300px;
        height: 100px; /* Adjusted height for mobile */
    }

    .card h3 {
        font-size: 1rem;
    }

    .card p {
        font-size: 1.2rem;
    }

    .chart-wrapper {
        height: 400px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .card h3 {
        font-size: 0.9rem;
    }

    .card p {
        font-size: 1.1rem;
    }

    .chart-wrapper {
        height: 300px;
    }
}