/* Sports Plugin Meta Box Styles */
.cb-meta-box {
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    margin-bottom: 20px;
}

.cb-meta-description {
    font-weight: 600;
    margin-bottom: 15px;
    color: #23282d;
    font-size: 14px;
}

.cb-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.cb-checkbox-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cb-checkbox-item:hover {
    background: #f0f0f1;
    border-color: #0073aa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cb-checkbox-item input[type="checkbox"] {
    margin: 0 8px 0 0;
    accent-color: #0073aa;
}

.cb-checkbox-item input[type="checkbox"]:checked + .cb-checkbox-label {
    font-weight: 600;
    color: #0073aa;
}

.cb-checkbox-label {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
    user-select: none;
}

/* Enhanced styles for better visual hierarchy */
.cb-meta-box h3 {
    background: #0073aa;
    color: white;
    margin: -15px -15px 15px -15px;
    padding: 10px 15px;
    border-radius: 5px 5px 0 0;
    font-size: 14px;
    font-weight: 600;
}

/* Scrollbar styling for checkbox grid */
.cb-checkbox-grid::-webkit-scrollbar {
    width: 8px;
}

.cb-checkbox-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cb-checkbox-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.cb-checkbox-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading state styles */
.cb-checkbox-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.cb-checkbox-grid.loading::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-style: italic;
}

/* Responsive design */
@media screen and (max-width: 782px) {
    .cb-checkbox-grid {
        grid-template-columns: 1fr;
        max-height: 250px;
    }
    
    .cb-checkbox-item {
        padding: 12px;
        font-size: 14px;
    }
    
    .cb-meta-description {
        font-size: 15px;
    }
}

/* Status indicators for relationships */
.cb-relationship-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 5px;
}

.cb-relationship-status.bidirectional {
    background: #46b450;
    color: white;
}

.cb-relationship-status.one-way {
    background: #ffb900;
    color: white;
}

/* Empty state styling */
.cb-checkbox-grid:empty::after {
    content: 'No items available';
    display: block;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Focus states for accessibility */
.cb-checkbox-item:focus-within {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

.cb-checkbox-item input[type="checkbox"]:focus {
    outline: none;
}

/* Animation for checked items */
.cb-checkbox-item input[type="checkbox"]:checked + .cb-checkbox-label {
    animation: checkedPulse 0.3s ease;
}

@keyframes checkedPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

