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

body {
    background: #f5f7fb;
    display: flex;
    justify-content: center;
    padding: 20px;
}

#container {
    width: 100%;
    max-width: 450px;
    background: linear-gradient(135deg, #1e1b4b, #4c1d95, #be185d);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
    color: #f8fafc;
}
/* TITLE */
h1 {
    text-align: center;
    margin-bottom: 20px;
}

#balance-box {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: white;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

#balance-box:hover {
    transform: scale(1.03);
}

#balance {
    font-size: 28px;
    margin-top: 5px;
}

/* SUMMARY */
#summary {
    display: flex;
    margin-bottom: 15px;
    gap: 10px;
}

#summary div {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    background: rgba(255,255,255,0.05);
}



#expense-total {
    color: red;
    font-weight: bold;
}

#income-total {
    color: green;
    font-weight: bold;
}

/* FORM */
#form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

#form input,
#form select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
}

#form button {
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#form button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(239,68,68,0.3);
}

/* TRANSACTIONS */
.list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #f8fafc;
    transition: all 0.3s ease;
}

.list:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.list.income {
    border-left: 4px solid #22c55e;
}

.list.expense {
    border-left: 4px solid #ef4444;
}

.list p {
    margin: 0 5px;
}

/* DELETE BUTTON */
.list button {
    background: red;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.empty {
    text-align: center;
    color: #cbd5e1;
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.8;
}

/* MOBILE */
@media (max-width: 500px) {
    #summary {
        flex-direction: column;
    }
}