/**
 * Admin styles for Find Blocks, Patterns & Shortcodes plugin
 * Loaded only on the plugin's admin page
 */

.fbps-search-section {
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.fbps-search-section > h2 {
    margin-top: 20px;
}

.wrap > h1 {
    margin-bottom: 20px;
}

.fbps-search-field {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    margin-bottom: 0;
}

.fbps-search-field:nth-child(odd) {
    background: #f6f7f7;
}

.fbps-search-field:nth-child(even) {
    background: #fff;
}

.fbps-search-field label {
    min-width: 200px;
    flex-shrink: 0;
    padding-top: 6px;
    font-weight: 500;
}

.fbps-search-field .fbps-field-content {
    flex: 1;
    min-width: 0;
}

.fbps-search-field .description {
    display: block;
    margin-top: 4px;
}

.fbps-search-input,
.fbps-block-dropdown,
.fbps-pattern-dropdown,
.fbps-shortcode-dropdown {
    max-width: 300px;
    width: 100%;
}

.fbps-post-types-select {
    max-width: 300px;
    width: 100%;
}

.fbps-search-actions {
    padding: 12px 16px;
    background: #f0f0f1;
    border-top: 1px solid #c3c4c7;
}

.fbps-results-container {
    margin-top: 20px;
}

.fbps-search-input:focus,
#fbps-class-name:focus,
#fbps-anchor-name:focus,
.fbps-block-dropdown:focus,
.fbps-pattern-dropdown:focus,
.fbps-shortcode-dropdown:focus,
.fbps-post-types-select:focus,
#fbps-search-button:focus,
#fbps-cancel-button:focus,
#fbps-export-button:focus,
#fbps-pattern-search-button:focus,
#fbps-pattern-cancel-button:focus,
#fbps-pattern-export-button:focus,
#fbps-shortcode-search-button:focus,
#fbps-shortcode-cancel-button:focus,
#fbps-shortcode-export-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

#fbps-search-results a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 1px;
}

.post-type-label {
    color: #646970;
    font-style: italic;
}

.fbps-results-count {
    font-weight: 600;
    margin-bottom: 0.5em;
}

.fbps-progress-container {
    margin-top: 20px;
}

.fbps-progress-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f0f0f1;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: fbps-spinner-rotation 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes fbps-spinner-rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.fbps-progress-message {
    display: inline-block;
    vertical-align: middle;
}

.fbps-column-toggles {
    margin-bottom: 15px;
    border: none;
    padding: 0;
}

.fbps-column-toggles legend {
    font-weight: 600;
    margin-bottom: 5px;
}

.fbps-column-toggles label {
    margin-right: 15px;
    cursor: pointer;
    display: inline-block;
}

.fbps-column-toggles input[type="checkbox"] {
    margin-right: 4px;
}

.fbps-results-table th.sortable {
    cursor: pointer;
}

.fbps-results-table th.sortable a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.fbps-results-table th.sortable:hover {
    background: #f0f0f1;
}

.fbps-results-table th.sortable .sorting-indicator {
    margin-left: 12px;
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    line-height: 1;
}

.fbps-results-table th.sortable .sorting-indicator:before {
    content: "\25B2\25BC";
    font-size: 10px;
    color: #c3c4c7;
    letter-spacing: -3px;
}

.fbps-results-table th.sortable.sorted.asc .sorting-indicator:before {
    content: "\25B2";
    color: #2c3338;
    letter-spacing: normal;
}

.fbps-results-table th.sortable.sorted.desc .sorting-indicator:before {
    content: "\25BC";
    color: #2c3338;
    letter-spacing: normal;
}
