body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #4a90e2;
}

form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

form input,
form select,
form button {
    padding: 10px;
    margin: 5px 0;
    flex: 1;
}

form button {
    margin: 5px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #357ab8;
}

#filter-input {
    padding: 10px;
    /* width: 100%; */
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

.total {
    text-align: right;
    font-size: 1.2em;
}

.editable {
    background-color: #fff3cd;
}


/* CSS for the download PDF button */

#download-pdf {
    background-color: #4CAF50;
    /* Green background */
    border: none;
    /* Remove border */
    color: white;
    /* White text */
    padding: 15px 32px;
    /* Padding */
    text-align: center;
    /* Center text */
    text-decoration: none;
    /* Remove underline */
    display: inline-block;
    /* Make it inline block */
    font-size: 16px;
    /* Font size */
    margin: 4px 2px;
    /* Margin */
    cursor: pointer;
    /* Add cursor pointer on hover */
    border-radius: 8px;
    /* Rounded corners */
    top: 50%;
    /* Move to 50% from the top */
    left: 50%;
    /* Move to 50% from the left */
    transform: translate(435%, 0%);
    /* Center it */
    font-weight: bold;
}


/* Hover effect */
#download-pdf:hover {
    background-color: #45a049;
    /* Darker green */
}


#print-button {
    background-color: #4CAF50;
    /* Green background */
    border: none;
    /* Remove border */
    color: white;
    /* White text */
    padding: 15px 32px;
    /* Padding */
    text-align: center;
    /* Center text */
    text-decoration: none;
    /* Remove underline */
    display: inline-block;
    /* Make it inline block */
    font-size: 16px;
    /* Font size */
    margin: 4px 2px;
    /* Margin */
    cursor: pointer;
    /* Add cursor pointer on hover */
    border-radius: 8px;
    /* Rounded corners */
    top: 50%;
    /* Move to 50% from the top */
    left: 50%;
    /* Move to 50% from the left */
    transform: translate(450%, 0%);
    /* Center it */
    font-weight: bold;
}


/* Hover effect */
#printbutton:hover {
    background-color: #45a049;
    /* Darker green */
}


/* Hide buttons when printing */
@media print {

    #download-pdf,
    #print-button,
    #add-expense-button,
    #expense-form,
    #filter-input {
        display: none;
    }
}


/* Styles for smartphones and smaller devices */
@media screen and (max-width: 430px) {
    .container {
        padding: 10px;
        margin: 20px;
    }

    #download-pdf {
        width: 60%;
        /* Adjusting width to fit full width on smaller screens */
        margin-left: -1000px;
        /* Adjust margin to bring buttons closer to the left edge */

    }

    #print-button {
        width: 60%;
        /* Adjusting width to fit full width on smaller screens */
        margin-left: -2000px;
        /* Adjust margin to bring buttons closer to the left edge */

    }


}