/* ===================================================
   REPORTS PAGE
=================================================== */

.reports-container{
    padding:30px;
    color:#fff;
    animation:fadePage .5s ease;
}

@keyframes fadePage{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

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

.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:35px;
    flex-wrap:wrap;
    gap:20px;
}

.page-header h1{
    font-size:32px;
    margin:0;
    font-weight:700;
}

.page-header p{
    margin-top:8px;
    color:#8f9db2;
    font-size:15px;
}

.header-actions{
    display:flex;
    gap:15px;
}

.header-actions button{

    border:none;
    cursor:pointer;
    border-radius:10px;
    padding:12px 20px;
    font-size:14px;
    transition:.3s;
    background:#1b2335;
    color:white;

}

.header-actions button:hover{

    transform:translateY(-2px);

}

.header-actions .primary{

    background:#3b82f6;

}

/* =========================
   SUMMARY CARDS
========================= */

.summary-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:20px;

    margin-bottom:35px;

}

.summary-card{

    padding:28px;

    border-radius:18px;

    background:#1b2335;

    position:relative;

    overflow:hidden;

    transition:.3s;

    border:1px solid rgba(255,255,255,.05);

}

.summary-card:hover{

    transform:translateY(-6px);

    box-shadow:0 15px 30px rgba(0,0,0,.35);

}

.summary-card span{

    color:#9aa7b8;

    font-size:14px;

    display:block;

}

.summary-card h2{

    font-size:42px;

    margin:18px 0 10px;

    font-weight:700;

}

.summary-card small{

    color:#8f9db2;

}

/* Top Gradient */

.summary-card::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:100%;

    height:4px;

}

/* Colors */

.summary-card.blue::before{

    background:#3b82f6;

}

.summary-card.green::before{

    background:#22c55e;

}

.summary-card.orange::before{

    background:#f59e0b;

}

.summary-card.red::before{

    background:#ef4444;

}

/* Glow */

.summary-card.blue{

    box-shadow:0 0 30px rgba(59,130,246,.08);

}

.summary-card.green{

    box-shadow:0 0 30px rgba(34,197,94,.08);

}

.summary-card.orange{

    box-shadow:0 0 30px rgba(245,158,11,.08);

}

.summary-card.red{

    box-shadow:0 0 30px rgba(239,68,68,.08);

}

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

.controls{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

    gap:20px;

    background:#1b2335;

    padding:25px;

    border-radius:16px;

    margin-bottom:35px;

}

.control{

    display:flex;

    flex-direction:column;

}

.control label{

    color:#94a3b8;

    margin-bottom:10px;

    font-size:13px;

}

.control input,

.control select{

    height:46px;

    border:none;

    outline:none;

    border-radius:10px;

    background:#101827;

    color:white;

    padding:0 15px;

    transition:.3s;

}

.control input:focus,

.control select:focus{

    border:1px solid #3b82f6;

    box-shadow:0 0 0 3px rgba(59,130,246,.15);

}

.generate-btn{

    align-self:end;

    height:46px;

    border:none;

    border-radius:10px;

    background:#3b82f6;

    color:white;

    cursor:pointer;

    transition:.3s;

    font-weight:600;

}

.generate-btn:hover{

    background:#2563eb;

    transform:translateY(-2px);

}

/* =========================
   SECTION HEADER
========================= */

.section-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.section-header h2{

    font-size:22px;

    margin:0;

}

.section-header button{

    border:none;

    background:#3b82f6;

    color:white;

    padding:10px 18px;

    border-radius:8px;

    cursor:pointer;

    transition:.3s;

}

.section-header button:hover{

    transform:translateY(-2px);

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

.chart-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:25px;

    margin-bottom:35px;

}

.chart-card{

    background:#1b2335;

    border-radius:18px;

    padding:25px;

    border:1px solid rgba(255,255,255,.05);

    box-shadow:0 12px 35px rgba(0,0,0,.25);

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.chart-card::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:100%;

    height:4px;

    background:linear-gradient(
        90deg,
        #3b82f6,
        #06b6d4,
        #8b5cf6
    );

}

.chart-card:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 45px rgba(59,130,246,.18);

}

.chart-card h3{

    margin-bottom:25px;

    color:white;

    font-size:20px;

    font-weight:600;

}

.chart-card canvas{

    width:100%!important;

    height:340px!important;

}

/* ===================================================
   CATEGORY CARDS
=================================================== */

.category-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:24px;

    margin-bottom:40px;

}

.category-card{

    background:#1b2335;

    border-radius:18px;

    padding:28px;

    position:relative;

    overflow:hidden;

    transition:.35s;

    border:1px solid rgba(255,255,255,.05);

    box-shadow:0 10px 30px rgba(0,0,0,.30);

}

.category-card:hover{

    transform:translateY(-8px);

    box-shadow:0 22px 45px rgba(0,0,0,.40);

}

.category-card::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        135deg,
        rgba(59,130,246,.08),
        transparent
    );

    opacity:0;

    transition:.35s;

}

.category-card:hover::before{

    opacity:1;

}

.category-card h3{

    color:#fff;

    margin-bottom:14px;

    font-size:20px;

}

.category-card p{

    color:#94a3b8;

    line-height:1.6;

    margin-bottom:22px;

    min-height:48px;

}

.category-card button{

    width:100%;

    height:46px;

    border:none;

    border-radius:10px;

    background:#2563eb;

    color:white;

    cursor:pointer;

    font-weight:600;

    transition:.3s;

}

