/* =========================
   SIDEBAR DESIGN
========================= */


.sidebar {

    width:240px;
    height:100vh;
    font-weight: bold;

    position:fixed;
    top:0;
    left:0;

    background:#065f46;
    color:white;

    padding:15px;

    overflow-y:auto;
    overflow-x:hidden;

    z-index:1000;

    transition:all .3s ease;

}


/* Scrollbar */

.sidebar::-webkit-scrollbar{

    width:6px;

}


.sidebar::-webkit-scrollbar-thumb{

    background:#10b981;

    border-radius:10px;

}


/* Brand */

.brand{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:20px;

}


.brand i{

    font-size:35px;

    color:#fbbf24;

}


.brand h3{

    font-size:22px;

}



/* User Profile */

.user-box{

    display:flex;

    align-items:center;

    gap:10px;

    background:#047857;

    padding:6px;

    border-radius:12px;

    margin-bottom:20px;

}


.user-box i{

    font-size:35px;

}


.user-box strong{

    font-size:14px;

}


.user-box small{

    opacity:.8;

}





/* Menu */

.menu{

    list-style:none;

    padding:0;

    margin:0;

}



.menu li{

    margin-bottom:6px;

}



.menu a{

    display:flex;

    align-items:center;

    gap:15px;

    padding:6px;

    color:white;

    text-decoration:none;

    border-radius:10px;

    font-size:14px;

    transition:.3s;

}



.menu a i{

    width:20px;

    text-align:center;

}



.menu a:hover{

    background:#10b981;

}




/* Active Menu */

.menu a.active{

    background:#10b981;

}




/* Logout */

.menu li:last-child a{

    background:#dc2626;

    margin-top:20px;

}



.menu li:last-child a:hover{

    background:#ef4444;

}



/* MOBILE SIDEBAR SUPPORT */

.mobile-btn{

display:none;

font-size:24px;

cursor:pointer;

color:#065f46;

}


.overlay{

display:none;

position:fixed;

inset:0;

background:rgba(0,0,0,.5);

z-index:999;

}


.overlay.show{

display:block;

}


/* TABLE DESIGN */

.table-box{

background:white;

border-radius:18px;

padding:20px;

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

overflow:hidden;

}



table{

width:100%;

border-collapse:collapse;

}



thead th{

background:#065f46;

color:white;

padding:14px;

font-size:13px;

text-align:left;

}



tbody tr{

transition:.3s;

}


tbody tr:hover{

background:#ecfdf5;

}



td{

padding:14px;

border-bottom:1px solid #eee;

font-size:14px;

}




.badge{

padding:5px 10px;

border-radius:20px;

background:#ecfdf5;

color:#065f46;

font-size:12px;

font-weight:600;

}



.action a{

display:inline-flex;

width:35px;

height:35px;

align-items:center;

justify-content:center;

border-radius:50%;

background:#f1f5f9;

margin-right:5px;

}



.edit:hover{

background:#dbeafe;

}



.delete:hover{

background:#fee2e2;

}




@media(max-width:768px){



.mobile-btn{

display:block;

}



.content{

margin-left:0;

padding:15px;

}



.top{

gap:15px;

}


.top h2{

font-size:20px;

}



/* Mobile Table Cards */

.table-box{

padding:10px;

background:transparent;

box-shadow:none;

}



table,
thead,
tbody,
th,
td,
tr{

display:block;

}



thead{

display:none;

}



tbody tr{

background:white;

border-radius:15px;

margin-bottom:15px;

padding:15px;

box-shadow:0 5px 20px rgba(0,0,0,.08);

}



tbody td{

display:flex;

justify-content:space-between;

border:none;

padding:8px;

font-size:13px;

}



tbody td::before{

font-weight:600;

color:#065f46;

}



tbody td:nth-child(1)::before{
content:"Date";
}


tbody td:nth-child(2)::before{
content:"Category";
}


tbody td:nth-child(3)::before{
content:"Vendor";
}


tbody td:nth-child(4)::before{
content:"Description";
}


tbody td:nth-child(5)::before{
content:"Amount";
}


tbody td:nth-child(6)::before{
content:"Payment";
}


tbody td:nth-child(7)::before{
content:"Action";
}


}