/* =========================================================
BASE LAYOUT
========================================================= */

.main{
    padding:25px;
    margin-top:40px;
}

.sub{
    margin-top:4px;

    font-size:13px;
    color:#64748b;
}



/* =========================================================
TOP SUMMARY
========================================================= */

.topGrid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;

    margin-top:20px;
}

.topCard{
    position:relative;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px;

    background:#fff;

    border:1px solid #eef2f7;
    border-radius:18px;

    box-shadow:0 6px 20px rgba(0,0,0,0.05);

    overflow:hidden;

    transition:0.25s ease;
}

.topCard:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 35px rgba(0,0,0,0.08);
}

.topCard::before{
    content:"";

    position:absolute;
    top:0;
    left:0;

    width:100%;
    height:3px;

    background:linear-gradient(
        90deg,
        #4c2c72,
        #7c3aed,
        #2563eb
    );

    opacity:0.8;
}

.label{
    font-size:12px;
    font-weight:500;
    color:#94a3b8;
}

.topCard h2{
    margin:6px 0;

    font-size:22px;
    font-weight:700;

    color:#0f172a;
}

.growth{
    display:flex;
    align-items:center;
    gap:6px;

    font-size:12px;
    font-weight:500;
}

.iconBox{
    width:46px;
    height:46px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:14px;

    font-size:16px;
}

.greenBg{
    background:#ecfdf5;
    color:#16a34a;
}

.blueBg{
    background:#eff6ff;
    color:#2563eb;
}

.orangeBg{
    background:#fff7ed;
    color:#ea580c;
}

.purpleBg{
    background:#f5f3ff;
    color:#7c3aed;
}



/* =========================================================
REVENUE TOOLTIP
========================================================= */

.statusRevenue{
    cursor:pointer;
}

.revenueTooltip{
    position:absolute;
    top:42px;
    right:12px;

    min-width:190px;

    padding:12px;

    background:#111827;
    color:#fff;

    border-radius:10px;

    opacity:0;
    pointer-events:none;

    transform:translateY(-5px);

    transition:0.2s ease;

    z-index:50;
}

.statusRevenue:hover .revenueTooltip{
    opacity:1;
    transform:translateY(-10px);
}

.tooltipRow{
    display:flex;
    justify-content:space-between;

    margin-bottom:6px;
}

.tooltipRow:last-child{
    margin-bottom:0;
}

.tooltipRow.refund{
    color:#fca5a5;
}



/* =========================================================
CHART SECTION
========================================================= */

.chartGrid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;

    margin-top:25px;

    align-items:stretch;
}

.chartCard{
    position:relative;

    height:420px;

    padding:20px;

    background:#fff;

    border:1px solid #eef2f7;
    border-radius:18px;

    box-shadow:0 6px 20px rgba(0,0,0,0.05);

    overflow:hidden;
}

.chartCard h4{
    margin-bottom:14px;

    font-size:15px;
    font-weight:600;
}

/* IMPORTANT FIX FOR CHART STRETCHING */
.chartCard canvas{
    width:100% !important;
    height:340px !important;

    display:block;
}



/* =========================================================
EVENT PERFORMANCE WRAPPER
========================================================= */

.performanceCard{
    margin-top:25px;

    background:#fff;

    border:1px solid #eef2f7;
    border-radius:20px;

    box-shadow:0 8px 30px rgba(0,0,0,0.05);

    overflow:hidden;
}



/* =========================================================
PERFORMANCE TOP
========================================================= */

.performanceTop{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    flex-wrap:wrap;
    padding:24px;
    border-bottom:1px solid #f1f5f9;
    
}

.sectionTitle{
    font-size:18px;
    font-weight:700;

    color:#0f172a;
}

.sectionSub{
    margin-top:4px;

    font-size:13px;
    color:#64748b;
}



/* =========================================================
FILTER
========================================================= */

