/* h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0;
} */

.uamt-swal-container {
    z-index: 9999999 !important;
}

.wrap-main-header {
    position: sticky;
    top: 32px;
    z-index: 100;
    background: #0B3B48;
    padding: 6px 15px;
    margin-left: -20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wrap-main-header h1 {
    color: #fff;
}

.wrap-main-header img {
    width: 15%;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    border: 1px solid #1FA8CE;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: #1FA8CE;
    transition: .4s;
    border-radius: 50%;
    top: 3px;
}

input:checked+.slider {
    background-color: #1FA8CE;
}

input:checked+.slider:before {
    transform: translateX(19px);
    content: "";
    background-color: #fff;
}

/* Hover effects for toggle switches */
.switch:hover .slider {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.switch input:focus+.slider {
    box-shadow: 0 0 5px rgba(34, 113, 177, 0.5);
}

/* Main plugin styles */
.wrap-main-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 0 24px;
    margin-left: -20px;
}

.sub-header-text-left h2 {
    color: #16191A;
    font-size: 24px;
    font-weight: 400;
}

.sub-header-text-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sub-header-text-right p {
    color: rgba(255, 255, 255, 0.80);
    text-align: center;
    font-size: 14px;
    font-weight: 400;
}

.sub-header-text-right a {
    margin-right: 30px;
    display: flex;
    padding: 10px 16px;
    align-items: flex-start;
    gap: 10px;
    border-radius: 6px;
    background: #1FA8CE;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #1FA8CE;
    text-decoration: none;
    transition: linear .4s;
}

.sub-header-text-right a:hover {
    background: #fff;
    color: #1FA8CE;
}

.ua-header-area-main {
    position: sticky;
    top: 93px;
    background: #FFF;
    z-index: 111;
    border-bottom: 1px solid rgba(221, 221, 221, 0.87);
    margin-bottom: 20px;
    margin-left: -20px;
}

.ua-header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    gap: 16px;
    margin-top: 0px;
    padding: 10px 10px 10px 25px;
}

.header-left h3 {
    color: #16191A;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 120%;
    margin-top: 0;
}

.header-left p {
    color: #5C637E;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 0;
    margin-top: 10px;
}

.ua-header-area .uamt-button-primary {
    background: #1FA8CE;
    border: 1px solid #1FA8CE;
    padding: 8px 1px;
    color: #fff;
    border-radius: 5px;
    transition: linear .4s;
    font-weight: 500;
    font-size: 16px;
    margin-top: 0px;
    cursor: pointer;
    width: 15%;
}

.ua-header-area .search-right {
    width: 30%;
    justify-content: end;
}

#ua-search-input {
    width: 250px;
    padding: 6px 10px 6px 30px;
    background-color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg fill="gray" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M505 442.7l-99.7-99.7c28.3-34.9 45.3-79 45.3-127.1C450.6 97.2 353.4 0 233.8 0S17 97.2 17 215.9 114.2 431.8 233.8 431.8c48.1 0 92.2-17 127.1-45.3l99.7 99.7c5.6 5.6 14.6 5.6 20.2 0l24.2-24.2c5.5-5.6 5.5-14.6 0-20.3zM233.8 373.1c-86.9 0-157.3-70.5-157.3-157.2S147 58.6 233.8 58.6 391.2 129 391.2 215.9s-70.4 157.2-157.4 157.2z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 8px center;
    background-size: 16px;
    border: 1px solid rgba(221, 221, 221, 0.87);
    border-radius: 6px;
    margin-bottom: 0px;
}

.upload-anything-wrap-item {
    display: flex;
    gap: 30px;
    /* margin-top: 10px; */
}

.upload-anything-wrap {
    width: 60%;
}

.mime-head {
    background: #1FA8CE;
}

.mime-head tr th {
    color: #fff !important;
    padding: 20px 10px;
}

.ua-table-text {
    background-color: #1FA8CE;
    color: #fff;
}

.ua-table-text th {
    color: #fff;
    padding: 10px;
}

table.widefat {
    border: none;
}

.widefat td,
.widefat th {
    border-bottom: 1px solid rgba(221, 221, 221, 0.87);
}

.ua-table tr {
    border-bottom: 1px solid #eee;
}

.ua-table tr:last-child {
    border-bottom: none;
}

.ua-custom-section {
    border: 1px solid #ccc;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    margin-top: 30px;
}

.mime-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.mime-row input {
    padding: 6px;
    width: 200px;
}

.button.delete-mime {
    background: #fff;
    color: #000;
    align-items: center;
    display: flex;
    justify-content: center;
    border-color: #aa0000;
    border: none;
    padding: 3px 5px !important;
    width: max-content;
    margin: 0 auto;
    /* visibility: hidden; */
    opacity: .6;
}

/* .uamt_table tr:hover .button.delete-mime {
    /* visibility: visible;
    opacity: 1;
    background: #dc3232;
    color: #fff;
    border-color: #aa0000;
} */

.button.delete-mime:hover {
    background: #aa0000;
    color: #fff;
    border-color: #aa0000;
}

