/*
 * ---------------------------------------------------------
 * First Row Donations
 * Fundraising Dashboard
 * ---------------------------------------------------------
 */


/* ---------------------------------------------------------
 * Dashboard container
 * --------------------------------------------------------- */

.frd-dashboard {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
 * Fundraising Goal
 * --------------------------------------------------------- */

.frd-goal-section {
    padding: 40px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


.frd-progress-header {
    text-align: center;
}


.frd-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}


.frd-total {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 800;
}


.frd-goal {
    margin-top: 5px;
    font-size: 18px;
}


.frd-progress-bar-wrapper {
    width: 100%;
    height: 22px;
    margin-top: 30px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9ecef;
}


.frd-progress-bar {
    height: 100%;
    border-radius: 999px;
     background: var(--frd-primary-color);
    transition: width 1s ease;
}


.frd-progress-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
}


/* ---------------------------------------------------------
 * Statistics
 * --------------------------------------------------------- */

.frd-stats-section {
    margin-top: 25px;
}

.frd-stats {
    display: flex;
    gap: 20px;
}

.frd-stat-card {
    flex: 1;
    padding: 30px 20px;
    text-align: center;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.frd-stat-value {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
}

.frd-stat-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
 * Top 10
 * --------------------------------------------------------- */

.frd-top10-section {
    margin-top: 40px;
    padding: 35px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.08);
}


.frd-section-title {
    margin-bottom: 30px;
    text-align: center;
}


.frd-section-title h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
}


.frd-section-title p {
    margin: 8px 0 0;
    font-size: 15px;
}


/* ---------------------------------------------------------
 * Top 10 items
 * --------------------------------------------------------- */

.frd-top10-item {
    margin-bottom: 22px;
}


.frd-top10-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.frd-top10-rank {
    flex: 0 0 55px;
    font-size: 16px;
    font-weight: 800;
}

.frd-top10-athlete {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
}

.frd-top10-amount {
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 800;
}


.frd-top10-rank {
    font-size: 16px;
    font-weight: 800;
}


.frd-top10-athlete {
    font-size: 16px;
    font-weight: 600;
}


.frd-top10-amount {
    font-size: 16px;
    font-weight: 800;
}


.frd-top10-bar-wrapper {
    height: 10px;
    margin-top: 8px;
    margin-left: 55px;
    overflow: hidden;
    border-radius: 999px;
    background: #eeeeee;
}


.frd-top10-bar {
    height: 100%;
    border-radius: 999px;
    background: var(--frd-primary-color);
    transition: width 1s ease;
}


/* ---------------------------------------------------------
 * Loading
 * --------------------------------------------------------- */

.frd-dashboard-loading {
    padding: 20px;
    text-align: center;
    font-size: 15px;
}
/* ---------------------------------------------------------
 * Responsive
 * --------------------------------------------------------- */

@media (max-width: 768px) {

    .frd-dashboard {
        margin: 25px auto;
    }

    .frd-goal-section {
        padding: 25px 20px;
    }

    .frd-total {
        font-size: 40px;
    }

    .frd-stats {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .frd-top10-section {
        padding: 20px 12px;
    }

    .frd-section-title h2 {
        font-size: 24px;
    }
    
    .frd-top10-info {
    display: table;
    width: 100%;
    table-layout: fixed;
}
    
    .frd-top10-rank {
        display: table-cell;
        width: 35px;
        font-size: 13px;
        font-weight: 800;
        vertical-align: middle;
    }
    
    .frd-top10-athlete {
        display: table-cell;
        width: auto;
        padding-right: 8px;
        font-size: 13px;
        font-weight: 600;
        vertical-align: middle;
        white-space: nowrap;
    }
    
    .frd-top10-amount {
        display: table-cell;
        width: 75px;
        font-size: 13px;
        font-weight: 800;
        text-align: right;
        vertical-align: middle;
        white-space: nowrap;
    }
    
    .frd-top10-bar-wrapper {
        margin-left: 0;
    }
        
        
    .frd-top10-amount {
        width: 100%;
        font-size: 14px;
    }

    .frd-top10-bar-wrapper {
        margin-left: 45px;
    }
}