 * { box-sizing:border-box; margin:0; padding:0; font-family:'Roboto', sans-serif; }

body {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 90%);
    color:#333;
    display:flex;
    flex-direction:column;
    align-items:center;
    padding-bottom:50px;
}

header {
    width:100%;
    position:sticky;
    top:0px;
    background:#00796b;
    color:white;
    font-size:2.5rem;
    font-weight:bold;
    text-align:center;
    padding:25px 0;
    box-shadow:0 6px 20px rgba(20, 19, 19, 0.3);
    z-index:1000;
}

main {
    width:90%;
    max-width:1000px;
    display:flex;
    flex-direction:column;
    gap:50px;
    margin-top:30px;
}

section {
    background:white;
    padding:25px;
    border-radius:15px;
    box-shadow:0 6px 25px rgba(0,0,0,0.1);
}

h2.section-title {
    font-size:1.8rem;
    margin-bottom: 20px;
    color:#00796b;
    border-bottom:2px solid #00796b;
    padding-bottom:5px;
}

/* Form */
form {
    display:flex; flex-direction:column; gap:15px;
}

input, select, button {
    padding:12px;
    border-radius:10px;
    border:1px solid #ccc;
    font-size:1rem;
    outline:none;
    transition:all 0.3s ease;
}

input:focus, select:focus { border-color:#00796b; box-shadow:0 0 10px rgba(0,121,107,0.3); }

button {
    background:#00796b; color:white; font-weight:bold; cursor:pointer;
    border:none;
    transition:all 1.7s ease;
} 

button:hover {background:#004d40; transform:scale(1.05); box-shadow:0 5px 15px rgba(0,0,0,0.2); }

/* Summary Cards */
#transaction-summary {
    display:flex; flex-direction:column; gap:15px;
}

.card {
    display:flex; align-items:center; justify-content:space-between;
    padding:20px;
    border-radius:15px;
    color:white;
    font-weight:bold;
    font-size:1.2rem;
    box-shadow:0 6px 25px rgba(0,0,0,0.1);
    transition:all 0.3s ease;
}

.card:hover { transform:translateY(-5px); box-shadow:0 10px 30px rgba(0,0,0,0.15); }

.card .icon {
    font-size:2rem;
    margin-right:15px;
}

/* Income / Expense / Balance colors */
.income-card { background: linear-gradient(135deg, #4caf50, #81c784); }
.expense-card { background: linear-gradient(135deg, #f44336, #e57373); }
.balance-card { background: linear-gradient(135deg, #2196f3, #64b5f6); }

/* Transaction History */
#transaction-list {
    max-height:300px;
    overflow-y:auto;
}

#transaction-list li {
    display:flex; justify-content:space-between; align-items:center;
    padding:12px 15px; margin:8px 0;
    border-radius:10px;
    border-left:5px solid transparent;
    background:#e0f2f1;
    transition:all 0.3s ease;
}

#transaction-list li.income { border-left-color:#4caf50; }
#transaction-list li.expense { border-left-color:#f44336; }

#transaction-list li:hover { transform:scale(1.02); box-shadow:0 5px 15px rgba(0,0,0,0.1); }

#transaction-list button {
    background:#f44336; color:white; border:none; padding:5px 10px;
    border-radius:8px; cursor:pointer;
    transition:all 0.3s ease;
}

#transaction-list button:hover { background:#d32f2f; transform:scale(1.05); }

/* Analytics Table */
table {
    width:100%; border-collapse:collapse;
    border-radius:10px; overflow:hidden;
}

th, td { padding:12px; text-align:center; border-bottom:1px solid #ccc; }
th { background:#00796b; color:white; }
tbody tr:hover { background:#e0f2f1; transform:scale(1.01); transition:all 0.3s; }

.income-color { color:#4caf50; font-weight:bold; }
.expense-color { color:#f44336; font-weight:bold; }

footer {
    margin-top:40px;
    font-size:1rem;
    color:#004d40;
    text-align:center;
}