.mime-row button.add-row:hover {
    background: #005177;
    color: #fff;
}

/* Allow List Table with fixed height and scroll */
.ua-table-container {
    /* max-height: 500px;
    overflow-y: scroll;
    overflow-x: hidden; */
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    /* padding-bottom: 28px; */
}

.ua-table-container table {
    width: 100%;
    margin: 0;
}

.ua-table-container thead th {
    /* position: sticky; */
    top: 0;
    background: #1FA8CE;
    z-index: 10;
}

/* Make sure the table header stays visible when scrolling */
.ua-table-container thead tr {
    /* position: sticky; */
    top: 0;
    background: #1FA8CE;
    z-index: 10;
}

/* Style the scrollbar */
/* .ua-table-container::-webkit-scrollbar {
    width: 8px;
} */

.ua-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ua-table-container::-webkit-scrollbar-thumb {
    background: #1FA8CE;
    border-radius: 4px;
}

.ua-table-container::-webkit-scrollbar-thumb:hover {
    background: #1FA8CE;
}

/* Drag and drop area */
#mime-drop-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

#mime-drop-area p {
    margin: 5px 0;
}

.custom-file-types-button a {
    cursor: pointer;
    text-decoration: none;
    margin-top: 30px;
    display: block;
    width: max-content;
    background: #1F8BCE;
    border: 1px solid #1F8BCE;
    padding: 10px 16px;
    color: #fff;
    border-radius: 5px;
    transition: linear .4s;
    font-weight: 500;
    font-size: 16px;
}

.custom-file-types-button a:hover {
    color: #1F8BCE;
    background: #fff;

}

.mime-row button.add-row {
    background: #1FA8CE;
    border: none;
    color: #fff;
    padding: 7px 7px !important;
    font-size: 18px;
    border-radius: 4px;
    transition: linear .4s;
    cursor: pointer;
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1FA8CE;
}

.mime-row button.add-row:hover {
    background: #ffff;
    color: #1FA8CE;
}

.mime-row button.remove-row {
    background: #FEE;
    color: #aa0000;
    align-items: center;
    transition: linear .4s;
    display: flex;
    border-color: #fee;
    padding: 7px 7px !important;
    width: max-content;
    margin: 0 auto;
}

.mime-row button.remove-row:hover {
    background: #aa0000;
    color: #fee;
    border-color: #aa0000;
}

.uamt-button-primary {
    background: #1FA8CE;
    border: 1px solid #1FA8CE;
    padding: 9px 16px;
    color: #fff;
    border-radius: 5px;
    transition: linear .4s;
    font-weight: 500;
    font-size: 16px;
    margin-top: 30px;
    cursor: pointer;
}

.uamt-button-primary:hover {
    color: #1FA8CE;
    background: #fff;
}

.mime-row-button {
    display: flex;
    align-items: center;
    gap: 15px;
}
.uamt-button-secondary {
    background: #f8d7da;
    border-color: #f8d7da;
    color: #d8000c;
    text-shadow: none;
    /* height: 36px; */
    padding: 4px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 34px;
    border-radius: 5px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    transition: all 0.3s ease;
}

.uamt-button-secondary:hover {
    background: #f5c6cb;
    color: #d8000c;
}

.dashicons.spin {
    animation: dashicons-spin 1s infinite linear;
}

@keyframes dashicons-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* products area css */
.products-list-area {
    width: 32.5%;
    position: fixed;
    right: 22px;
}

.products-list-area h3 {
    color: #151826;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 120%;
}

.products-list-area p {
    color: #5C637E;
    font-size: 14px;
    font-weight: 400;
    margin-top: 10px;
}

.products-list-area .products-list-area-item {
    background: #FFF;
    border-radius: 8px;
    padding: 0px 0;
}

.products-list-area .products-item {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    cursor: pointer;
    /* width: 60%; */
}

.products-list-area .products-sub-item {
    /* display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px; */
    margin-bottom: 0px;
    padding: 0 15px;
    padding-bottom: 0px;
    border-bottom: 1px solid rgba(221, 221, 221, 0.87);
}

.products-list-area .products-sub-item:last-child {
    margin-bottom: 0px;
    border: none;
    padding-bottom: 10px;
}

.products-list-area .products-sub-item .products-buttons {
    cursor: pointer;
    text-decoration: none;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 72px;
}

.products-list-area .products-sub-item .products-buttons a {
    cursor: pointer;
    text-decoration: none;
}

.products-list-area .products-sub-item .products-buttons a.products-button-install {
    background: #1F8BCE;
    border: 1px solid #1F8BCE;
    padding: 10px 16px;
    color: #fff;
    border-radius: 5px;
    transition: linear .4s;
    font-weight: 500;
    font-size: 12px;
    margin-right: 10px;
}

.products-list-area .products-sub-item .products-buttons a.products-button-learn-more {
    background: #1E61B8;
    border: 1px solid #1E61B8;
    padding: 10px 16px;
    color: #fff;
    border-radius: 5px;
    transition: linear .4s;
    font-weight: 500;
    font-size: 12px;
}

