/* All global CSS file */
.sapmfly-plugin-global-headings {
    margin-right: 15px;
    margin-top: 15px;
}

/* Admin promotional banner CSS */
.sapmfly-admin-promotional-banner {
    display: none;
    /* Display:flex to show the content of promotional block*/
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;
}

.sapmfly-admin-promotional-banner img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Main permanent banner css */
.sapmfly-admin-top-banner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* Nice green */
    padding: 15px 15px 15px 15px;
    border-radius: 8px;
    color: #288acb;
    background: #fff;
    flex-wrap: wrap;
}

.sapmfly-admin-banner__logo {
    display: flex;
    align-items: center;
}

.sapmfly-admin-banner__logo img {
    height: 4rem;
    width: auto;
}

.sapmfly-name-tagline {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sapmfly-name {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.sapmfly-tagline {
    margin: 0;
    font-size: 1rem;
    margin-top: -5px;
}

.sapmfly-admin-banner__helplinks {
    display: flex;
    gap: 25px;
    margin-left: auto;
    margin-right: 20px;
}

.sapmfly-admin-banner__helplinks a {
    text-decoration: none;
    display: flex;
    font-weight: 500;
    padding-top: 5px;
    font-size: 16px;
}

.sapmfly-admin-banner__helplinks a:hover {
    border-top: 1px solid;
    padding-top: 5px;
}

.sapmfly-admin-banner__helplinks .dashicons {
    margin-right: 6px;
    font-size: 16px;
}



.clear::after {
    content: "";
    display: table;
    clear: both;
}

/* Page heading CSS */
.sapmfly-page-heading h1 {
    margin-bottom: 1rem;
}

/* 
* sapmfly-switch css starts here
* Toggle switch container
*/
.sapmfly-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

/* Hide default checkbox */
.sapmfly-switch input {
    display: none;
}

.initial-switch {
    margin-left: 0;
}

/* Switch slider */
.sapmfly-slider {
    position: relative;
    width: 40px;
    height: 20px;
    background: #989898;
    border-radius: 20px;
    transition: background 0.3s ease-in-out;
    margin-right: 8px;
}

.sapmfly-slider:before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
}

/* Change background when checked */
input:checked+.sapmfly-slider {
    background: #288acb;
}

/* Move circle to the right when checked */
input:checked+.sapmfly-slider:before {
    transform: translateX(20px);
}

/*Advanced tools page css */

.sapmfly-advanced-tools-body {
    width: 30%;
    padding: 20px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Upgrade to pro menu item color */
.sapmfly-upgrade-pro-menu {
    background-color: #d63638 !important;
    color: #fff !important;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

.sapmfly-upgrade-pro-menu:hover {
    background-color: #a00 !important;
}