*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    min-height: 100vh;
}
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(70, 70, 122);
    padding: 0.75rem 1.5rem;
    flex-wrap: nowrap;
}
#company{
    color: whitesmoke;
    font-size: 2rem;
    font-weight: bold;
}
nav ul{
    list-style: none;
    display: flex;
    gap: 3rem;
    margin:0;
    padding: 0;
    flex-wrap: nowrap;
}
nav li a{
    color: whitesmoke;
    text-decoration:none;
    font-size: 1.2rem;
}
nav li a:hover{
    text-decoration: underline;
}
section {
    flex: 1;              
    display: flex;
    gap: 10rem;
    background-color: rgb(236, 246, 255);
    padding: 1rem;
    flex-wrap: nowrap;
}

aside{
    flex: 1;
    display: flex;
    flex-direction:column;
    margin: 1.5rem;
    padding: 1.5rem;
    background-color: rgb(80, 112, 157);
    border-radius: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    min-width: 250px;
}
#expenseList {
    flex: 1;
    overflow-y: auto;
    list-style-type: none;   /* removes default bullets */
    padding-right: 0.5rem;
    margin-top: 1.5rem;
    margin-right: 0.5rem;
}

#expenseList p {
    background: #f4f4f4;
    margin: 0.5rem 0;
    padding: 0.75rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 1.1rem;
}
#total{
    text-align: center;
    margin-top: 1rem;
    color: white
}



form {
    flex: 2;
    display: flex;
    flex-direction: column;
    background-color: rgb(199, 241, 255);
    border-radius: 2rem;
    margin: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    min-width: 300px;
}

#addInputs{
    
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}
#formInput{
    font-size: 1.2rem;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
}
label{
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}
input{
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
#category{
    margin: 0.3rem;
    padding:0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
button {
    margin-top: 1.2rem;
    padding: 0.8rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    }
#addnotes{
    padding: 2rem 1rem;
}

    button:hover {
        background: #555;
    }
footer{
    margin-top: auto;
    display: flex;
    padding: 0.3rem;
    align-items: center;
    justify-content: center;
    background-color:rgb(234, 234, 255);
    font-size: small;
}
@media (max-width: 768px) {
    nav p {
        gap: 1rem;
        justify-content: center;
    }

    section {
        flex-direction: column;
        align-items: center;
    }

    aside, form {
        width: 90%;
        margin: 0.5rem 0;
    }

    #formInput {
        max-width: 100%;
    }
}
