.editable {
    cursor: text;
    /* border-radius: 6px;
    padding: 2px; */
}
.editableSection{
    margin-top: 52px;
}

/*
.edit-mode .editable:hover {
    border: 1px dashed #f2c928;
} */

.edit-mode img {
    /* border: 2px dashed gray; */
    cursor: pointer;
}
.edit-mode img:hover{
    border: 2px dashed rgb(25, 0, 252);
}
.activeEditor {
    outline: 2px dashed red;
}
/* .edit-mode .editable-text {
    border: 1px dashed #f2c928;
}

.edit-mode .editable-image {
    border: 2px dashed gray;
} */

.hidden {
    display: none;
}

/* Styling for the file upload */
#image-upload {
    position: absolute;
    top: -9999px;
    /* Initially hide it off-screen */
}
/* #top-bar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f1f1f1;
    padding: 10px;
    z-index: 9999999999999999;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
} */
#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f1f1f1;
    padding: 10px;
    z-index: 9999;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }


  body {
    position: relative;
  }

#top-bar button {
    padding: 4px 14px;
    font-size: 13px;
    cursor: pointer;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 18px;

}
.link-to-btn{
    position:absolute;
    z-index: 9999999;
    padding: 10px;
    background: #ffffff;
    color: #000;
    border: 1px solid rgb(218, 215, 215);
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    margin-top: -5px;
    /* margin-left: 10px;
    margin-top: -5px; */
}

.link-to-dropdown-container {
    position: absolute;
    z-index: 9999999999999999999;
    padding: 20px;
    background: #ffffff;
    color: #000;
    border: none;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    width: max-content;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    border: 1px solid rgb(218, 215, 215);
}

.link-to-dropdown-container h5 {
    margin: 0; /* Remove default margin */
    font-size: 16px;
    font-weight: bold;
}

.link-to-dropdown-container select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.link-to-dropdown-container .submit-link {
    align-self: flex-end;
    padding: 4px 14px;
    font-size: 13px;
    cursor: pointer;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 18px;

}

.link-to-dropdown-container .submit-link:hover {
    background-color: #45a049;
}
.link-to-dropdown-container h5 {
    margin-bottom: 10px;
}



.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    border-radius: 50%;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}


/* Add New Sections */
.custombtn{
    padding: 4px 14px;
    font-size: 13px;
    cursor: pointer;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 18px;
}
.custombtn:hover{
    background: #0063e4;
    color: #fff;
}
.customClosebtn{
    padding: 4px 14px;
    font-size: 13px;
    cursor: pointer;
    background: #e0e0e0;
    color: #000000;
    border: none;
    border-radius: 18px;
}
.modal-content {
    width: 94% !important;
    margin: 5% auto;
    overflow: hidden;
    position: fixed; /* 'fixed' ensures it stays on top even when scrolling */
    top: 5%; /* Optional, if you want some space from the top */
    left: 50%;
    transform: translateX(-50%); /* Center the modal horizontally */
    z-index: 9999999999999999 !important; /* High enough to be above everything else */
}

.modal-body {
    max-height: 64vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Edit Section  */


#wrapper {
    width:100%!important;
    margin-left: 0px!important;
    background-color: #ffffff!important;
    }
.website-builder #wrapper {
        background-color: #f9f9f9!important;
     }


    #page-header{
    position: static;
    }


.select-section-top-btns{
    display: flex;
    justify-content: space-between;
}
.middle_sections_container{
    background: #f9f9f9;
}
.middle_sections_container .component{
    background-color: #fff!important;
    margin-top: 0px!important;
}
.modal-title{
    margin-bottom: 30px;
    font-size: 24px;
    font-family: 'Quicksand';
}
#wrapper .component {
    margin-bottom: 50px!important;
    scale: 0.9!important;;
    margin-left: 0px!important;
    width: auto!important;
    border-radius: 0px!important;
}
#modalBodyContent .middle-section-wrapper{
margin-top:25px;
}
.section-wrapper{
    position: relative;
}

.add-section-above, .add-section-below {
    display: none;
    font-weight: bold;
    padding: 10px 30px;
  font-size: 13px;
  cursor: pointer;
  background: linear-gradient(145deg, #4E9AFE, #2C6FBD);
  color: #fff;
  border: none;
  border-radius: 25px;
  transition: all 0.3s ease-in-out;
}

.section-wrapper:hover .add-section-above,
.section-wrapper:hover .add-section-below {
    display: inline-block!important;
}

/*
.section-wrapper:hover {
    border: 1px solid red;
} */
#editor-container{
    height: 100px;
}




.aiBotImage {
    position: absolute;
    bottom: -31%;
    left: 40%;
    width: 66px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.1s;
    z-index: 1;
    animation: jump 1s ease-in-out infinite;

}

.aiBotImage:hover{
border: none!important;
}
@keyframes jump {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.ai-tooltip {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    background-color: #13949bdb;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out;
    animation: jump-tooltip 1s ease-in-out infinite;
}

/* Tooltip Jump Animation */
@keyframes jump-tooltip {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}



.aiContentGeneration{
    position: relative;
}


/* Modal Styles */
.ai-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding-top: 50px;
    transition: all 0.3s ease-in-out;
}

.ai-modal-content {
    background-size: cover;
    background-position: center;
    padding: 20px 20px 20px 39px;
    border-radius: 10px;
    margin: auto;
    width: 60%;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    color: white;
    position: relative;
    text-align: left;
}

