/**
 * PCRecruiter Block Bindings Editor Styles
 * Save to: assets/css/pcr-block-bindings-editor.css
 */

.pcr-fields-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 10px;
}

.pcr-field-selector {
    padding: 0;
}

.pcr-field-selector .components-notice {
    margin: 8px 16px;
}

.pcr-field-search {
    margin: 16px !important;
}

.pcr-apply-button {
    margin-top: 12px !important;
    width: 100%;
    justify-content: center;
}

.pcr-help-text {
    margin-top: 8px;
    font-size: 12px;
    color: #757575;
    font-style: italic;
}

.pcr-field-category {
    margin-bottom: 16px;
}

.pcr-category-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #1e1e1e;
    margin: 0 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #ddd;
}

.pcr-field-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pcr-field-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pcr-field-item:last-child {
    border-bottom: none;
}

.pcr-field-label {
    flex: 1;
    font-size: 13px;
    min-width: 100px;
}

.pcr-field-value {
    font-size: 11px;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    color: #1e1e1e;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pcr-copy-button {
    padding: 0 !important;
    min-width: 24px !important;
    height: 24px !important;
}

.pcr-copy-button svg {
    width: 16px;
    height: 16px;
}

.pcr-instructions {
    font-size: 13px;
}

.pcr-instructions ol {
    margin: 8px 0;
    padding-left: 20px;
}

.pcr-instructions li {
    margin-bottom: 4px;
}

.pcr-code-example {
    background: #1e1e1e;
    color: #f0f0f0;
    padding: 12px;
    border-radius: 4px;
    font-size: 11px;
    overflow-x: auto;
    white-space: pre;
    margin-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 782px) {
    .pcr-field-value {
        max-width: 100px;
    }
}