/* Categories Display Block - Editor Styles */
.tv3-categories-placeholder {
    min-height: 120px;
}

.tv3-categories-placeholder .components-placeholder__preview {
    padding: 20px;
}

/* Inspector Controls Styling */
.block-editor-block-inspector .components-panel__body h2 {
    font-size: 14px;
    font-weight: 600;
}

.block-editor-block-inspector .components-base-control__label {
    font-weight: 500;
    margin-bottom: 8px;
}

.block-editor-block-inspector .components-checkbox-control__label {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Category Selection Checkboxes */
.block-editor-block-inspector .components-checkbox-control {
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.block-editor-block-inspector .components-checkbox-control:hover {
    background-color: #f8f9fa;
}

.block-editor-block-inspector .components-checkbox-control__input:checked + .components-checkbox-control__label {
    font-weight: 600;
    color: #007cba;
}

/* Range Control Styling */
.block-editor-block-inspector .components-range-control__wrapper {
    margin-bottom: 16px;
}

.block-editor-block-inspector .components-range-control__track {
    background: #ddd;
    height: 4px;
}

.block-editor-block-inspector .components-range-control__thumb {
    background: #007cba;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Toggle Control Styling */
.block-editor-block-inspector .components-form-toggle {
    margin-right: 12px;
}

.block-editor-block-inspector .components-form-toggle.is-checked .components-form-toggle__track {
    background-color: #007cba;
}

/* Select Control Styling */
.block-editor-block-inspector .components-select-control__input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
}

.block-editor-block-inspector .components-select-control__input:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: none;
}

/* Panel Body Improvements */
.block-editor-block-inspector .components-panel__body {
    border-top: 1px solid #e0e5e9;
}

.block-editor-block-inspector .components-panel__body:first-child {
    border-top: none;
}

.block-editor-block-inspector .components-panel__body .components-panel__body-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
}

/* Help Text */
.block-editor-block-inspector p[style*="fontStyle"] {
    background: #f0f6fc;
    border-left: 3px solid #007cba;
    padding: 12px 16px;
    margin: 0 0 16px 0;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    color: #0073aa;
}

/* Preview Box in Placeholder */
.tv3-categories-placeholder div[style*="background: #f5f5f5"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px dashed #007cba !important;
    color: #495057 !important;
}

.tv3-categories-placeholder strong {
    color: #007cba;
    font-size: 14px;
}

.tv3-categories-placeholder span {
    font-size: 12px;
    color: #6c757d;
}

/* Responsive adjustments for editor */
@media (max-width: 782px) {
    .block-editor-block-inspector .components-checkbox-control__label {
        font-size: 14px;
    }

    .block-editor-block-inspector .components-select-control__input {
        padding: 10px 14px;
        font-size: 14px;
    }
}
