.page-header{
    display: flex;
    gap : 20px;
}
.page-title{
    font-size: 23px;
    margin: 0 ;
}

.new-rec-btn{
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    border: 1px solid #2271b1;
    border-radius: 3px;
    background: #f6f7f7;
    font-size: 13px;
    font-weight: 400;
    line-height: 2.5;
    color: #2271b1;
    padding: 0 10px;
    min-height: 30px;
    &:hover{
        background: none;
    }

}
.search-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border: 1px solid #c3c4c7;
}

.search-table th, 
.search-table td {
    padding: 10px;
    text-align: left;
}
.search-table-data{
    color: #2271b1 ;
    font-size: 14px !important;
    font-weight: 600;
}



.search-table thead ,.search-table  tfoot {
    border: 1px solid #c3c4c7;
}

.search-table th {
    background-color: #fff;
    color: black;
    line-height: 1.4em;
    font-weight: 400;
    font-size: 14px;
}

.search-table tr:nth-child(even) {
    background-color: #fff;
    transition: 0.3s;

}

.search-table tr:nth-child(odd) {
    background-color: #F6F7F7;
    transition: 0.3s;

}

.search-table .button {
    margin-right: 5px;
    font-size: 13px;
    font-weight: 400;
    /* border: 1px solid #2271b1; */
    border-radius: 3px;
    background: #f6f7f7;
    font-weight: 400;
    line-height: 2.15384615;
    color: #2271b1;
    padding: 0 10px;
    min-height: 30px;
    &:hover{
        background: none;
    }
}
.search-table .delete-setting {
    margin-right: 5px;
    font-size: 13px;
    font-weight: 400;
    border-radius: 3px;
    background: #f6f7f7;
    border: 1px solid #b32d2e;
    font-weight: 400;
    line-height: 2.15384615;
    padding: 0 10px;
    min-height: 30px;

    &:hover{
        background: none;
        border: 1px solid #b32d2e;
        outline: none;
    }
    &:active{
        border: 1px solid #b32d2e;
        outline: none;   
    }
    &:focus{
        outline: none;

    }

}

.delete-setting #delete-row{
    color: #b32d2e;    
}


/* Modal Overlay */
.modal-overlay {
    display: none; /* Hide modal by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 720px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 20px;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 25px;
}

.modal-header .modal-title {
    font-size: 18px;
    font-weight: bold;
}

.modal-header .modal-header-close {
    background: none;
    font-size: 22px;
    font-weight: bold;
    color: #ADBFC7;
    border: none;
    cursor: pointer;
}

/* Modal Body */
.modal-body {
    padding: 15px;
    max-height: 400px;
    overflow-y: scroll;
    padding-bottom: 0;
}

/* Shortcode Section */
.shortcode-container {
    display: none;
    background-color: #F6F7F7;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 12px;

}

#copy-code {
    margin-right: 5px;
}

.copy-msg {
    display: none;
    color: green;
}

#copy-code.copied .dashicons {
    color: green;
}

.short-code-result-row{
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    margin-bottom: 10px;

}

.short-code-result-wrapper{
    box-sizing: border-box;
    display: inline-block;
    padding: 0 5px;
    margin-bottom: 0;
    width: 400px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);

}

.short-code-result-container p{
    margin: 5px;
}

.short-code-result-desc{
    margin: 0;
    font-weight: 600;
}


.short-code-result_page-title{
    font-size: 21px;
    font-weight: 600;
}

.shortcode-label{
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    max-width: 200px;
}

#selected_page {
    width: 400px;
    height: 30px;
    outline: 1px solid #2271b1;
    max-height: 100px;
}

.smart_search_result_btn{
    margin-top: 30px;
}

/* Form Fields */
.form-group {
    margin-bottom: 15px;
}

.inputs-desc{
    font-weight: 600;
    margin-top: 5px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #c3c4c7;
    border-radius: 5px;
    font-size: 14px;
}

.label-container {
    display: flex;
    gap:20px;
    align-items: center;
    margin: 20px 0;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    width: 31%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-label-inline {
    width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

#select-all:checked,.custom-checkbox:checked {
    border-color: #2271b1;
}


/* Modal Footer (Actions) */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin : 15px 0 5px 0;
}

.button {
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.button-primary {
    background: #2271b1;
    color: white;
    border: none;
}

.button-primary:hover {
    background: #005a87;
}

/* Advanced Settings Section */
.advance-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F6F7F7;
    border-radius: 5px;
    padding: 0 10px;
    cursor: pointer;
    border: 1px solid #c3c4c7;
    transition: 0.3s;
}

.advance-container:hover {
    background-color: #e9ecef;
}

.advance-container .dashicons {
    transition: transform 0.3s ease-in-out;
}

.advance-container.active .dashicons {
    transform: rotate(90deg);
}

/* Hide the content by default */
.advance-container-toggle {
    display: none;
    padding: 10px;
    border: 1px solid #c3c4c7
    ;
    border-top: none;
    border-radius: 0 0 5px 5px;
    transition: max-height 0.3s ease-in-out;
}

/* Pagination */
.tablenav {
    margin-top: 20px;
}

.tablenav-pages {
    text-align: center;
    margin-top: 10px;
}

.tablenav-pages a.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    background: #fff;
    color: #2271b1;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
}

.tablenav-pages a.page-numbers:hover {
    background: #2271b1;
    color: #fff;
}
.prev , .next{
    border: 1PX solid #2271b1;
}

.tablenav-pages a.current {
    background-color: #2271b1;
    color: #fff;
    font-weight: bold;
    pointer-events: none;
    cursor: default;
}
.admin-msg{
    padding: 3px 10px;
    margin-bottom: 10px;
    font-weight: 600;
    background-color: white;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #ff4d4d;
}
.notice, div.error, div.updated{
    margin-left: 2px;
}

.loading {
    display: inline-block;
    width: 16px;
    margin: 0 3px;
    height: 16px;
    border: 3px solid rgba(0, 0, 0, 0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.smarseco-categories-td, .smarseco-tags-td {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Make container full width */
#searchForm .select2-container {
    width: 100% !important;
}

/* Selection box */
#searchForm .select2-container--default .select2-selection--multiple {
    min-height: 44px;
    padding: 4px 6px;
    border-radius: 8px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
}

/* Selected items (chips) */
#searchForm .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #f1f3f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 8px;
    margin: 4px 4px 0 0;
    font-size: 13px;
    line-height: 20px;
}

/* Remove (x) button */
#searchForm .select2-container--default .select2-selection__choice__remove {
    color: #666;
    margin-right: 6px;
}

#searchForm .select2-container--default .select2-selection__choice__remove:hover {
    color: #e74c3c;
}

/* Search field */
#searchForm .select2-search--inline .select2-search__field {
    margin-top: 6px;
    height: 28px;
    padding-bottom: 8px;
}

/* Clear button */
#searchForm .select2-selection__clear {
    margin-right: 8px;
    font-size: 18px;
}

/* Focus state */
#searchForm .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #4c9aff;
    box-shadow: 0 0 0 2px rgba(76,154,255,0.15);
}