body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #333;
}

form {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

form input[type="text"],
form input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

form button:hover {
    background-color: #0056b3;
}

#stock-list ul {
    list-style-type: none;
    padding: 0;
}

#stock-list li {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#stock-list li span {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#stock-list input[type="text"],
#stock-list input[type="number"] {
    width: 100px;
    padding: 5px;
    margin-left: 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

#stock-list button {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#stock-list button:hover {
    background-color: #218838;
}

.edit-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.edit-section button {
    margin-left: 10px;
}

.editable {
    display: none;
}
