body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #7a4f94 0%, #9b61a3 100%); /* Purple gradient background */
    color: #fff;
    text-align: center;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    color: #333;
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
}

header {
    margin-bottom: 20px;
}

h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
    color: #9b61a3; /* Purple color for the title */
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav ul li.active {
    font-weight: bold;
    background-color: #9b61a3; /* Purple color for active menu */
    color: #fff;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Form and Buttons */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
    width: 300px;
    margin: 0 auto;
}

form input,
form select,
form button {
    padding: 12px;
    border: 2px solid #9b61a3; /* Purple border */
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
}

form button {
    background: #9b61a3; /* Purple background */
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #7a4f94; /* Darker purple on hover */
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

ul li.income {
    background-color: #d4edda;
}

ul li.expense {
    background-color: #f8d7da;
}

button {
    background: #9b61a3; /* Purple background */
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #7a4f94; /* Darker purple on hover */
}

canvas {
    margin: 20px auto;
    padding: 10px;
    border-radius: 8px;
    width: 50px; /* Reduced size of the chart */
    height: 50px; /* Reduced size of the chart */
}
