*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
    background:#f4f6f9;
    color:#333;
}

/* CONTAINER */

.container{
    display:flex;
    min-height:100vh;
}

/* SIDEBAR */

.sidebar{
    width:250px;
    background:#0d1b2a;
    color:white;
    padding:20px;
    position:fixed;
    top:0;
    left:0;
    height:100%;
    overflow:auto;
}

.sidebar h2{
    margin-bottom:30px;
    text-align:center;
}

.sidebar a{
    display:block;
    color:white;
    text-decoration:none;
    padding:14px;
    margin-bottom:10px;
    border-radius:8px;
    transition:0.3s;
}

.sidebar a:hover{
    background:#1b263b;
}

/* MAIN CONTENT */

.main-content{
    margin-left:250px;
    flex:1;
    padding:30px;
}

/* CARD */

.card{
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

/* HEADINGS */

h1{
    margin-bottom:10px;
}

p{
    margin-bottom:20px;
}

/* FORM */

form{
    margin-top:20px;
}

.expense-row{
    display:flex;
    gap:15px;
    margin-bottom:15px;
}

.expense-row input{
    flex:1;
}

/* INPUTS */

input{
    width:100%;
    padding:14px;
    border:1px solid #ccc;
    border-radius:8px;
    outline:none;
    font-size:15px;
}

input:focus{
    border-color:#1b8a3d;
}

/* BUTTONS */

button{
    background:#1b8a3d;
    color:white;
    border:none;
    padding:14px 22px;
    border-radius:8px;
    cursor:pointer;
    font-size:15px;
    transition:0.3s;
}

button:hover{
    opacity:0.9;
}

#addMore{
    margin-top:10px;
    margin-bottom:20px;
}

/* TOTAL */

.total-box{
    margin:20px 0;
    font-size:22px;
    font-weight:bold;
    color:#1b8a3d;
}

/* TABLE */

.table-container{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:10px;
    overflow:hidden;
}

table th{
    background:#0d1b2a;
    color:white;
    padding:15px;
    text-align:left;
}

table td{
    padding:15px;
    border-bottom:1px solid #eee;
}

table tr:hover{
    background:#f9f9f9;
}

/* LOGIN PAGE */

.login-page{
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
}

.login-box{
    width:100%;
    max-width:400px;
    background:white;
    padding:35px;
    border-radius:12px;
    box-shadow:0 2px 15px rgba(0,0,0,0.1);
}

.login-box h2{
    text-align:center;
    margin-bottom:25px;
}

.login-box button{
    width:100%;
}

.error{
    color:red;
    margin-bottom:15px;
}

/* MOBILE RESPONSIVE */

@media(max-width:768px){

    .sidebar{
        width:100%;
        height:auto;
        position:relative;
    }

    .main-content{
        margin-left:0;
        padding:20px;
    }

    .container{
        flex-direction:column;
    }

    .expense-row{
        flex-direction:column;
    }

    table{
        min-width:700px;
    }
}

/* LOGIN LOGO */

/* LOGIN LOGO */

.logo-area{
    text-align:center;
    margin-bottom:20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.logo-area img{
    width:60px !important;
    height:60px !important;
    object-fit:contain;
    display:block;
    margin:0 auto 10px auto;
}

/* SIDEBAR LOGO */

.sidebar-logo{
    text-align:center;
    margin-bottom:25px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.sidebar-logo img{
    width:60px !important;
    height:60px !important;
    object-fit:contain;
    display:block;
    margin:0 auto 10px auto;
}

.sidebar-logo h2{
    margin-top:5px;
    text-align:center;
}

/* MOBILE */

@media(max-width:768px){

    .logo-area img,
    .sidebar-logo img{
        width:50px !important;
        height:50px !important;
    }
}