body {
    font-family: Arial, sans-serif;
    text-align: center;
    background: #f2f2f2;
    color: black;
    padding-top: 40px;
    transition: 0.3s;
}

/* --- TEMA BUTONU --- */
.theme-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background: black;
    color: white;
}

/* --- KARANLIK MOD --- */
.dark {
    background: black;
    color: white;
}

.dark .theme-btn {
    background: white;
    color: black;
}

/* --- BAKİYE YAZISI BÜYÜTÜLDÜ --- */
.balance-box {
    font-size: 40px;   /* ESKİ: 28px */
    font-weight: bold;
    margin-bottom: 20px;
}

#balance.green {
    color: green;
}

#balance.red {
    color: red;
}

.dark #balance.green {
    color: orange;
}

.dark #balance.red {
    color: blue;
}

/* --- FORM ELEMANLARI --- */
input {
    padding: 10px;
    font-size: 16px;
    width: 160px;
    margin: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.dark input {
    background: #222;
    color: white;
    border: 1px solid #555;
}

button {
    padding: 10px 20px;
    margin-left: 5px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    border: none;
}

.dark button {
    background: #333;
    color: white;
}

/* --- GEÇMİŞ LİSTESİ --- */
#history li {
    background: white;
    padding: 10px;
    margin: 5px auto;
    width: 350px;
    border-radius: 5px;
    border-left: 5px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.dark #history li {
    background: #222;
    color: white;
}

.income {
    border-color: green;
}

.expense {
    border-color: red;
}

.dark .income {
    border-color: orange;
}

.dark .expense {
    border-color: blue;
}

.delete-btn {
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.dark .delete-btn {
    background: blue;
}

/* --- GRAFİKLER YAN YANA --- */
.chart-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.chart-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 380px;
    transition: 0.3s;
}

.dark .chart-box {
    background: #222;
    color: white;
}

canvas {
    max-width: 100%;
}
