* {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100vh;
    background: #f2f4f7;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

.container {
    background: #ffffff;
    width: 420px;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

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

.input-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.input-section button {
    grid-column: span 2;
    height: 42px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.input-section button:hover {
    background: #43a047;
}

input {
    height: 42px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

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

li {
    background: #f7f8fc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info {
    flex: 1;
}

.amount {
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
}

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

.delete-btn:hover {
    background: #e85c5c;
}

footer {
    text-align: center;
    font-size: 12px;
    color: gray;
    margin-top: 10px;
}