.products-list-area .products-item .products-img img {
    width: 50px;
    height: 50px;
    position: relative;
    top: 36px;
}

.products-list-area .products-item .products-content .uamt-product-title {
    text-decoration: none;
    color: #151826;
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 0;
}

.products-list-area .products-item:hover .integrate-google-drive {
    color: #00BB45;
}

.products-list-area .products-item:hover .radio-player {
    color: #08CD87;
}

.products-list-area .products-item:hover .dracula-dark-mode {
    color: #6C61EE;
}

.products-list-area .products-item:hover .essential-addons-for-contact-form-7 {
    color: #1E62B9;
}

.products-list-area .products-item:hover .soft-accordion {
    color: #1E62B9;
}

a:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.products-list-area .products-item .products-content p {
    margin-bottom: 0;
    color: #5C637E;
    font-size: 14px;
    font-weight: 400;
    margin-top: 5px;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .wrap-main-header img {
        width: 28%;
    }

    .ua-header-area {
        gap: 10px;
    }

    #ua-search-input {
        width: 120px;
    }

    .ua-header-area .uamt-button-primary {
        width: 50%;
    }

    .upload-anything-wrap {
        width: 54%;
    }

    .ua-table-container {
        width: 100%;
        /* ensure container allows full width */
        overflow-x: auto;
    }

    .ua-table-container table {
        width: 100% !important;
        /* force full width */
        margin: 0 auto;
        table-layout: fixed;
    }

    .ua-table-container th,
    .ua-table-container td {
        word-break: break-word;
    }

    .products-list-area {
        width: 34%;
        position: fixed;
        margin-top: 0px;
    }

    .products-list-area .products-sub-item .products-buttons a.products-button-install {
        margin-right: 2px;
    }

    .mime-row {
        flex-direction: column;
        align-items: flex-start;
        display: ruby;
    }

    .mime-row-button {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .wrap-main-header {
        margin-left: -20px;
    }

    .wrap-main-header img {
        width: 28%;
    }

    .ua-header-area {
        gap: 10px;
    }

    #ua-search-input {
        width: 100px;
    }

    .ua-header-area .uamt-button-primary {
        width: 50%;
    }

    .upload-anything-wrap {
        width: 51%;
    }

    .ua-table-container {
        width: 100%;
        /* ensure container allows full width */
        overflow-x: auto;
    }

    .ua-table-container table {
        width: 100% !important;
        /* force full width */
        margin: 0 auto;
        table-layout: fixed;
    }

    .ua-table-container th,
    .ua-table-container td {
        word-break: break-word;
    }

    .products-list-area {
        width: 35%;
        position: fixed;
        margin-top: 0px;
    }

    .products-list-area .products-sub-item .products-buttons a.products-button-install {
        margin-right: 2px;
    }

    .mime-row {
        flex-direction: column;
        align-items: flex-start;
        display: ruby;
    }

    .mime-row-button {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }
}


@media (max-width: 767.98px) {
    .wrap-main-header {
        /* flex-direction: column;
        align-items: flex-start; */
        padding: 10px;
        position: static;
        margin-left: -10px;
    }

    .wrap-main-header img {
        width: 50%;
        margin-top: 0px;
    }

    .wrap-main-sub-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        padding: 10px;
    }

    .ua-table-container th,
    .ua-table-container td {
        word-break: break-word;
    }

    .sub-header-text-left h2 {
        font-size: 20px;
    }

    .sub-header-text-right {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .sub-header-text-right a {
        margin-right: 0;
        padding: 8px 12px;
        font-size: 14px;
    }

    .ua-table-container {
        width: 100%;
        overflow: scroll;
    }

    .ua-header-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .ua-header-area-main {
        position: sticky;
        top: 0px;
    }

    .ua-header-area .uamt-button-primary {
        width: 30%;
    }

    .ua-header-area .search-right {
        width: 100%;
    }

    #ua-search-input {
        width: 100%;
    }

    .upload-anything-wrap-main {
        flex-direction: column;
    }

    .upload-anything-wrap {
        width: 100%;
    }

    .upload-anything-wrap-item {
        flex-direction: column;
        gap: 15px;
    }

    .mime-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .mime-row input {
        width: 100%;
    }

    .products-list-area {
        width: 100%;
        position: static;
        margin-top: 20px;
    }

    .products-list-area .products-item {
        flex-direction: row;
        align-items: flex-start;
    }

    .products-list-area .products-item .products-img img {
        width: 40px;
        height: 40px;
    }

    .products-list-area .products-sub-item .products-buttons a.products-button-install {
        margin-right: 2px;
    }

    .uamt-button-primary {
        width: max-content;
        text-align: center;
    }

    .custom-file-types-button a {
        width: max-content;
        text-align: center;
    }

    .mime-row-button {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .sub-header-text-right p {
        display: none;
    }

    .mime-head tr th {
        padding: 10px 5px;
    }
}