body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #e3f0ff 0%, #fafcff 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1 {
    text-align: center;
    color: #1769aa;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 2.5rem;
    text-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
}

.container {
    width: 650px;
    margin: 0 auto 48px auto;
    background: #fff;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.10), 0 1.5px 4px rgba(0,0,0,0.04);
    border: 1.5px solid #e3f0ff;
}

.balance-section {
    margin-bottom: 2.2rem;
}

#balance {
    font-size: 2.3rem;
    color: #1769aa;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s, transform 0.3s;
    animation: pop 0.7s;
}

@keyframes pop {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.income-expense-section {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    margin-bottom: 1rem;
    gap: 1.2rem;
}

.income-box, .expense-box {
    flex: 1;
    background: #f7fbff;
    border-radius: 10px;
    padding: 1.1rem 0.5rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(33,150,243,0.04);
    border: 1.5px solid #e3f0ff;
    transition: box-shadow 0.2s;
}

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

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

.income-box span, .expense-box span {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

#income, #expense {
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: color 0.3s, transform 0.3s;
    animation: pop 0.7s;
}

#income {
    color: #4caf50;
}

#expense {
    color: #f44336;
}

.add-transaction-card, #transaction-form {
    background: #eef6ff;
    border: 1.5px solid #e3f0ff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(33,150,243,0.06);
    padding: 1.3rem 1rem 1.1rem 1rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    transition: box-shadow 0.2s;
}

#transaction-form:focus-within {
    box-shadow: 0 4px 18px rgba(33,150,243,0.13);
    border-color: #b3d8fd;
}

.form-row {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.form-row input[type="number"],
.form-row select {
    flex: 1;
    background: #fff;
    border: 1.5px solid #e3f0ff;
    border-radius: 6px;
    padding: 0.65rem;
    font-size: 1rem;
    transition: border 0.2s, box-shadow 0.2s;
}

.form-row input[type="number"]:focus,
.form-row select:focus {
    border: 1.5px solid #2196f3;
    outline: none;
    box-shadow: 0 0 0 2px #e3f0ff;
}

.form-row input[type="text"] {
    flex: 2;
    background: #fff;
    border: 1.5px solid #e3f0ff;
    border-radius: 6px;
    padding: 0.65rem;
    font-size: 1rem;
    transition: border 0.2s, box-shadow 0.2s;
}

.form-row input[type="text"]:focus {
    border: 1.5px solid #2196f3;
    outline: none;
    box-shadow: 0 0 0 2px #e3f0ff;
}

.form-row button {
    flex: 1;
    margin-left: 0.5rem;
    padding: 0.8rem;
    background: linear-gradient(90deg, #2196f3 60%, #1769aa 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(33,150,243,0.10);
    letter-spacing: 0.5px;
}

.form-row button:hover {
    background: linear-gradient(90deg, #1769aa 60%, #2196f3 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 16px rgba(33,150,243,0.13);
}

.category-income {
    color: #4caf50;
    font-weight: 600;
}

.category-expense {
    color: #f44336;
    font-weight: 600;
}

h3 {
    text-align: center;
    color: #1769aa;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

#transaction-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #f7fbff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(33,150,243,0.04);
}

#transaction-table th {
    background: #e3f0ff;
    color: #1769aa;
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: 2px solid #b3d8fd;
    letter-spacing: 0.5px;
}

#transaction-table th, #transaction-table td {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid #e3f0ff;
    text-align: left;
}

#transaction-table th:first-child, #transaction-table td:first-child {
    width: 2.5rem;
    text-align: center;
    color: #888;
}

#transaction-table tbody tr {
    transition: background 0.18s;
}

#transaction-table tbody tr:hover {
    background: #e3f0ff;
}

.delete-btn {
    color: #f44336;
    font-size: 1.25rem;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.5rem;
}

.delete-btn:hover {
    color: #b71c1c;
    transform: scale(1.2);
}

.edit-btn {
    color: #2196f3;
    font-size: 1.15rem;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.5rem;
}

.edit-btn:hover {
    color: #1769aa;
    transform: scale(1.2);
} 