.filterBar{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.searchBox{
    position:relative;
}

.searchBox i{
    position:absolute;
    top:50%;
    left:12px;

    transform:translateY(-50%);

    color:#94a3b8;
    font-size:13px;
}

.filterBar input,
.filterBar select{
    height:42px;

    padding:0 14px;

    border:1px solid #e2e8f0;
    border-radius:10px;

    background:#fff;

    font-size:13px;

    outline:none;

    transition:0.2s ease;
}

.searchBox input{
    min-width:220px;
    padding-left:36px;
}

.filterBar input:focus,
.filterBar select:focus{
    border-color:#7c3aed;

    box-shadow:0 0 0 3px rgba(124,58,237,0.1);
}



/* =========================================================
BUTTONS
========================================================= */

.filterBtn,
.resetBtn{
    height:42px;

    padding:0 18px;

    border:none;
    border-radius:10px;

    font-size:13px;
    font-weight:600;

    cursor:pointer;

    transition:0.2s ease;
}

.filterBtn{
    background:#7c3aed;
    color:#fff;
}

.filterBtn:hover{
    background:#6d28d9;
}

.resetBtn{
    background:#f1f5f9;
    color:#334155;
}

.resetBtn:hover{
    background:#e2e8f0;
}



/* =========================================================
EVENT LIST WRAP
========================================================= */

.eventListWrap{
    padding:0 24px 24px;
}



/* =========================================================
EVENT CARD
========================================================= */

.eventRow{
    margin-top:18px;
    padding:18px;

    background:#fff;

    border:1px solid #eef2f7;
    border-radius:16px;

    transition:0.25s ease;
}

.eventRow:hover{
    transform:translateY(-2px);

    box-shadow:0 12px 28px rgba(0,0,0,0.05);
}



/* =========================================================
EVENT HEADER
========================================================= */

.eventHeader{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.eventInfo h4{
    margin:0;

    font-size:15px;
    font-weight:600;

    color:#0f172a;
}

.date{
    margin-top:4px;

    font-size:12px;
    color:#94a3b8;
}

.fee{
    color:#7c3aed;
    font-weight:600;
}

.eventActions{
    display:flex;
    align-items:center;
    gap:10px;
}



/* =========================================================
STATUS BADGE
========================================================= */

.badge{
    padding:6px 12px;

    border-radius:999px;

    font-size:12px;
    font-weight:600;

    color:#fff;
}

.badgeGreen{
    background:#22c55e;
}

.badgeBlue{
    background:#3b82f6;
}

.badgeOrange{
    background:#f59e0b;
}

.badgeRed{
    background:#ef4444;
}

.badgeGray{
    background:#6b7280;
}



/* =========================================================
VIEW BUTTON
========================================================= */

.viewBtn{
    padding:8px 14px;

    border:1px solid #e2e8f0;
    border-radius:10px;

    background:#f8fafc;

    text-decoration:none;

    font-size:12px;
    font-weight:600;

    color:#0f172a;

    transition:0.2s ease;
}

.viewBtn:hover{
    background:#f1f5f9;
}



/* =========================================================
DIVIDER
========================================================= */

.divider{
    height:1px;

    margin:16px 0;

    background:#f1f5f9;
}



/* =========================================================
EVENT STATS
========================================================= */

.eventStats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.statCardMini span{
    font-size:12px;
    color:#64748b;
}

.statCardMini h3{
    margin-top:5px;

    font-size:18px;
    font-weight:700;

    color:#0f172a;
}

.max{
    font-size:12px;
    font-weight:500;
    color:#94a3b8;
}

.subStat{
    margin-top:6px;

    font-size:11px;
    color:#94a3b8;
}



/* =========================================================
PROGRESS BAR
========================================================= */

.progressWrap{
    margin-top:8px;
}

.progressBar{
    height:7px;

    overflow:hidden;

    background:#e5e7eb;

    border-radius:999px;
}

.progressBar div{
    height:100%;

    border-radius:999px;

    transition:width 0.4s ease;
}

.progressBar.reg div{
    background:linear-gradient(
        90deg,
        #7c3aed,
        #2563eb
    );
}

.progressBar.att div{
    background:linear-gradient(
        90deg,
        #22c55e,
        #16a34a
    );
}



/* =========================================================
PAGINATION
========================================================= */

.pagination{
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;

    margin-top:24px;
}

.pagination a{
    min-width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0 14px;

    background:#f1f5f9;

    border-radius:10px;

    text-decoration:none;

    font-size:13px;
    font-weight:600;

    color:#0f172a;

    transition:0.2s ease;
}

.pagination a:hover{
    background:#e2e8f0;
}

.pagination a.active{
    background:#7c3aed;
    color:#fff;
}



/* =========================================================
LOADING / EMPTY
========================================================= */

.loadingBox,
.emptyState{
    padding:50px 20px;

    text-align:center;

    color:#64748b;
}

.loadingBox i,
.emptyState i{
    display:block;

    margin-bottom:10px;

    font-size:36px;

    color:#94a3b8;
}


/* =========================================================
RESPONSIVE
========================================================= */

@media(max-width:1100px){

    .topGrid{
        grid-template-columns:repeat(2,1fr);
    }

    .chartGrid{
        grid-template-columns:1fr;
    }

    .eventStats{
        grid-template-columns:1fr 1fr;
    }

}


/* =========================================================
TABLET & MOBILE
========================================================= */

@media(max-width:768px){

    /* Summary cards = 2 per row */
    .topGrid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .topCard{
        padding:16px;
    }

    .topCard h2{
        font-size:18px;
    }

    .iconBox{
        width:40px;
        height:40px;
        font-size:14px;
    }

    .performanceTop{
        flex-direction:column;
    }

    .filterBar{
        width:100%;
    }

    .searchBox{
        width:100%;
    }

    .searchBox input{
        width:100%;
        min-width:unset;
        height:50px;
        font-size:15px;
    }

    .filterBar select,
    .filterBtn,
    .resetBtn{
        width:100%;
        height:50px;
        font-size:15px;
    }

    .chartCard{
        height:380px;
    }

    .chartCard canvas{
        height:300px !important;
    }

}


/* =========================================================
SMALL MOBILE
========================================================= */

@media(max-width:600px){

    /* Keep 2 cards per row */
    .topGrid{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .topCard{
        padding:14px;
    }

    .topCard h2{
        font-size:16px;
    }

    .label{
        font-size:10px;
    }

    .growth{
        font-size:10px;
    }

    .iconBox{
        width:36px;
        height:36px;
        font-size:13px;
    }

    .eventStats{
        grid-template-columns:1fr;
    }

    .eventActions{
        width:100%;
        justify-content:space-between;
    }

    .chartCard{
        height:340px;
    }

    .chartCard canvas{
        height:260px !important;
    }

}


/* =========================================================
VERY SMALL PHONE
========================================================= */

@media(max-width:400px){

    .topGrid{
        grid-template-columns:1fr;
    }

}