* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
}

fieldset {
    font-family: sans-serif;
    border: 3px solid #093145;
    background: white;
    border-radius: 2px;
    padding: 15px;
}

fieldset legend {
    font-family: 'Roboto', sans-serif;
    background: #093145;
    padding: 5px;
    color: #fff;
    font-size: 19px;
    margin-left: 20px;
}

.opening {
    width: 800px;
    margin: auto;
    padding: 10px;
    margin-bottom: 30px;
}

#money-form {
    width: 90%;
    display: flex;
    margin: auto;
    padding: 10px;
    gap: 5%;
}

.categories-wrapper {
    gap: 20px;
    width: 1200px;
    margin: auto;
}

.added-section {
    height: 300px; 
    overflow-y: auto;
    padding-right: 5px;
}

.totals-added-wrapper {
    position: relative;
    display: flex;
    margin: auto;
    width: 1100px;
    margin-top: 50px;
    margin-bottom: 40px
}

.totals-wrapper {
    position: absolute;
    right: 0px;
    height: 100%;
}

.totals-added-wrapper section {
    width: 500px;
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 20px;
    border: 3px solid #093145;
    background-color: #f7f7f7;
}

.totals-added-wrapper section p {
    color:#093145;
    font-family: 'Roboto', sans-serif;
}

section {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #093145;
    background-color: #f7f7f7;
}

.all-time-charts {
    margin: auto;
    width: 1100px;
    height: 900px;
}

.chart-wrapper {
    position: relative;
    display: flex;
    gap: 50px;
}

.weekly-snapshot, .monthly-snapshot {
    position: relative;
    margin: auto;
    width: 1100px;
    height: 1100px;
}

.weekly-snapshot h1, .all-time-charts h1, .monthly-snapshot h1 {
    margin-top: 100px;
    size: 35px;
    text-align: left;
}

.weekly-snapshot section, .monthly-snapshot section {
    margin-bottom: 50px;
}

.pie-chart, .all-time-pie-chart, .monthly-pie-chart {
    width: 250px;
    height: 250px;
    margin-left: 50px;
}

.line-chart, .all-time-line-chart, .monthly-line-chart, .all-time-savings-line-chart, .all-time-category-bar-chart,
.weekly-category-bar-chart, .weekly-savings-line-chart, .monthly-savings-line-chart, .monthly-category-bar-chart {
    width: 500px;
    height: 400px;
}





h1 {
    font-family: 'Roboto', sans-serif;
    font-size:45px;
    color:#093145;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
}

p {
    font-size: 16px;
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

input, select {
    width: 100%;
    padding: 5px;
    font-size: 14px;
    margin-bottom: 20px;
}

button {
    width: 100%;
    padding: 5px;
    font-size: 14px;
    background-color: #093145;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 4px;
}

button:hover {
    background-color: #0C405A;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

li:last-child {
    border-bottom: none;
}

@media (max-width: 414px) {
    form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    fieldset {
        flex: 100%;
    }
}


button.pay {
    background-color: #f44336;
    margin-top: 10px;
}

button.pay:hover {
    background-color: #da190b;
}

li.unpaid {
    background-color: rgba(255, 0, 0, 0.2); 
}

li.paid {
    background-color: rgba(0, 128, 0, 0.2); 
}