* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: #fffae3;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container with cartoon look */
.container {
    background: #fff8cc;
    padding: 25px;
    border-radius: 25px;
    border: 5px solid #ffcc00;
    box-shadow: 5px 5px 0px #333;
    width: 360px;
    text-align: center;
    animation: bounceIn 0.6s ease-out;
}

/* Main title */
h1 {
    font-size: 28px;
    color: #ff6600;
    text-shadow: 2px 2px 0px #333;
    margin-bottom: 20px;
}

/* Section title */
h2 {
    margin-top: 20px;
    font-size: 20px;
    color: #0088cc;
    text-shadow: 1px 1px 0px #333;
}

/* Cartoon form inputs */
#expense-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

#expense-form input {
    padding: 10px;
    border: 3px solid #ffcc00;
    border-radius: 15px;
    background: #ffef99;
    font-size: 14px;
    color: #333;
    outline: none;
    box-shadow: 2px 2px 0px #333;
    transition: background 0.2s, transform 0.1s;
}

#expense-form input:focus {
    background: #ffe066;
    transform: scale(1.03);
}

/* Cartoon button */
#expense-form button {
    background: #ff6600;
    color: white;
    padding: 10px;
    border-radius: 15px;
    border: 3px solid #333;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 2px 0px #333;
    transition: transform 0.1s, background 0.2s;
}

#expense-form button:hover {
    background: #ff8533;
    transform: translateY(-2px);
}

/* Expense list */
#expense-list {
    list-style: none;
    margin-top: 15px;
}

#expense-list li {
    background: #ffef99;
    margin-bottom: 10px;
    padding: 12px 15px;
    border-radius: 15px;
    border: 3px solid #ffcc00;
    box-shadow: 3px 3px 0px #333;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #333;
    transition: transform 0.2s;
}

#expense-list li:hover {
    transform: scale(1.05);
    background: #ffe066;
}
#expense-list button {
    background: #ff6600;
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    border: 2px solid #333;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 2px 0px #333;
    transition: transform 0.1s, background 0.2s;
    margin-left: 5px;
}

/* Total section */
#total {
    margin-top: 20px;
    font-weight: bold;
    font-size: 18px;
    color: #ff6600;
    text-shadow: 1px 1px 0px #333;
}

#total-amount {
    color: #00cc66;
    font-size: 20px;
}

/* Fun bounce animation */
@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}
