/* Frontend styles for Bibliocat */
#bibliocat-form div {
    margin-bottom: 15px;
}

#bibliocat-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#bibliocat-form input[type="text"],
#bibliocat-form input[type="number"],
#bibliocat-form textarea,
#bibliocat-form select {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#bibliocat-form button {
    padding: 10px 20px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#bibliocat-form button:hover {
    background-color: #005a87;
}

/* List styles */
.bibliocat-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.bibliocat-table th,
.bibliocat-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.bibliocat-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.bibliocat-table tr:hover {
    background-color: #f9f9f9;
}

.edit-button {
    padding: 5px 10px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.edit-button:hover {
    background-color: #005a87;
}

.locked-notice {
    color: #d63638;
    font-style: italic;
}

#cancel-edit {
    padding: 8px 16px;
    background-color: #dc3232;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

#cancel-edit:hover {
    background-color: #a00;
}

/* Single view styles */
.bibliocat-single-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.bibliocat-single-header {
    border-bottom: 2px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.bibliocat-single-header h1 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 2.5em;
}

.bibliocat-subtitle {
    color: #666;
    font-size: 1.5em;
    font-style: italic;
    margin: 0 0 15px 0;
}

.bibliocat-inventory-number {
    font-size: 1.2em;
    color: #007cba;
    font-weight: bold;
}

.bibliocat-single-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.bibliocat-main-info,
.bibliocat-additional-info {
    flex: 1;
    min-width: 300px;
}

.bibliocat-field {
    margin-bottom: 15px;
}

.bibliocat-field label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.bibliocat-field span,
.bibliocat-field div {
    color: #555;
}

.bibliocat-description-content {
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #007cba;
    margin-top: 5px;
}

.bibliocat-thumbnail {
    flex: 0 0 100%;
    text-align: center;
    margin-top: 30px;
}

.bibliocat-thumbnail img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bibliocat-borrowed .borrowed-status {
    color: #d63638;
    font-weight: bold;
}

.bibliocat-available .available-status {
    color: #00a32a;
    font-weight: bold;
}

.bibliocat-single-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bibliocat-back-link,
.bibliocat-edit-link {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.bibliocat-back-link {
    background-color: #f0f0f0;
    color: #333;
}

.bibliocat-back-link:hover {
    background-color: #e0e0e0;
}

.bibliocat-edit-link {
    background-color: #007cba;
    color: white;
}

.bibliocat-edit-link:hover {
    background-color: #005a87;
}

/* Back button styles */
.bibliocat-back-button {
    margin-bottom: 20px;
}

.bibliocat-back-button .button {
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
}

.bibliocat-back-button .button:hover {
    background-color: #e0e0e0;
}

/* View link styles */
.bibliocat-view-link {
    color: #007cba;
    text-decoration: none;
}

.bibliocat-view-link:hover {
    text-decoration: underline;
}

/* Field and label type classes for consistent styling */
.bibliocat-field {
    margin-bottom: 15px;
}

.bibliocat-label {
    display: inline-block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

/* Specific field type styles */
.bibliocat-field-author .bibliocat-label-author,
.bibliocat-field-type .bibliocat-label-type,
.bibliocat-field-pages .bibliocat-label-pages,
.bibliocat-field-publication .bibliocat-label-publication,
.bibliocat-field-page-range .bibliocat-label-page-range,
.bibliocat-field-publisher .bibliocat-label-publisher,
.bibliocat-field-year .bibliocat-label-year,
.bibliocat-field-isbn .bibliocat-label-isbn,
.bibliocat-field-description .bibliocat-label-description,
.bibliocat-field-provenance .bibliocat-label-provenance,
.bibliocat-field-owner .bibliocat-label-owner,
.bibliocat-field-location .bibliocat-label-location,
.bibliocat-field-borrowed .bibliocat-label-borrowed,
.bibliocat-field-available .bibliocat-label-available,
.bibliocat-field-inventory-number .bibliocat-label-inventory-number {
    /* Consistent label styling for all field types */
    font-weight: bold;
    color: #333;
}