/* 
*** START BACKGROUND COLOR FOR CODEPEN 
- COMMENT ON PRODUCTION ENVIRONMENT! */
/*
body {
    width: 100vw;
    background-color: GREEN;
}
*/
/* 
*** END BACKGROUND COLOR FOR CODEPEN 
- COMMENT ON PRODUCTION ENVIRONMENT! */


/* General Material Inspired Design Styles */

/* border to identify wrappers  */
.elai-frontend-border {
    border-style: dashed;
    border-color: violet;
}

/* Main wrapper */
.elai-frontend-elai-material-page {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between rows */
}

/* Row 1: Two wrappers for logo/name and advert feed */
.elai-frontend-row-1 {
    display: flex;
    justify-content: space-between;
}

.elai-frontend-left-wrap {
    width: 55%;
    display: flex;
    align-items: center;
    gap: 15px; /* Space between logo and title */
}

.elai-frontend-right-wrap {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.elai-frontend-elai-logo {
    width: 50px; /* Adjust size as needed */
    height: auto;
}

.elai-frontend-dynamic-advert-feed {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
  z-index: 99;
}

/* Row 2: Full-width header with menu items */
.elai-frontend-header-menu {
    padding: 10px;
    border-radius: 8px;
}

.elai-frontend-menu-items {
    list-style-type: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.elai-frontend-menu-items li a {
    text-decoration: none;
    font-weight: bold;
}

/* Row 3: Main wrapper for settings sections */
.elai-frontend-main-settings-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between sections */
}

.elai-frontend-settings-section {
    background-color: #F7F7F7; /* White background */
    border-radius: 15px;
    padding: 10px;
    gap: 20px;
/*    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
}

.elai-frontend-settings-section-dark {
    background-color: #3B3B3B; /* White background */
    border-radius: 15px;
    padding: 10px;
    gap: 20px;
/*    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
}
.elai-frontend-settings-section-darker {
    background-color: #202020; /* White background */
    border-radius: 15px;
    padding: 10px;
    gap: 20px;
/*    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
}

.elai-frontend-columns-wrapper {
    display: flex;
    gap: 20px; /* Space between columns */
}

/* Columns */
.elai-frontend-column {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.elai-frontend-col-1 {
    width: 18%;
}

.elai-frontend-col-2, .elai-frontend-col-3 {
    width: 36%;
}

/* Admin Section Styles */

/* general admin wrap with box shadow */
.elai-frontend-elai-admin {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.elai-frontend-space-top {
    margin-top: 55px;
}

.elai-frontend-space-bottom {
    margin-bottom: 55px;
}

.elai-frontend-wrap {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
}

.elai-frontend-wrap-50 {
    max-width: 50%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.elai-frontend-wrap-33 {
    max-width: 33%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.elai-frontend-wrap-25 {
    max-width: 25%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.elai-frontend-wrap-10 {
    max-width: 10%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.elai-frontend-position-relative {
  position: relative;
}

.elai-frontend-radial-wrap-color {
    background: radial-gradient(
        circle at 80% 500%, 
        #ff6b6b 0%, /* Vivid Red */
        #ff6b6b 55%, /* Stop Vivid Red */
        #feca57 55%, /* Bright Orange */
        #feca57 65%, /* Stop Bright Orange */
        #ff9ff3 65%, /* Vivid Pink */
        #ff9ff3 70%, /* Stop Vivid Pink */
        #54a0ff 85%, /* Bright Blue */
        #54a0ff 90%, /* Stop Bright Blue */
        #1dd1a1 90%, /* Vivid Green */
        #1dd1a1 100% /* Stop Vivid Green */
    );
}

.elai-frontend-radial-wrap-darkmode {
        background: radial-gradient(
        circle at 80% 500%,  /* Offset gradient far outside the element */
        #0b0b0b 0%,          /* Near Black Grey */
        #0b0b0b 55%,         /* Stop Near Black Grey */
        #141414 55%,         /* Almost Black Grey */
        #141414 65%,         /* Stop Almost Black Grey */
        #1e1e1e 65%,         /* Even Darker Grey */
        #1e1e1e 75%,         /* Stop Even Darker Grey */
        #2c2c2c 75%,         /* Slightly Darker Grey */
        #2c2c2c 90%,         /* Stop Slightly Darker Grey */
        #333333 90%,         /* Dark Grey */
        #333333 100%         /* Stop Dark Grey */
    );
 }

/* Start Wrapper Overlays */
/* Light Overlays */
.elai-frontend-wrap-overlay-light-1 {
      background-color: rgba(255, 255, 255, 0.25);
    position: absolute; /* To overlay the entire element */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 1; /* Ensure it stays above the background, but below content */
    border-radius: inherit; /* Inherit the border radius of the parent */
    overflow: hidden; /* Make sure content inside stays within the borders */
}

.elai-frontend-wrap-overlay-light-2 {
      background-color: rgba(255, 255, 255, 0.35);
    position: absolute; /* To overlay the entire element */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 1; /* Ensure it stays above the background, but below content */
    border-radius: inherit; /* Inherit the border radius of the parent */
    overflow: hidden; /* Make sure content inside stays within the borders */
}

.elai-frontend-wrap-overlay-light-3 {
      background-color: rgba(255, 255, 255, 0.65);
    position: absolute; /* To overlay the entire element */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 1; /* Ensure it stays above the background, but below content */
    border-radius: inherit; /* Inherit the border radius of the parent */
    overflow: hidden; /* Make sure content inside stays within the borders */
}

.elai-frontend-wrap-overlay-light-4 {
      background-color: rgba(255, 255, 255, 0.85);
    position: absolute; /* To overlay the entire element */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 1; /* Ensure it stays above the background, but below content */
    border-radius: inherit; /* Inherit the border radius of the parent */
    overflow: hidden; /* Make sure content inside stays within the borders */
}

/* Dark overlays */
.elai-frontend-wrap-overlay-dark-1 {
      background-color: rgba(33, 33, 33, 0.25);
    position: absolute; /* To overlay the entire element */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 1; /* Ensure it stays above the background, but below content */
    border-radius: inherit; /* Inherit the border radius of the parent */
    overflow: hidden; /* Make sure content inside stays within the borders */
}

.elai-frontend-wrap-overlay-dark-2 {
      background-color: rgba(33, 33, 33, 0.35);
    position: absolute; /* To overlay the entire element */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 1; /* Ensure it stays above the background, but below content */
    border-radius: inherit; /* Inherit the border radius of the parent */
    overflow: hidden; /* Make sure content inside stays within the borders */
}

.elai-frontend-wrap-overlay-dark-3 {
      background-color: rgba(33, 33, 33, 0.65);
    position: absolute; /* To overlay the entire element */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 1; /* Ensure it stays above the background, but below content */
    border-radius: inherit; /* Inherit the border radius of the parent */
    overflow: hidden; /* Make sure content inside stays within the borders */
}

.elai-frontend-wrap-overlay-dark-4 {
      background-color: rgba(33, 33, 33, 0.85);
    position: absolute; /* To overlay the entire element */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 1; /* Ensure it stays above the background, but below content */
    border-radius: inherit; /* Inherit the border radius of the parent */
    overflow: hidden; /* Make sure content inside stays within the borders */
}
/* End Wrapper Overlays */


.elai-frontend-settings-field {
    background: #efefef;
    border-radius: 20px;
    padding: 15px;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.elai-frontend-settings-field input[type="text"] {
    display: block;
    margin: 10px 0;
    border-radius: 7px;
}

.elai-frontend-settings-field input[type="checkbox"] {
    display: block;
    margin: 10px 0;
}

.elai-frontend-settings-field p.description {
    font-size: 0.875rem;
    color: #666;
}

.elai-frontend-description {
    color: #666; /* Gray description text */
}

.elai-frontend-dark-mode-text {
    color: #9C9C9C;
}
.elai-frontend-white-text {
    color: #FFFFFF;
}

.elai-frontend-dark-gradient-down {
    background: linear-gradient(to bottom, #3B3B3B 0%, #202020 80%);
}
.elai-frontend-dark-gradient-up {
    background: linear-gradient(to top, #3B3B3B 0%, #202020 80%);
}

/* Input Fields */
/*
input[type="text"], 
input[type="checkbox"], 
select, 
textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
}
*/

button.elai-frontend-button-primary {
    background: #007cba;
    border: none;
    border-radius: 4px;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
}

button.elai-frontend-button-primary:hover {
    background: #005a8d;
}

/* Additional Custom Styles for the Admin */
.elai-frontend-elai-buddyboss-settings-page .wrap {
    max-width: 800px; /* Optional: Max width for better alignment */
}


/*
*
*
* start v2 Slider switch styling 
*
*
*
**/
/* Slider Switch Container */
.elai-frontend-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default checkbox */
.elai-frontend-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider styling */
.elai-frontend-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

/* Slider before */
.elai-frontend-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    border-radius: 50%;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

/* Checked slider */
input:checked + .elai-frontend-slider {
    background-color: #2196F3; /* Blue background for the ON state */
}

/* Checked slider before */
input:checked + .elai-frontend-slider:before {
    transform: translateX(26px); /* Move the switch handle to the right */
}

/* Rounded sliders */
.elai-frontend-slider.round {
    border-radius: 34px;
}

.elai-frontend-slider.round:before {
    border-radius: 50%;
}
/* end v2 Slider switch styling */

.elai-frontend-status-message-wrap {
    position: fixed;
    bottom: 55px;
    left: 45%;
    min-height: 0px;
    min-width: 0px;
    z-index: 9999;
}

/* 
*
*
*start v1 Toggle switch styling 
* original 60/34    60/34/34    4/4/26/26   26
*
**/
/* Toggle switch styling */
.elai-frontend-elai-toggle-switch {
    display: flex;
    align-items: center;
}

.elai-frontend-elai-toggle-switch input[type="checkbox"] {
    display: none;
}

.elai-frontend-elai-toggle-switch label {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 16px;
}

.elai-frontend-elai-toggle-switch label::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 16px;
    background-color: #ccc;
    border-radius: 16px;
    transition: .4s;
}

.elai-frontend-elai-toggle-switch input:checked + label::before {
    background-color: #2196F3;
}

.elai-frontend-elai-toggle-switch label::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 3px;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    transition: .4s;
}

.elai-frontend-elai-toggle-switch input:checked + label::after {
    transform: translateX(14px);
}