* {
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.app {
    background: #fff;
    width: 420px;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

h1 {
    text-align: center;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.input-card {
    display: grid;
    gap: 10px;
}

.input-card input,
.input-card select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.input-card button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.3s;
}

.input-card button:hover {
    background: #5a67d8;
}

.total-card {
    margin: 20px 0;
    padding: 15px;
    background: #f4f6ff;
    border-radius: 10px;
    text-align: center;
}

.total-card span {
    color: #555;
    font-size: 14px;
}

#list {
    list-style: none;
    padding: 0;
}

.expense {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    background: #f9fafb;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease;
}

.expense-info {
    display: flex;
    flex-direction: column;
}

.badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 4px;
    width: fit-content;
    color: white;
}

.Food { background: #10b981; }
.Travel { background: #3b82f6; }
.Shopping { background: #ec4899; }
.Bills { background: #f59e0b; }

.delete {
    background: #ef4444;
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.delete:hover {
    background: #dc2626;
}

.empty {
    text-align: center;
    color: #888;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
