body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 90%;
    max-width: 1000px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.form-container {
    margin-bottom: 30px;
    padding: 20px;
    background: #e9ecef;
    border-radius: 5px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.form-container h3 {
    width: 100%;
    margin-top: 0;
}

input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover {
    opacity: 0.8;
}

.form-container button {
    background-color: #28a745;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
td {
    font-size: 1.4em;
    font-weight: bold;
}

th {
    background-color: #007bff;
    color: white;
}

.btn-plus {
    background-color: #28a745;
    color: white;
    margin-right: 5px;
}

.btn-minus {
    background-color: #dc3545;
    color: white;
}

.tally {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    letter-spacing: 2px;
    color: #ff0000;
    font-size: 1.6em;
}

.total {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
}

@media (max-width: 600px) {
    .form-container {
        flex-direction: column;
        align-items: stretch;
    }
}
