/* ==========================================
   ExpenseTrackify Reports
========================================== */

.filter-row{

    display:flex;

    gap:10px;

    margin-top:15px;

    overflow-x:auto;

    padding-bottom:5px;

}

.filter-row::-webkit-scrollbar{

    display:none;

}

.filter-btn{

    min-width:90px;

    height:40px;

    border:none;

    border-radius:12px;

    background:#2B3148;

    color:#FFFFFF;

    cursor:pointer;

    font-size:14px;

    transition:.3s;

}

.filter-btn.active{

    background:#14E4B5;

    color:#111827;

    font-weight:600;

}

.filter-btn:hover{

    opacity:.9;

}

/* ==========================
   Analytics Cards
========================== */

.analytics-card{

    background:var(--card);

    border-radius:18px;

    padding:16px;

    margin-bottom:15px;

    border:1px solid rgba(255,255,255,.05);

}

.analytics-title{

    font-size:15px;

    font-weight:600;

    margin-bottom:8px;

}

.analytics-value{

    font-size:24px;

    font-weight:700;

    color:#14E4B5;

}

.category-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:12px 0;

    border-bottom:1px solid rgba(255,255,255,.08);

}

.category-item:last-child{

    border-bottom:none;

}
/* ==========================
   Chart Height
========================== */

.chart-box{

    position:relative;

    width:100%;

    height:280px;

}

/* ==========================
   Top Categories
========================== */

.category-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:15px;

    background:#22283C;

    border-radius:14px;

    margin-bottom:10px;

}

.category-item strong{

    color:#FFFFFF;

}

/* ==========================
   Analytics Cards
========================== */

.analytics-card{

    background:#22283C;

    padding:18px;

    border-radius:16px;

    margin-bottom:14px;

}

.analytics-title{

    color:#A0A4B8;

    font-size:14px;

}

.analytics-value{

    margin-top:8px;

    font-size:24px;

    font-weight:700;

    color:#14E4B5;

}

/* ==========================================
   Reports Professional UI
========================================== */

/* Header */

.reports-header{

    margin-bottom:20px;

}

.page-title{

    font-size:28px;

    font-weight:700;

    color:var(--text);

}

/* Summary */

.summary{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(110px,1fr));

gap:15px;

}

.summary-card{

    background:var(--card);

    border-radius:18px;

    padding:18px;

    text-align:center;

    box-shadow:0 8px 20px rgba(0,0,0,.25);

    transition:.3s;

}

.summary-card:hover{

    transform:translateY(-4px);

}

.summary-card h2{

    margin-top:10px;

    font-size:22px;

}

/* Filters */

.filter-section{

    display:flex;

    gap:10px;

    overflow-x:auto;

    margin-bottom:20px;

    padding-bottom:5px;

}

.filter-section::-webkit-scrollbar{

    display:none;

}

.filter-btn{

    min-width:80px;

    height:40px;

    border:none;

    border-radius:25px;

    background:#252B4A;

    color:white;

    cursor:pointer;

    transition:.3s;

}

.filter-btn.active{

    background:linear-gradient(90deg,#14E4B5,#00C2FF);

}

/* Export */

.export-buttons{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:12px;

    margin-bottom:20px;

}

/* Charts */

.chart-card{

    background:var(--card);

    border-radius:20px;

    padding:20px;

    margin-bottom:20px;

}

.chart-box{

    position:relative;

    height:320px;

}

/* Top Categories */

.category-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:var(--card);

    padding:15px;

    border-radius:15px;

    margin-bottom:12px;

}

/* Analytics */

.analytics-card{

    background:var(--card);

    border-radius:18px;

    padding:18px;

    margin-bottom:15px;

}

.analytics-title{

    color:var(--text-light);

}

.analytics-value{

    font-size:24px;

    font-weight:700;

    margin-top:8px;

}

/* Toast */

.toast{

    position:fixed;

    bottom:90px;

    left:50%;

    transform:translateX(-50%);

    background:#14E4B5;

    color:#fff;

    padding:14px 22px;

    border-radius:30px;

    opacity:0;

    pointer-events:none;

    transition:.3s;

    z-index:9999;

}

.toast.show{

    opacity:1;

}

/* Mobile */

@media(max-width:430px){

    .summary{

        grid-template-columns:1fr;

    }

}

.comparison-grid{

display:grid;

grid-template-columns:repeat(2,1fr);

gap:15px;

margin:20px 0;

}

.comparison-card{

display:flex;

align-items:center;

gap:15px;

padding:18px;

border-radius:18px;

background:#1d1d1d;

box-shadow:0 10px 25px rgba(0,0,0,.2);

}

.comparison-icon{

width:55px;

height:55px;

border-radius:50%;

display:flex;

align-items:center;

justify-content:center;

font-size:22px;

color:#fff;

}

.income-card .comparison-icon{

background:#14E4B5;

}

.expense-card .comparison-icon{

background:#ff4d6d;

}

.comparison-card p{

opacity:.7;

margin:0;

}

.comparison-card h2{

margin-top:5px;

font-size:22px;

}

.top-category-card{

background:#1f2937;

padding:15px;

border-radius:14px;

margin-bottom:15px;

}

.category-row{

display:flex;

justify-content:space-between;

align-items:center;

margin-bottom:10px;

}

.progress{

height:8px;

background:#374151;

border-radius:20px;

overflow:hidden;

}

.progress-fill{

height:100%;

background:linear-gradient(90deg,#14E4B5,#3B82F6);

border-radius:20px;

transition:.5s;

}

.analytics-card{

background:#1f2937;

border-radius:16px;

padding:18px;

margin-bottom:15px;

transition:.3s;

}

.analytics-card:hover{

transform:translateY(-4px);

}

.analytics-title{

font-size:14px;

opacity:.8;

display:flex;

align-items:center;

gap:8px;

margin-bottom:10px;

}

.analytics-value{

font-size:24px;

font-weight:700;

color:#14E4B5;

}

/* ===== Mobile Fix ===== */

.summary-card,
.comparison-card{

    min-width:0;

    overflow:hidden;

}

.summary-card h2,
.comparison-card h2{

    font-size:clamp(16px,5vw,24px);

    word-break:break-word;

    overflow-wrap:anywhere;

}

@media(max-width:430px){

    .comparison-grid{

        grid-template-columns:1fr;

    }

    .comparison-card{

        width:100%;

        box-sizing:border-box;

    }

    .comparison-card h2{

        font-size:20px;

    }

}


/* ===============================
   Reports Mobile Overflow Fix
================================ */

.summary{

    grid-template-columns:repeat(3,minmax(0,1fr));

}

.summary-card{

    min-width:0;

    width:100%;

    box-sizing:border-box;

    overflow:hidden;

}

.summary-card h2{

    font-size:18px;

    line-height:1.3;

    white-space:normal;

    word-break:break-word;

    overflow-wrap:anywhere;

}

@media (max-width:480px){

    .summary{

        grid-template-columns:1fr;

    }

}