:root{

    --background:#F5F7FB;

    --sidebar:#0D1B3D;
    --sidebar-light:#162C5F;

    --primary:#3B82F6;
    --primary-light:#60A5FA;

    --success:#22C55E;
    --danger:#EF4444;

    --text:#111827;
    --text-light:#64748B;

}

/* ========================= */

*{
    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%
    ),

    #F5F7FB;

}

/* ========================= */
/* 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;

}

.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);

}

/* ========================= */
/* CONTENT */
/* ========================= */

.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);

}

/* ========================= */
/* TOP GRID */
/* ========================= */

.top-grid{

    display:grid;

    grid-template-columns:
    1fr 2fr 1fr;

    gap:20px;

    margin-bottom:25px;

}

/* ========================= */
/* GLASS CARD */
/* ========================= */

.glass-card{

    background:white;

    border-radius:28px;

    padding:25px;

    box-shadow:
    0 20px 50px rgba(15,23,42,.08);

    position:relative;

    overflow:hidden;

}

.glass-card::before{

    content:"";

    position:absolute;

    top:-80px;
    right:-80px;

    width:160px;
    height:160px;

    border-radius:50%;

    background:

    radial-gradient(
        rgba(59,130,246,.08),
        transparent
    );

}

.card-title{

    font-size:14px;

    color:var(--text-light);

    margin-bottom:18px;

}

/* ========================= */
/* HERO INPUT */
/* ========================= */

.hero-input{

    width:100%;

    border:none;

    background:#F8FAFC;

    border-radius:24px;

    height:80px;

    padding:0 24px;

    font-size:34px;

    font-weight:800;

    color:#111827;

}

.hero-input:focus{

    outline:none;

}

/* ========================= */
/* REVENUS */
/* ========================= */

.mini-grid{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:15px;

}

.income-card{

    background:#F8FAFC;

    border-radius:20px;

    padding:16px;

}

.income-card span{

    display:block;

    color:#64748B;

    font-size:13px;

    margin-bottom:10px;

}

.income-card input{

    width:100%;

    border:none;

    background:transparent;

    font-size:26px;

    font-weight:800;

}

.income-card input:focus{

    outline:none;

}

/* ========================= */
/* SUMMARY */
/* ========================= */

.summary-card{

    background:

    linear-gradient(
        135deg,
        #2563EB,
        #3B82F6
    );

    border-radius:28px;

    padding:25px;

    color:white;

    box-shadow:
    0 20px 40px rgba(37,99,235,.25);

}

.summary-card h3{

    margin-bottom:20px;

}

.summary-stat{

    margin-bottom:20px;

}

.summary-stat span{

    opacity:.8;

    font-size:13px;

}

.summary-stat h2{

    font-size:32px;

    margin-top:6px;

}

/* ========================= */
/* SECTIONS */
/* ========================= */

.section-card{

    background:white;

    border-radius:30px;

    padding:30px;

    margin-bottom:25px;

    box-shadow:
    0 20px 50px rgba(15,23,42,.08);

}

.section-card h2{

    margin-bottom:25px;

}

/* ========================= */
/* EXPENSE GRID */
/* ========================= */

.expense-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fill,minmax(220px,1fr));

    gap:18px;

}

.expense-card{

    position:relative;

    min-height:120px;

    border-radius:24px;

    padding:18px;

    background:

    linear-gradient(
        145deg,
        #FFFFFF,
        #F8FAFC
    );

    border:1px solid #E7ECF5;

    transition:.25s;

    overflow:hidden;

}

.expense-card:hover{

    transform:translateY(-5px);

    border-color:#C7D2FE;

    box-shadow:
    0 15px 30px rgba(99,102,241,.12);

}

.expense-card::before{

    content:"";

    position:absolute;

    top:-40px;
    right:-40px;

    width:90px;
    height:90px;

    border-radius:50%;

    background:

    radial-gradient(
        rgba(99,102,241,.08),
        transparent
    );

}

.expense-title{

    display:block;

    font-size:13px;

    color:#64748B;

    font-weight:600;

}

.expense-input{

    width:100%;

    border:none;

    background:transparent;

    margin-top:12px;

    font-size:32px;

    font-weight:800;

    color:#111827;

}

.expense-input:focus{

    outline:none;

}

.expense-input::placeholder{

    color:#CBD5E1;

}

.expense-icon{

    position:absolute;

    right:18px;

    bottom:18px;

    font-size:24px;

}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media(max-width:1200px){

    .top-grid{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .sidebar{

        width:90px;

    }

    .main-content{

        margin-left:90px;

    }

    .logo{

        font-size:14px;

    }

    .sidebar nav a{

        font-size:11px;

        text-align:center;

    }

}

/* ===================================== */
/* V4 DYNAMIC EXPENSES */
/* ===================================== */

.section-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

}

.add-expense-btn{

    border:none;

    height:55px;

    padding:0 22px;

    border-radius:18px;

    cursor:pointer;

    font-size:15px;

    font-weight:700;

    color:white;

    background:
    linear-gradient(
        135deg,
        #3B82F6,
        #60A5FA
    );

    box-shadow:
    0 15px 35px rgba(
        59,
        130,
        246,
        .25
    );

    transition:.25s;

}

.add-expense-btn:hover{

    transform:translateY(-2px);

    box-shadow:
    0 20px 40px rgba(
        59,
        130,
        246,
        .35
    );

}

.dynamic-expenses-grid{

    display:grid;

    grid-template-columns:
    repeat(
        auto-fill,
        minmax(
            320px,
            1fr
        )
    );

    gap:20px;

}

