* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.container {
    width: 100%;
    min-width: 650px;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    color: #333;
}

.financial-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.income-expense-box {
    width: 48%;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    font-size: 1.5em;
}

.income {
    background-color: #4caf50;
}

.expense {
    background-color: #f44336;
}

.balance {
    text-align: center;
    margin-bottom: 20px;
}

.balance h2 {
    font-size: 1.8em;
    color: #333;
}

#netBalance {
    font-size: 2em;
    color: #333;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.form input, .form select, .form button {
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.form input, .form select {
    width: 100%;
}

.form button {
    background-color: #4caf50;
    color: #fff;
    border: none;
    cursor: pointer;
}

.form button:hover {
    background-color: #45a049;
}

.history {
    margin-top: 20px;
}

.history ul {
    list-style-type: none;
    padding: 0;
}

.history li {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.history li.income {
    border-left: 5px solid #4caf50;
}

.history li.expense {
    border-left: 5px solid #f44336;
}

.financial-summary .income-expense-box {
    width: 48%;
    padding: 20px;
    text-align: center;
    font-size: 1.5em;
    border-radius: 15px;
}

.financial-summary .income-expense-box.income {
    background-color: #4caf50;
}

.financial-summary .income-expense-box.expense {
    background-color: #f44336;
}

.financial-summary .income-expense-box h2 {
    font-size: 1.2em;
    font-weight: normal;
    margin-bottom: 10px;
}

.financial-summary .income-expense-box div {
    font-size: 2em;
    font-weight: bold;
    margin-top: 10px;
}

.income-head, .expense-head {
    font-size: 20px !important;
}

.history-head {
    margin-bottom: 15px;
}

.page {
    color: black;
    text-decoration: none;
    padding: 10px 15px;
}

.page:visited {
    color: black;
    text-decoration: none;
    padding: 10px 15px;
}