@media screen and (max-width: 767px) {
    h1 {
        justify-content: center;
    }
}

.authorbycategory-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.authorbycategory-row label {
    font-weight: 600;
}

.authorbycategory-handle {
    cursor: move;
}

.authorbycategory-remove-row {
    color: #b32d2e;
}

.wp-admin .select2-container--default .select2-selection--multiple {
    width: 100%;
    border: 2px solid #eee;
    border-radius: 8px;
}

.wp-admin .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #efefef;
    border: 1px solid #ddd;
}

.wp-admin .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #4f7bfc;
}

.wp-admin .select2-container--default.select2-container--focus .select2-selection--multiple {
    border: solid #3a4fff 2px;
}

.wp-admin .select2-dropdown {
    border: 2px solid #a2b4ec;
    border-radius: 8px;
}

.wp-admin .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #5f81eb;
}

.wp-admin .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right: 1px solid #dddddd;
}

form {
    padding: 15px;
    background: #fcfcfc;
    border-radius: 20px;
    overflow-x: auto;
    margin-top: 20px;
}

.wp-core-ui .button-primary:focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #414041;
}

button.button-link-delete.authorbycategory-remove-row {
    border-radius: 50%;
    width: 33px;
    height: 33px;
    border: unset;
    color: #202020;
    font-size: 15px;
}

button.button-link-delete.authorbycategory-remove-row:hover {
    color: #eb002c;
    font-weight: 600;
    box-shadow: inset 0 0 0 2px #eb002c;
    transform: scale(1.1);
}

button#authorbycategory-add-row {
    background: #394eff;
    border: none;
    border-radius: 50px;
    padding: 5px 30px;
    font-weight: 500;
    color: #fff;
    margin: 15px 0 15px 0;
}

@media screen and (max-width: 767px) {
    .authorbycategory-row {
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        padding: 20px 10px;
        border: 2px solid #f5f5f5;
        border-radius: 10px;
    }

    .authorbycategory-remove-row {
        margin-top: 10px;
    }
}

@media screen and (max-width: 767px) {
    .authorbycategory-roles {
        display: flex;
        flex-direction: column;
    }
}

button.button.button-primary {
    background: #2b2b2d;
    border: none;
    border-radius: 50px;
    padding: 5px 20px;
    font-weight: 500;
}

button.button.button-primary:hover {
    background: #414041;
}

/* Import/Export Section */
.authorbycategory-import-export {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.authorbycategory-import-export p:first-child {
    margin-top: 0;
}

button#authorbycategory-export,
button#authorbycategory-import {
    background: #394eff;
    border: none;
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

button#authorbycategory-export:hover,
button#authorbycategory-import:hover {
    background: #2a3ed9;
}

button#authorbycategory-export:disabled,
button#authorbycategory-import:disabled {
    background: #999;
    cursor: not-allowed;
}

input#authorbycategory-import-file {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
}

input#authorbycategory-import-file:focus {
    border-color: #3a4fff;
    outline: none;
}