/* Client-specific styles */

/* Custom checkbox styling for categories */
.category-checkbox,
#all {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    /* gray-300 */
    border-radius: 4px;
    background-color: white;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-checkbox:hover,
#all:hover {
    border-color: #22c55e;
    /* green-500 */
}

.category-checkbox:focus,
#all:focus {
    outline: 2px solid #22c55e;
    /* green-500 */
    outline-offset: 2px;
}

.category-checkbox:checked,
#all:checked {
    background-color: #16a34a;
    /* green-600 */
    border-color: #16a34a;
    /* green-600 */
}

.category-checkbox:checked::after,
#all:checked::after {
    content: '';
    position: absolute;
    left: 2px;
    top: -1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Category filter section styling */
.category-filter-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 16px;
}

.category-filter-section h3 {
    color: #374151;
    /* gray-700 */
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.category-item:hover {
    background-color: #f9fafb;
    /* gray-50 */
    padding-left: 8px;
    border-radius: 4px;
}

.category-item label {
    color: #374151;
    /* gray-700 */
    cursor: pointer;
    margin-left: 12px;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.category-item:hover label {
    color: #111827;
    /* gray-900 */
}

/* Responsive books grid layout */
.books-grid {
    display: block;
    width: 100%;
}

.book-row {
    display: flex;
    gap: 30px;
    margin-bottom: 32px;
}

.book-row:last-child {
    margin-bottom: 0;
}

.group:hover #overlay-menu,
#overlay-menu:focus-within {
    opacity: 1;
}