.category-card button:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

}

/* ===================================================
   ICON ANIMATION
=================================================== */

.category-card h3{

    transition:.3s;

}

.category-card:hover h3{

    transform:translateX(6px);

}

/* ===================================================
   CHART GLOW
=================================================== */

.chart-card canvas{

    filter:drop-shadow(
        0 0 12px rgba(59,130,246,.15)
    );

}

/* ===================================================
   LOADING PLACEHOLDER
=================================================== */

.loading-card{

    position:relative;

    overflow:hidden;

}

.loading-card::after{

    content:"";

    position:absolute;

    top:0;

    left:-100%;

    width:100%;

    height:100%;

    background:linear-gradient(

        90deg,

        transparent,

        rgba(255,255,255,.08),

        transparent

    );

    animation:loading 1.4s infinite;

}

@keyframes loading{

    from{

        left:-100%;

    }

    to{

        left:100%;

    }

}
/* ===================================================
   HISTORY TABLE
=================================================== */

.history,
.scheduled{

    margin-top:35px;

    background:#1b2335;

    border-radius:18px;

    padding:25px;

    border:1px solid rgba(255,255,255,.05);

    box-shadow:0 10px 35px rgba(0,0,0,.30);

}

.history table,
.scheduled table{

    width:100%;

    border-collapse:collapse;

    margin-top:20px;

}

.history thead,
.scheduled thead{

    background:#111827;

}

.history th,
.scheduled th{

    padding:16px;

    text-align:left;

    color:#60a5fa;

    font-weight:600;

    font-size:14px;

}

.history td,
.scheduled td{

    padding:16px;

    border-bottom:1px solid rgba(255,255,255,.05);

    color:#dbe4ee;

    font-size:14px;

}

.history tbody tr,
.scheduled tbody tr{

    transition:.3s;

}

.history tbody tr:hover,
.scheduled tbody tr:hover{

    background:#273449;

}

/* ===================================================
   STATUS BADGES
=================================================== */

.badge{

    display:inline-flex;

    align-items:center;

    padding:6px 14px;

    border-radius:50px;

    font-size:12px;

    font-weight:600;

}

.badge-success{

    background:rgba(34,197,94,.15);

    color:#22c55e;

}

.badge-warning{

    background:rgba(245,158,11,.15);

    color:#f59e0b;

}

.badge-danger{

    background:rgba(239,68,68,.15);

    color:#ef4444;

}

.badge-info{

    background:rgba(59,130,246,.15);

    color:#3b82f6;

}

/* ===================================================
   DOWNLOAD BUTTON
=================================================== */

.download-btn{

    background:#2563eb;

    color:white;

    border:none;

    border-radius:8px;

    padding:8px 16px;

    cursor:pointer;

    transition:.3s;

}

.download-btn:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

}

/* ===================================================
   TABLE SCROLL
=================================================== */

.history{

    overflow-x:auto;

}

.scheduled{

    overflow-x:auto;

}

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

@media(max-width:1400px){

.chart-grid{

grid-template-columns:1fr;

}

}

@media(max-width:1200px){

.summary-grid{

grid-template-columns:repeat(2,1fr);

}

.category-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:900px){

.controls{

grid-template-columns:1fr;

}

.page-header{

flex-direction:column;

align-items:flex-start;

}

.header-actions{

width:100%;

justify-content:flex-start;

}

}

@media(max-width:768px){

.summary-grid{

grid-template-columns:1fr;

}

.category-grid{

grid-template-columns:1fr;

}

.chart-card canvas{

height:280px!important;

}

.page-header h1{

font-size:26px;

}

}

@media(max-width:600px){

.history table,
.scheduled table{

font-size:12px;

}

.history th,
.history td,
.scheduled th,
.scheduled td{

padding:12px;

}

}

/* ===================================================
   CUSTOM SCROLLBAR
=================================================== */

::-webkit-scrollbar{

width:10px;

height:10px;

}

::-webkit-scrollbar-track{

background:#0f172a;

}

::-webkit-scrollbar-thumb{

background:#475569;

border-radius:10px;

}

::-webkit-scrollbar-thumb:hover{

background:#64748b;

}

/* ===================================================
   BUTTON EFFECTS
=================================================== */

button{

transition:.25s ease;

}

button:active{

transform:scale(.96);

}

/* ===================================================
   CARD HOVER GLOW
=================================================== */

.summary-card:hover,
.chart-card:hover,
.category-card:hover{

box-shadow:

0 15px 40px rgba(0,0,0,.35),

0 0 30px rgba(59,130,246,.08);

}

/* ===================================================
   FADE ANIMATION
=================================================== */

.fade-in{

animation:fadeIn .6s ease;

}

@keyframes fadeIn{

0%{

opacity:0;

transform:translateY(12px);

}

100%{

opacity:1;

transform:translateY(0);

}

}

/* ===================================================
   PULSE
=================================================== */

.pulse{

animation:pulse 2s infinite;

}

@keyframes pulse{

0%{

transform:scale(1);

}

50%{

transform:scale(1.04);

}

100%{

transform:scale(1);

}

}

/* ===================================================
   EMPTY STATE
=================================================== */

.empty-state{

text-align:center;

padding:60px;

color:#94a3b8;

}

.empty-state h2{

margin-top:15px;

font-size:24px;

}

.empty-state p{

margin-top:10px;

}

/* ===================================================
   END OF REPORTS CSS
=================================================== */
