:root{

    --background:#F5F7FB;

    --sidebar:#0D1B3D;
    --sidebar-light:#162C5F;

    --primary:#3B82F6;
    --primary-light:#60A5FA;

    --success:#22C55E;
    --danger:#EF4444;

    --text:#111827;
    --text-light:#64748B;

}

/* ===================================== */
/* RESET */
/* ===================================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;

}

body{

    min-height:100vh;

    display:flex;

    background:

    radial-gradient(
        circle at top right,
        rgba(59,130,246,.08),
        transparent 30%
    ),

    radial-gradient(
        circle at bottom left,
        rgba(96,165,250,.05),
        transparent 25%
    ),

    var(--background);

}

/* ===================================== */
/* SIDEBAR */
/* ===================================== */

.sidebar{

    width:270px;

    position:fixed;

    top:0;
    left:0;
    bottom:0;

    padding:30px 20px;

    background:

    linear-gradient(
        180deg,
        var(--sidebar),
        var(--sidebar-light)
    );

    color:white;

    box-shadow:
    0 20px 40px rgba(0,0,0,.25);

}

.logo{

    font-size:24px;

    font-weight:800;

    margin-bottom:40px;

}

.sidebar nav{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.sidebar nav a{

    text-decoration:none;

    color:white;

    padding:14px 18px;

    border-radius:16px;

    transition:.25s;

}

.sidebar nav a:hover{

    background:
    rgba(255,255,255,.08);

}

.sidebar nav a.active{

    background:var(--primary);

}

/* ===================================== */
/* MAIN */
/* ===================================== */

.main-content{

    flex:1;

    margin-left:270px;

    padding:35px;

}

/* ===================================== */
/* HEADER */
/* ===================================== */

.page-header{

    margin-bottom:30px;

}

.page-header h1{

    font-size:38px;

    font-weight:800;

    color:var(--text);

}

.page-header p{

    margin-top:8px;

    color:var(--text-light);

}

/* ===================================== */
/* ARCHIVE BUTTON */
/* ===================================== */

.archive-card{

    background:white;

    border-radius:30px;

    padding:30px;

    margin-bottom:30px;

    box-shadow:
    0 20px 50px rgba(15,23,42,.08);

}

#archiveBtn{

    width:100%;

    height:70px;

    border:none;

    border-radius:20px;

    cursor:pointer;

    font-size:18px;

    font-weight:700;

    color:white;

    background:

    linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    transition:.25s;

}

#archiveBtn:hover{

    transform:translateY(-3px);

    box-shadow:
    0 15px 30px rgba(59,130,246,.25);

}

/* ===================================== */
/* HISTORY GRID */
/* ===================================== */

.history-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fill,minmax(380px,1fr));

    gap:25px;

}

/* ===================================== */
/* HISTORY CARD */
/* ===================================== */

.history-card{

    position:relative;

    overflow:hidden;

    background:white;

    border-radius:30px;

    padding:25px;

    box-shadow:
    0 20px 50px rgba(15,23,42,.08);

    transition:.25s;

}

.history-card:hover{

    transform:translateY(-5px);

}

.history-card::before{

    content:"";

    position:absolute;

    top:-50px;
    right:-50px;

    width:130px;
    height:130px;

    border-radius:50%;

    background:

    radial-gradient(
        rgba(59,130,246,.08),
        transparent
    );

}

/* ===================================== */
/* MONTH */
/* ===================================== */

.history-month{

    font-size:24px;

    font-weight:800;

    margin-bottom:20px;

}

/* ===================================== */
/* STATS */
/* ===================================== */

.history-stats{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:15px;

}

.stat-box{

    background:#F8FAFC;

    border-radius:18px;

    padding:15px;

}

.stat-box span{

    display:block;

    font-size:12px;

    color:var(--text-light);

    margin-bottom:8px;

}

.stat-box strong{

    font-size:18px;

    font-weight:800;

    color:var(--text);

}

/* ===================================== */
/* FOOTER */
/* ===================================== */

.history-footer{

    margin-top:20px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.archive-date{

    color:var(--text-light);

    font-size:13px;

}

.delete-btn{

    border:none;

    background:#FEE2E2;

    color:#B91C1C;

    padding:10px 16px;

    border-radius:12px;

    cursor:pointer;

    font-weight:600;

}

/* ===================================== */
/* EMPTY */
/* ===================================== */

.empty-history{

    background:white;

    border-radius:30px;

    padding:60px;

    text-align:center;

    color:var(--text-light);

    box-shadow:
    0 20px 50px rgba(15,23,42,.08);

}

/* ===================================== */
/* RESPONSIVE */
/* ===================================== */

@media(max-width:768px){

    .sidebar{

        width:90px;

    }

    .logo{

        font-size:14px;

    }

    .sidebar nav a{

        text-align:center;

        font-size:11px;

    }

    .main-content{

        margin-left:90px;

        padding:20px;

    }

    .history-grid{

        grid-template-columns:1fr;

    }

    .history-stats{

        grid-template-columns:1fr;

    }

}