* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.balance-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.add-transaction {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

#transaction-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: end;
}

#transaction-form input,
#transaction-form select,
#transaction-form button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#transaction-form button {
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    grid-column: 1 / -1;
}

#transaction-form button:hover {
    background: #0056b3;
}

.charts {
    margin-bottom: 30px;
    text-align: center;
}

.transactions h3 {
    margin-bottom: 15px;
}

#transaction-list {
    list-style: none;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.transaction-item.income {
    border-left-color: #28a745;
}

.transaction-item.expense {
    border-left-color: #dc3545;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.delete-btn:hover {
    background: #c82333;
}