/* Custom CSS to style select elements when they are invalid */
.select-wrapper .is-invalid .choices {
    border-color: #dc3545 !important; /* Bootstrap's default invalid color */
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); /* Bootstrap's style for validation feedback */
}
/* Styles for Choices.js when validation fails */
.is-invalid .choices__inner {
    border-color: #dc3545 !important; /* Bootstrap's default color for invalid inputs */
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); /* Bootstrap's style for validation feedback */
}

.course-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.course-form .form-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.course-form .form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    height: auto;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.course-form .btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.course-form .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}
#successPassword {
    display: none; /* Initially hidden */
    color: green;
    font-size: 16px;
    margin-top: 10px;
}

#editeBookCategory{
    float: right;
    opacity: 0.9;
    padding-right: 8px;
}
#croppedImagePreview {
    display: block;
    margin: 0 auto; /* Ensure the image is centered */
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
}

#imageCropContainer {
    position: relative;
    max-width: 600px;
    max-height: 450px;
    overflow: hidden; /* Crop container should not overflow */
    margin: 0 auto; /* Center the crop container */
}

#imageCropPreview {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
}
