.main-content {
    padding: 0 40px;
}
/* ------------------- Tool bar ------------------- */
.top-contents {
    display: flex;
    align-items: center;
    margin-top: 10px;
    justify-content: space-between;
}

.index-of-item {
    display: flex;
    align-items: center;
}

.index-of-item-text {
    font-size: 14px;
    margin-right: 4px;
    color: var(--gray-100);
}

.prev-next-btn-icon {
    color: var(--blue-100);
    font-size: 20px;
    text-decoration: unset;
}

.prev-next-btn {
    cursor: pointer;
    display: flex;
    background-color: unset;
    border: none;
    gap: 6px;
    align-items: center;
    padding: 10px;
    width: fit-content;
}

.prev-next-btn:hover,
.prev-next-btn.active {
    background-color: var(--gray-10);
    border-radius: 4px;
}

.action-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-item img {
    height: 80px;
    width: 80px;
    border-radius: 4px;
    object-fit: contain;
}

.sort-dropdown-btn {
    display: flex;
    position: relative;
    width: 210px;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--gray-20);
    border-radius: 4px;
}

.sort-dropdown-btn:hover {
    border: 1px solid var(--gray-100);
}

.sort-dropdown-btn-text {
    font-weight: 400;
    font-size: 14px;
    color: var(--gray-100);
}

.sort-dropdown {
    margin-top: 5px;
    border-radius: 5px;
    position: absolute;
    width: 100%;
    max-height: 338px;
    overflow: auto;
    top: 100%;
    left: 0;
    display: none;
    list-style: none;
    padding: 16px 0;
    background-color: var(--white);
    border: 1px solid #eaebef;
    box-shadow: 0 0 3px var(--gray-20), 0 0 3px var(--gray-20);
    transition: opacity 0.25s ease, transform 0.25s ease;
    animation: slideDown 0.25s forwards;
    z-index: 5;
}

#sort-dropdown:checked ~ .sort-dropdown {
    display: block;
}

#categories-dropdown:checked ~ .sort-dropdown {
    display: block;
}
.remove-whitelist{
    margin-left: 10px;
}
.whitelist-domains-inner{
    margin-bottom: 40px;
}
.sub-category{
    padding-left: 25px !important;
}
.dropdown-btn {
    display: flex;
    font-size: 14px;
    font-weight: 400;
    padding: 14px;
    padding-right: 10px;
    gap: 10px;
    border: none;
    align-items: center;
    position: relative;
    color: var(--gray-100);
    background-color: var(--white);
}

.dropdown-btn:hover {
    color: var(--blue-95);
    background-color: var(--gray-10);
}

.search-input {
    display: flex;
    position: relative;
    font-size: 14px;
    font-weight: 400;
    padding: 12px 16px;
    padding-right: 50px;
    border: 1px solid var(--gray-20);
    border-radius: 4px;
    gap: 10px;
    outline: unset;
    margin-left: 4px;
    width: 266px;
}

.search-bar {
    display: flex;
    position: relative;
}

.search-bar label {
    cursor: pointer;
}

.search-input:focus {
    border: 1px solid var(--gray-100);
}

.search-input:hover {
    border: 1px solid var(--gray-100);
}

.search-input::placeholder {
    font-weight: 400;
    font-size: 14px;
    color: var(--gray-100);
}

.search-bar .icon-search {
    position: absolute;
    top: 4px;
    right: 5px;
    bottom: 4px;
    border-radius: 4px;
    background-color: var(--blue-95);
    align-self: center;
    padding: 6px 10px;
    font-size: 20px;
    color: var(--white);
    border: none;
    cursor: pointer;
}
/* ---------------------------------------------------- */

.parent-category {
    display: none;
}

table {
    width: 100%;
}

.table-row {
    display: table-cell;
    height: 56px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--gray-20);
    text-align: left;
    vertical-align: middle;
}

.table-header {
    border-top: 1px solid var(--gray-20);
    padding: 16px 8px;
    margin-top: 10px;
}

.table-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-100);
}

.table-text-gray {
    color: var(--gray-100);
}

.table-body {
    margin-top: 10px;
    width: calc(100% + 38px);
    padding-right: 32px;
    height: calc(100vh - 280px);
    overflow-y: auto;
}

.dropdown-table-text {
    font-weight: 400;
}

.edit-remove-actions {
    display: flex;
    flex-direction: row;
    gap: 60px;
}

.edit-remove-actions-icon {
    font-size: 20px;
    color: var(--gray-100);
}

.edit-remove-actions-text {
    font-size: 14px;
    color: var(--gray-100);
}

.orange-checkbox, .blue-checkbox {
    width: 16px;
    height: 16px;
    position: relative;
    cursor: pointer;
}

.orange-checkbox:before, .blue-checkbox:before {
    content: "";
    display: block;
    position: absolute;
    width: 12px;
    height: 12px;
    top: 0;
    left: 0;
    border: solid 2px var(--gray-100);
    border-radius: 2px;
}

.orange-checkbox:checked:before, .blue-checkbox:checked:before {
    content: "";
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    background-color: var(--blue-100);
    border: none;
}
.orange-checkbox:checked:before{
    background-color: var(--orange-100);
}

