body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.container {
    padding: 10px;
}

.header h1 {
    margin: 0;
    font-size: 18px;
}

.nav-links input,
.nav-links button {
    padding: 8px;
    font-size: 12px;
    border-radius: 5px;
    margin: 3px;
}

.btn {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
    margin: 3px;
}

.btn-green {
    background-color: #28a745;
    color: white;
    border: none;
}

.btn-blue {
    background-color: #007bff;
    color: white;
    border: none;
}

.filters {
    padding: 5px;
    margin-bottom: 15px;
}

.filters label {
    display: block;
    margin-top: 8px;
    font-size: 12px;
}

.filters input,
.filters select {
    padding: 8px;
    margin: 3px 0;
    font-size: 12px;
    width: 100%;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f8f8;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px; /* Ensure the modal doesn't get too wide */
    border-radius: 10px;
    word-wrap: break-word; /* Ensure long text wraps */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    word-wrap: break-word; /* Ensure long text wraps */
}

.modal-item input.quantity-input {
    width: 50px;
    height: 40px; /* Make input taller */
    font-size: 16px; /* Make input text larger */
    text-align: center;
    margin-right: 10px;
    flex-shrink: 0; /* Ensure the input doesn't shrink */
}

.modal-item button.delete-btn {
    padding: 8px;
    font-size: 14px;
    margin-left: 10px; /* Add space between text and delete button */
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-item button.delete-btn:hover {
    background-color: #c82333;
}

.modal-item button.submit-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-item button.submit-btn:hover {
    background-color: #218838;
}

#textListContent {
    white-space: pre-wrap; /* Ensure text wraps in the modal */
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters input,
    .filters select,
    .filters button {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        display: table;
    }

    th, td {
        padding: 4px;
        font-size: 12px;
        text-align: left;
        border-bottom: 1px solid #ddd;
        word-wrap: break-word;
    }
}

/* Make checkboxes larger */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    transform: scale(1.5);
}
