/* NWS Product Filter Admin Styles */

.wrap#nws-filter h1 {
    margin-bottom: 1rem;
}

.sortable-list {
    max-width: 600px;
    margin: 1rem 0;
}

.sortable-list ul#sortable {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sortable-list ul#sortable li {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.07);
    cursor: move;
    transition: all 0.2s ease;
}

.sortable-list ul#sortable li:hover {
    background: #f8f9fa;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.1);
}

.sortable-list ul#sortable li.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.sortable-list ul#sortable li label {
    display: block;
    margin: 0;
    cursor: move;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sortable-list ul#sortable li label input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.1);
}

.sortable-list ul#sortable li label:after {
    content: '\f545';
    font-family: 'dashicons';
    font-size: 21px;
    color: #666;
    transition: color 0.2s;
}

.sortable-list ul#sortable li:hover label:after {
    color: #007cba;
}

.nws-filter-usage {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    border-radius: 0 4px 4px 0;
}

.nws-filter-usage h3 {
    margin-top: 0;
    color: #007cba;
}

.nws-filter-usage ul {
    margin: 1rem 0;
}

.nws-filter-usage li {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.nws-filter-usage code {
    background: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    border: 1px solid #ddd;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d14;
}

.notice.notice-success {
    border-left-color: #46b450;
}

/* Admin form styling */
.wrap#nws-filter form {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 1rem 0;
}

.wrap#nws-filter form h3 {
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.wrap#nws-filter form p {
    color: #666;
    font-style: italic;
}

.wrap#nws-filter .submit {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1.5rem;
}