.orange-checkbox:checked:after, .blue-checkbox:checked:after {
    content: "";
    display: block;
    width: 3px;
    height: 7px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
    top: 2px;
    left: 6px;
}

.slug {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 8px;
    background-color: var(--blue-100);
    color: var(--white);
    border-radius: 3px;
    width: fit-content;
}

.slug-drop-down {
    background-color: var(--gray-50);
}

.drop-down-categories {
    background-color: var(--gray-5);
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

/* -------Animation----------- */

.drop-down-categories.expand-animation {
    height: auto;
}

.prev-next-btn .prev-next-btn-icon {
    transition: transform 0.3s ease;
}

.prev-next-btn.rotate .prev-next-btn-icon {
    transform: rotate(180deg);
}

/* --------------------------- */

#popupForm {
    position: absolute;
    display: none;
    height: 100%;
    width: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    justify-content: center;
    align-items: center;
}

.popup-label {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: black;
    opacity: 0.3;
    z-index: 5;
}

.categories-form,
.delete-confirm-form {
    background-color: var(--white);
    max-width: 890px;
    width: fit-content;
    z-index: 6;
    border-radius: 10px;
    border: 1px solid var(--gray-20);
}

#popupDeleteConfirm, #popupDeleteComponentConfirm {
    position: absolute;
    display: none;
    height: 100%;
    width: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    z-index: 6;
}

#popupDeleteConfirm .categories-form,
.delete-confirm-form {
    z-index: 7;
}

.categories-form-header,
.delete-confirm-form-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 16px 40px;
    gap: 15px;
    position: relative;
}

.categories-form-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 24px 40px;
    gap: 10px;
    border-top: 1px solid var(--gray-20);
    border-bottom: 1px solid var(--gray-20);
}

.categories-form-body .ignore-permission input{
    position: relative;
    top: 3px;
    width: 15px;
    height: 15px;
    border: 1px solid var(--gray-20);
    cursor: pointer;
    margin: 0 7px 0 0;
}
.categories-form-body .ignore-permission label{
    background-color: transparent!important;
}
.categories-form-body .ignore-permission label,
.categories-form-body h3 {
    font-size: 14px;
    line-height: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.categories-form .btn {
    padding: 11.5px 20px;
}

.categories-form h4 {
    font-size: 14px;
    line-height: 18px;
}

.categories-form label,
.delete-confirm-form label {
    background-color: var(--gray-10);
}

.categories-form label:hover,
.cancel_delete_component:hover,
.delete-confirm-form label:hover {
    background-color: var(--gray-5);
}

.delete_component:hover {
    background-color: var(--blue-95);
}

.categories-form label h4,
.delete-confirm-form label h4 {
    color: var(--blue-95);
}

.categories-form span {
    color: var(--red);
}

#categories-form-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 27px;
}

.categories-form-footer,
.delete-confirm-form-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 40px;
    gap: 15px;
}

.categories-form-body h4 {
    font-size: 14px;
    font-weight: 600;
}

.form-part {
    width: 100%;
    align-items: center;
}

.type-inputs {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.type-inputs-message {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cancel-confirm-form {
    display: flex;
    gap: 15px;
}
.categories-form-input {
    font-size: 14px;
    font-weight: 400;
    padding: 12px;
    border: 1px solid var(--gray-20);
    border-radius: 4px;
    gap: 10px;
    outline: unset;
    width: 100%;
    color: var(--gray-100);
}

.hover:hover {
    background-color: var(--gray-5);
}

.view {
    display: none;
}

.view-active {
    display: block;
}

.grid-container {
    width: calc(100% + 38px);
    padding-right: 32px;
    margin-top: 22px;
    height: calc(100vh - 280px);
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.grid-item {
    border: 1px solid var(--gray-20);
    border-radius: 4px;
    height: auto;
    height: min-content;
    min-height: 379px;
    max-height: 438px;
    background-color: var(--white);
}

.grid-item:hover {
    border: 1px solid var(--gray-50);
}

.grid-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.grid-item img {
    border-radius: 4px 4px 0 0;
    width: 100%;
    height: 238px;
    object-fit: cover;
}

.grid-item-text {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.grid-item-text-border {
    width: 100%;
    padding: 8px 0;
    margin: 8px 0 10px;
    border-top: 1px solid var(--gray-20);
    border-bottom: 1px solid var(--gray-20);
}

.item-not-found {
    height: 429px;
    width: 100%;
    margin-top: 66px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.item-not-found img {
    width: 240px;
    object-fit: contain;
}

.item-not-found h3 {
    margin-top: 32px;
    line-height: 13px;
    font-size: 20px;
    font-weight: 400;
    color: var(--blue-100);
}

.item-not-found span {
    margin-top: 11px;
    line-height: 13px;
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-100);
}

.slug, .name, .copy-inner {
    position: relative;
}

.copy-btn {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    border: none;
    border-radius: 3px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    padding: 3.5px 6px;
    gap: 7px;
    z-index: 1;
    cursor: pointer;
}

.grid-item-text .copy-inner:hover .copy-btn,
.name:hover .copy-btn,
.slug:hover .copy-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
