/* GcCheckBoxEditor Styles */

.gc-checkbox-editor {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

/* Horizontal Layout */
.gc-checkbox-horizontal {
    flex-direction: row;
}

.gc-checkbox-horizontal .gc-checkbox-item {
    margin-right: 1rem;
    margin-bottom: 0.25rem;
}

/* Vertical Layout */
.gc-checkbox-vertical {
    flex-direction: column;
}

.gc-checkbox-vertical .gc-checkbox-item {
    margin-bottom: 0.5rem;
}

/* Checkbox Item */
.gc-checkbox-item {
    display: flex;
    align-items: center;
    min-height: 1.5rem;
}

/* Checkbox Label */
.gc-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--bs-body-color);
    margin: 0;
    padding: 0.25rem 0;
    transition: color 0.15s ease-in-out;
}

.gc-checkbox-label:hover {
    color: var(--bs-primary);
}

/* Checkbox Input */
.gc-checkbox-input {
    margin: 0 0.5rem 0 0;
    cursor: pointer;
    width: 1rem;
    height: 1rem;
    accent-color: var(--bs-primary);
}

/* Checkbox Input Focus */
.gc-checkbox-input:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Readonly State */
.gc-checkbox-editor.readonly .gc-checkbox-label {
    cursor: not-allowed;
    opacity: 0.6;
}

.gc-checkbox-editor.readonly .gc-checkbox-input {
    cursor: not-allowed;
}

/* Dark Theme Support */
[data-bs-theme="dark"] .gc-checkbox-label {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .gc-checkbox-label:hover {
    color: var(--bs-primary);
}

/* Compact Mode for Filter Panel */
.gc-filter-panel .gc-checkbox-editor {
    gap: 0.25rem;
}

.gc-filter-panel .gc-checkbox-horizontal .gc-checkbox-item {
    margin-right: 0.75rem;
}

.gc-filter-panel .gc-checkbox-label {
    font-size: 0.8rem;
}

.gc-filter-panel .gc-checkbox-input {
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.375rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gc-checkbox-horizontal {
        flex-direction: column;
    }
    
    .gc-checkbox-horizontal .gc-checkbox-item {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
}

/* Custom Styling for Specific Use Cases */
.gc-checkbox-editor.compact {
    gap: 0.125rem;
}

.gc-checkbox-editor.compact .gc-checkbox-item {
    margin-right: 0.5rem;
    margin-bottom: 0.125rem;
}

.gc-checkbox-editor.compact .gc-checkbox-label {
    font-size: 0.75rem;
    padding: 0.125rem 0;
}

.gc-checkbox-editor.compact .gc-checkbox-input {
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.25rem;
}

/* Success/Error States */
.gc-checkbox-editor.has-success .gc-checkbox-input {
    accent-color: var(--bs-success);
}

.gc-checkbox-editor.has-error .gc-checkbox-input {
    accent-color: var(--bs-danger);
}

/* Animation for Selection */
.gc-checkbox-input:checked + span {
    font-weight: 500;
}

.gc-checkbox-label:has(.gc-checkbox-input:checked) {
    color: var(--bs-primary);
    font-weight: 500;
}

/* Accessibility Improvements */
.gc-checkbox-input:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .gc-checkbox-input {
        border: 2px solid currentColor;
    }
    
    .gc-checkbox-input:checked {
        background-color: currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .gc-checkbox-label {
        transition: none;
    }
} 