/* Budget Container */
.budget-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Reduced gap for tighter layout */
    padding: 0; /* Removed padding */
    margin: 0; /* Removed margin */
}

/* Category Block */
.category-block {
    flex: 1 1 300px;
    max-width: 230px;
    min-width: 180px;
    margin: 0; /* Removed margin */
}

.category-header {
    display: flex;
    justify-content: space-between; /* Aligns the category name and total */
    align-items: center; /* Center vertically */
    padding: 5px; /* Retain padding */
    background-color: #4A6572; /* Muted blue-gray */
    color: #ffffff;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    max-width: 100%; /* Ensures the header doesn't exceed the width of its container */
    box-sizing: border-box; /* Include padding in width calculation */
}

.total {
    font-weight: bold;
    color: #ffffff; /* White for visibility */
    background-color: rgba(74, 101, 114, 0.7); /* Semi-transparent muted blue-gray */
    padding: 5px 10px; /* Add some padding for spacing */
    border-radius: 5px; /* Rounded corners */
}

/* Items Layout */
.items-wrapper {
    display: flex;
    min-width: 200px;
    flex-direction: column;
    padding: 0; /* Removed padding */
    margin: 0; /* Removed margin */
}

/* Item Styles */
.item {
    display: flex;
    align-items: center;
    margin-bottom: 5px; /* Space between items */
    gap: 5px; /* Reduced gap between item components */
}

/* Input Styles */
.item-name input {
    flex: 1; /* Compact size for amount field */
    max-width: 20ch; /* Allow up to 7 characters */
    padding: 6px; /* Slightly reduced padding */
    border: none;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

.item-amount input {
    flex: 1; /* Compact size for amount field */
    max-width: 7ch; /* Allow up to 7 characters */
    padding: 6px; /* Slightly reduced padding */
    border: none;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

/* Focus Effect */
.item-name input:focus
