: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);

}

/* ===================================== */
/* FORMULAIRE */
/* ===================================== */

.add-transaction-card{

    background:white;

    border-radius:32px;

    padding:30px;

    margin-bottom:30px;

    box-shadow:
    0 20px 50px rgba(15,23,42,.08);

}

.add-transaction-card h3{

    margin-bottom:20px;

    font-size:22px;

    font-weight:800;

}

.form-grid{

    display:grid;

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

    gap:15px;

}

.form-grid input,
.form-grid select{

    height:60px;

    border:none;

    border-radius:18px;

    background:#F8FAFC;

    padding:0 18px;

    font-size:15px;

    font-weight:600;

}

.form-grid input:focus,
.form-grid select:focus{

    outline:none;

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

}

#addTransactionBtn{

    height:60px;

    border:none;

    border-radius:18px;

    cursor:pointer;

    font-weight:700;

    color:white;

    background:

    linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

}

/* ===================================== */
/* LISTE */
/* ===================================== */

.transactions-list{

    display:flex;

    flex-direction:column;

    gap:15px;

}

/* ===================================== */
/* CARTE */
/* ===================================== */

.transaction-card{

    background:white;

    border-radius:28px;

    padding:22px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:
    0 20px 50px rgba(15,23,42,.08);

    transition:.25s;

}

.transaction-card:hover{

    transform:translateY(-3px);

}

.transaction-left{

    display:flex;

    flex-direction:column;

    gap:6px;

}

.transaction-category{

    font-size:20px;

    font-weight:800;

}

.transaction-description{

    color:var(--text-light);

}

.transaction-date{

    font-size:13px;

    color:var(--text-light);

}

.transaction-right{

    display:flex;

    align-items:center;

    gap:15px;

}

.transaction-amount{

    font-size:24px;

    font-weight:800;

}

.amount-income{

    color:var(--success);

}

.amount-expense{

    color:var(--danger);

}

/* ===================================== */
/* ACTIONS */
/* ===================================== */

.delete-btn{

    border:none;

    padding:10px 15px;

    border-radius:12px;

    cursor:pointer;

    background:#FEE2E2;

    color:#B91C1C;

    font-weight:700;

}

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

.empty-transactions{

    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:1200px){

    .form-grid{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .sidebar{

        width:90px;

    }

    .main-content{

        margin-left:90px;

        padding:20px;

    }

    .logo{

        font-size:14px;

    }

    .sidebar nav a{

        text-align:center;

        font-size:11px;

    }

    .transaction-card{

        flex-direction:column;

        align-items:flex-start;

        gap:15px;

    }

    .transaction-right{

        width:100%;

        justify-content:space-between;

    }

}

.transactions-filter{

    display:flex;

    justify-content:flex-end;

    align-items:flex-end;

    gap:20px;

    margin-bottom:25px;

    width:100%;

    flex-wrap:wrap;

}

.filter-item{

    width:320px;

    display:flex;

    flex-direction:column;

    gap:8px;

}

#accountFilter{

    min-width:280px;

    height:60px;

    border:none;

    border-radius:18px;

    background:white;

    padding:0 20px;

    font-size:15px;

    font-weight:700;

    color:var(--text);

    cursor:pointer;

    box-shadow:
    0 10px 25px rgba(
        15,
        23,
        42,
        .08
    );

    transition:.25s;

}

#accountFilter:hover{

    transform:translateY(-2px);

}

#accountFilter:focus{

    outline:none;

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

}



.transactions-filter label{

    font-size:14px;

    font-weight:800;

    color:#0D1B3D;

}

.custom-select{

    position:relative;

    width:320px;

}

.custom-select{

    width:320px;

}

.select-button{

    width:100%;
    height:65px;

    border:none;

    border-radius:22px;

    padding:0 22px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    cursor:pointer;

    font-size:16px;

    font-weight:700;

    color:white;

    background:
    linear-gradient(
        135deg,
        #3B82F6,
        #60A5FA
    );

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

    transition:.25s;

}

.select-menu{

    position:absolute;

    top:75px;
    left:0;
    right:0;

    background:white;

    border-radius:22px;

    overflow:hidden;

    box-shadow:
    0 20px 50px rgba(
        15,
        23,
        42,
        .15
    );

    display:none;

    z-index:999;

}

.select-menu.open{

    display:block;

}

.select-option{

    padding:18px 22px;

    cursor:pointer;

    font-weight:600;

    transition:.2s;

}

.select-option:hover{

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

}

.select-button:hover{

    transform:translateY(-2px);

    box-shadow:
    0 20px 40px rgba(
        59,
        130,
        246,
        .35
    );

}

.select-button span{

    transition:.3s;

}

.select-menu.open + span{

    transform:rotate(180deg);

}

.select-option{

    display:flex;

    align-items:center;

    gap:12px;

}

.select-option:not(:last-child){

    border-bottom:1px solid #F1F5F9;

}

.select-option:hover{

    background:#EFF6FF;

    color:#2563EB;

}

.select-button span{

    color:white;

    font-size:18px;

    font-weight:700;

}

