body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f4f4f8;
    margin: 0;
    padding: 0;
    padding-bottom: 100px;
}

header {
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    margin: 0 0 1rem 0;
}

nav {
    display: flex;
    justify-content: space-around;
}

nav button {
    border: none;
    background: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

nav button.active {
    background-color: #007aff;
    color: white;
}

.item {
    background-color: white;
    margin: 1rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-name {
    font-weight: 600;
}

.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007aff;
    color: white;
    font-size: 32px;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
}
/* Add these styles to the bottom of your CSS file */

.hidden {
    display: none !important;
}

.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#item-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#item-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

#item-form input[type="text"],
#item-form input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box; /* Important! */
}

.quantity-row {
    display: flex;
    gap: 1rem;
}

.quantity-row > div {
    flex: 1;
}

.location-selector {
    display: flex;
    gap: 1rem;
    justify-content: space-around;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

#item-form button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

#item-form button[type="submit"] {
    background-color: #007aff;
    color: white;
}

#cancel-btn {
    background-color: #eee;
}

.scan-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border: 1px dashed #007aff;
    background-color: #f0f8ff;
    color: #007aff;
    border-radius: 8px;
    cursor: pointer;
}
/* Add these styles to the bottom of your CSS file */

/* Modify the .item class to use flexbox */
.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-info {
    flex-grow: 1;
}

.item-quantity {
    font-size: 0.9rem;
    color: #666;
}

.delete-btn {
    background-color: #ff3b30; /* A red color */
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    line-height: 30px; /* Helps center the '×' */
    text-align: center;
}