.ai-close {
    position: absolute;
    top: -3px;
    right: 15px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.ai-close:hover {
    color: #13949bdb;
}

.ai-modal-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}
.ai-instruction {
    font-size: 18px;
    margin-bottom: 7px;
    color: #393939;
    padding-left: 5;
    font-weight: 600;
}

.ai-input-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.ai-input-field {
    width: 42%;
    padding: 10px;
    font-size: 14px;
    border-radius: 10px;
    border: 2px solid #fff;
    margin-right: 10px;
    box-sizing: border-box;
    background: #ffffff78;
    color: #626262;

}

.ai-btn {
    padding: 8px 13px;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    background-color: #26C8D0;
    color: white;
    cursor: pointer;
    font-weight: unset;
    font-weight: bold;
    border: 3px solid #6ef4fbdb;
}

.ai-btn:hover {
    background-color: #13949bdb;
    border-color: #3CE8F0;
}
.textarea-container{
    border-radius: 10px;
    border: 2px solid #fff;
    width: 475px;
    background: #ffffff78;
}
.ai-textarea {
    width: 455px;
    height: 157px;
    padding: 1px 15px;
    font-size: 14px;
    border-radius: 10px;
    border: none;
    background: #ffffff78;
    color: #333;
    box-sizing: border-box;
    resize: none;
    margin-bottom: 1px;
    text-indent: 5px;
    line-height: 1.5;
    overflow-y: auto;
}

.ai-textarea::-webkit-scrollbar {
    width: 3px;
    margin-right: 10px;
}

.ai-textarea::-webkit-scrollbar-thumb {
    background-color: #3CE8F0;
    border-radius: 4px;
    opacity: 0.7;
}

.ai-textarea::-webkit-scrollbar-track {
    background-color: #13949bdb;
    border-radius: 4px;
    opacity: 0.7;
}
.ai-textarea:focus-visible{
border-color:transparent!important;
}
.ai-textarea {
    scrollbar-width: thin;
    scrollbar-color: #3CE8F0 #13949bdb;
    border-top: 15px solid #c6ceda00;
    border-bottom: 15px solid #c6ceda00;
}



.ai-modal-actions {
    display: flex;
    justify-content: left;
    align-items: center;
    margin-top: 20px;
}


.ai-modal-actions button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .ai-modal-content {
        width: 80%;
        padding: 20px 15px;
    }

    .ai-textarea {
        font-size: 14px;
    }

    .ai-submit-btn {
        font-size: 14px;
    }
}

.radio-holder {
    position: absolute;
    top: -46px;
    font-size: 21px;
    background-color: #ffffff;
    border-radius: 25px 25px 0 0;
    width: fit-content;
    margin: 0px 21px;
    padding: 3px 31px;
    text-align: -webkit-right;
    left: -21px;
  }


#modalBodyContent .multi-filter-container {
    display: flex;
    gap: 10px;
    position: fixed;
    top: 62px;
    right: 17px;
    z-index: 9999999999999;
  }


/* Modal buttons */
.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }

  .multi-filter-container button{
  border-radius: 5px;
  margin-right: 5px;
  padding: 4px 8px;
  width: 175px;
  text-align: left;
  margin-right: 5px;
    display: flex;
    justify-content: space-between;
  }
  .multi-filter-container button .caret{
    margin-top: 10px;
  }


  /* .section-filter{
    position: fixed;
    top: 10px;
    right: 21px;
    z-index: 9999;
    display: none;
  }
  .category-filter{
    position: fixed;
    top: 10px;
    right: 152px;
    z-index: 9999;
    display: none;
  } */

  .section-filter p,.category-filter p{
    margin-bottom: 0px;
    margin-top: -8px;
    font-size: 13px;
    padding-left: 5px;
    color: #aaa;
  }

  .filter-container {
    width: 100%;
    height: 40px;
    position: fixed;
    z-index: 10000;
    margin-top: 9px;
  }
  .category-filter .dropdown-menu {
    left: -57px !important;
  }
  .section-filter .dropdown-menu {
    left: -35px !important;
  }
  .filter-style .dropdown-menu {
    z-index: 10500;
    height: 500px;
    overflow-y: auto;
    border-radius: 10px;
    padding: 20px 10px 20px 20px;
    scrollbar-width: thin;
    scrollbar-color: #888 #e0e0e0;
    width: min-content;
  }

  .filter-style .dropdown-menu::-webkit-scrollbar {
    width: 8px;
  }

  .filter-style .dropdown-menu::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
  }

  .filter-style .dropdown-menu::-webkit-scrollbar-track {
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-right: 20px;
  }


  .filter-style .dropdown-menu  > li > a {
    background: #f9f9f9;
    margin: 5px !important;
    border-radius: 8px;
    border: 4px solid rgb(255, 255, 255);
  }

  .filter-style .dropdown-menu > li.active  a{
  color:#000;
  background: #c8c8c8;
  border: 1px solid #000;
  }

  .filter-style .dropdown-menu > li > a:hover, .dropdown-menu > li > a:hover{
    color: #000;
    border: 4px solid rgba(224, 224, 224, 0.692);
  }
  #displayMessageId{
    font-size: 15px;
    text-transform: unset;
    letter-spacing: 0.1px;
    font-weight: bold;
  }
  #no-components-message {
    display: none;
    padding: 67px 65px;
    background-color: #b3b3b3;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 22px;
    font-size: 19px;
    font-weight: bold;
    text-align: center;
    max-width: 400px;
    margin: 107px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease-in-out;
  }

  #no-components-message.show {
    display: block;
    opacity: 1;
  }

  #no-components-message.hide {
    opacity: 0;
    display: none;
  }

