/* Modal Styles */
.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: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form fields */
#newBookForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#newBookForm input[type="text"],
#newBookForm input[type="number"],
#newBookForm input[type="date"],
#newBookForm textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#newBookForm input[type="file"] {
    margin-bottom: 10px;
}

/* Flexbox for rows */
.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.form-row label {
    flex: 1;
    margin-right: 10px;
}

.form-row input[type="number"] {
    width: 80px; /* Adjusted smaller size for number of pages */
}

/* Star rating alignment */
.star-rating {
    display: flex;
    margin-bottom: 10px;
}

.star-rating span {
    font-size: 30px;
    margin-right: 5px;
    cursor: pointer;
}

/* Button */
#newBookForm button {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#newBookForm button:hover {
    background-color: #0056b3;
}

/* Responsive Design for Modal */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin-top: 10%;
    }
    .form-row {
        flex-direction: column;
    }
}