.dynamic-expense-card{

    background:white;

    border-radius:26px;

    padding:22px;

    border:1px solid #E7ECF5;

    display:flex;

    justify-content:space-between;

    align-items:center;

    transition:.25s;

    box-shadow:
    0 15px 35px rgba(
        15,
        23,
        42,
        .05
    );

}

.dynamic-expense-card:hover{

    transform:translateY(-4px);

    border-color:#C7D2FE;

    box-shadow:
    0 20px 40px rgba(
        99,
        102,
        241,
        .12
    );

}

.expense-info{

    display:flex;

    flex-direction:column;

    gap:8px;

}

.expense-name{

    font-size:18px;

    font-weight:700;

    color:#111827;

}

.expense-value{

    font-size:28px;

    font-weight:800;

    color:#3B82F6;

}

.expense-actions{

    display:flex;

    gap:10px;

}

.expense-action-btn{

    width:45px;

    height:45px;

    border:none;

    border-radius:14px;

    cursor:pointer;

    font-size:18px;

    transition:.25s;

}

.edit-expense{

    background:#DBEAFE;

    color:#2563EB;

}

.edit-expense:hover{

    transform:translateY(-2px);

}

.delete-expense{

    background:#FEE2E2;

    color:#DC2626;

}

.delete-expense:hover{

    transform:translateY(-2px);

}

.empty-expenses{

    background:#F8FAFC;

    border-radius:24px;

    padding:40px;

    text-align:center;

    color:#64748B;

    font-weight:600;

}

/* ===================================== */
/* MODAL */
/* ===================================== */

.modal-overlay{

    position:fixed;

    inset:0;

    background:
    rgba(
        15,
        23,
        42,
        .55
    );

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

    backdrop-filter:blur(6px);

}

.modal-overlay.show{

    display:flex;

}

.modal{

    width:450px;

    max-width:90%;

    background:white;

    border-radius:30px;

    padding:30px;

    box-shadow:
    0 30px 60px rgba(
        15,
        23,
        42,
        .25
    );

    animation:
    modalAppear .25s ease;

}

@keyframes modalAppear{

    from{

        opacity:0;

        transform:
        translateY(20px);

    }

    to{

        opacity:1;

        transform:
        translateY(0);

    }

}

.modal h3{

    margin-bottom:20px;

    font-size:24px;

    font-weight:800;

}

.modal input{

    width:100%;

    height:60px;

    border:none;

    border-radius:18px;

    background:#F8FAFC;

    padding:0 18px;

    margin-bottom:15px;

    font-size:16px;

    font-weight:600;

}

.modal input:focus{

    outline:none;

    box-shadow:
    0 0 0 4px rgba(
        59,
        130,
        246,
        .15
    );

}

.modal-actions{

    display:flex;

    justify-content:flex-end;

    gap:12px;

    margin-top:10px;

}

.cancel-btn{

    border:none;

    height:50px;

    padding:0 20px;

    border-radius:16px;

    cursor:pointer;

    background:#E5E7EB;

    font-weight:700;

}

.save-btn{

    border:none;

    height:50px;

    padding:0 22px;

    border-radius:16px;

    cursor:pointer;

    color:white;

    font-weight:700;

    background:
    linear-gradient(
        135deg,
        #3B82F6,
        #60A5FA
    );

}

.save-btn:hover{

    opacity:.95;

}

/* ===================================== */
/* EMOJI PICKER */
/* ===================================== */

.emoji-picker{

    display:grid;

    grid-template-columns:
    repeat(6,1fr);

    gap:10px;

    margin-bottom:20px;

}

.emoji-btn{

    height:50px;

    border:none;

    border-radius:14px;

    cursor:pointer;

    font-size:22px;

    background:#F8FAFC;

    transition:.2s;

}

.emoji-btn:hover{

    background:#DBEAFE;

    transform:translateY(-2px);

}

.emoji-btn.active{

    background:#3B82F6;

}

/* ===================================== */
/* MONTH FILTER */
/* ===================================== */

.budget-filters{

    display:flex;

    justify-content:flex-end;

    margin-bottom:25px;

}

.custom-select{

    position:relative;

    width:320px;

}

.select-button{
    width:100%;
    height:65px;
    border:none;
    cursor:pointer;
    border-radius:22px;
    padding:0 22px;
    background:
    linear-gradient(
        135deg,
        #3B82F6,
        #60A5FA
    );
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:18px;
    font-weight:700;
    color:white;
    box-shadow:
    0 15px 35px rgba(
        59,
        130,
        246,
        .25
    );
    transition:.25s;
}

.select-button:hover{
    transform:translateY(-2px);
    box-shadow:
    0 20px 40px rgba(
        59,
        130,
        246,
        .35
    );
}

.select-menu{
    display:none;
    position:absolute;
    top:75px;
    left:0;
    width:100%;
    background:white;
    border-radius:20px;
    overflow-y:auto;
    max-height:280px;
    box-shadow:
    0 20px 40px rgba(
        15,
        23,
        42,
        .15
    );
    z-index:1000;
}

.select-menu.open{
    display:block;
}

.select-option{
    padding:16px 20px;
    cursor:pointer;
    font-weight:600;
}

.select-option:hover{
    background:#3B82F6;
    color:white;
}

.month-filter-wrapper{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.month-filter-label{
    font-size:15px;
    font-weight:700;
    color:#111827;
}

.select-menu::-webkit-scrollbar{
    width:8px;
}

.select-menu::-webkit-scrollbar-track{
    background:#F3F4F6;
    border-radius:10px;
}

.select-menu::-webkit-scrollbar-thumb{
    background:#3B82F6;
    border-radius:10px;
    max-height:280px;
}