.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;
  width: 37px;
  height: 37px;
  padding: 0;
 background: linear-gradient(135deg, #e39a4e, #fb1b1b);
  border: none;
  border-radius: 50%;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -5px;
  cursor: pointer;
  top: -8px;
  right: -17px;
  border: 2px solid #fff;
}

.link-to-btn img {
    width: 20px;
    height: 20px;
    display: block;
}


.link-to-dropdown-container {
    position: absolute;
    z-index: 9999999999999999999;
    padding: 20px;
    background: linear-gradient(145deg, #fff, #e1e1e1);
    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: 300px;
    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;
}
.anchor-text-input{
  width: 100%;
  padding: 7px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;


}
.close-anchor-edit{
  background-color: #000;
  color: #fff;
  border: none;
  padding: 3px 10px;
  border-radius: 18px;
  margin-right: 6px;
}

.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: linear-gradient(135deg, #e39a4e, #fb1b1b);
  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;
}

#dynamicModal .modal-content {
    width: 94% !important;
  }

.modal-content {
   width: 100% ;
    margin: 5% auto;
    overflow: hidden;
    position: fixed; /* 'fixed' ensures it stays on top even when scrolling */
    top: 0%; /* Optional, if you want some space from the top */
    left: 50%;
    transform: translateX(-50%); /* Center the modal horizontally */
}


.modal-backdrop {
  z-index: 999998 !important;
}
.modal {
  z-index: 999999 !important;
}
.modal-content {
  z-index: 1000000 !important;
}

.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;               /* keep as you want */
  font-weight: bold;
  padding: 10px 24px;
  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;

  /* 🔥 FIX */
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.add-section-above img,
.add-section-below img {
  width: 20px;
  height: 20px;
  display: block;
}


.section-wrapper:hover .add-section-above,
.section-wrapper:hover .add-section-below {
    display: inline-flex!important;
}

/*
.section-wrapper:hover {
    border: 1px solid red;
} */
#editor-container{
    height: 100px;
}




.aiBotImage {
position: absolute;
  left: -4%;
  width: 66px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.1s;
  z-index: 1;
  animation: jump 1s ease-in-out infinite;
  top: -13px;

}

.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: linear-gradient(145deg, #4E9AFE, #2C6FBD);
    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;
}

/* ========== BACKDROP ========== */
.ai-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    animation: modalFade 0.30s ease;
}

/* ========== MAIN BOX ========== */
.ai-modal-content {
    width: 60%;
    max-width: 720px;
    margin: 60px auto;
    padding: 25px 30px;

    background: rgba(30, 30, 50, 0.55);
    border-radius: 14px;
    border: 1px solid rgba(130, 130, 255, 0.18);
    backdrop-filter: blur(14px);

    box-shadow: 0 0 35px rgba(95, 55, 255, 0.25);

    animation: modalPop 0.30s ease;
    position: relative;
}

/* ========== CLOSE BUTTON ========== */
.ai-close {
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 26px;
    cursor: pointer;
    color: #eee;
    transition: 0.2s;
}
.ai-close:hover {
    color: #a770ff;
}

/* ========== HEADER ========== */
.ai-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(160, 100, 255, 0.35);
    margin-bottom: 5px;
}

.ai-subtitle {
    font-size: 13px;
    color: #bcbcd2;
    margin-bottom: 18px;
}

/* ========== LABELS ========== */
.ai-label {
    font-size: 13px;
    color: #d9d9ff;
    font-weight: 600;
    margin-bottom: 6px;
}

/* ========== INPUT GROUP ========== */
.ai-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 15px;
}

.ai-input-field {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(150, 120, 255, 0.22);
    color: #fff;

    backdrop-filter: blur(8px);
}

.ai-input-field::placeholder {
    color: #a7a3c9;
}

/* ========== BUTTONS (Refined, smaller) ========== */
.ai-btn {
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s ease;
}

/* PRIMARY — gradient */
.ai-btn-primary {
    background: linear-gradient(135deg, #7d4aff, #11c5ff);
    color: #fff;
    box-shadow: 0 0 8px rgba(120, 80, 255, 0.35);
}
.ai-btn-primary:hover {
    background: linear-gradient(135deg, #6a3cd7, #0fb3e5);
    box-shadow: 0 0 15px rgba(120, 80, 255, 0.5);
}

/* SECONDARY */
.ai-btn-secondary {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(160, 120, 255, 0.22);
    color: #ffffff;
}
.ai-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(160, 120, 255, 0.35);
}

/* ========== TEXTAREA ========== */
.ai-textarea-wrapper {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(150, 120, 255, 0.22);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    margin-bottom: 10px;
}

.ai-textarea {
    width: 100%;
    padding: 12px;
    height: 140px;
    font-size: 13px;
    resize: none;
    border: none;
    background: transparent;
    color: #fff;
}

/* Scrollbar */
.ai-textarea::-webkit-scrollbar {
    width: 4px;
}
.ai-textarea::-webkit-scrollbar-thumb {
    background: #a770ff;
    border-radius: 10px;
}

/* Actions */
.ai-modal-actions {
    text-align: center;
    margin-top: 8px;
}

/* Animations */
@keyframes modalPop {
    from { transform: scale(0.87); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== RESPONSIVE (Mobile) ========== */
@media (max-width: 768px) {
    .ai-modal-content {
        width: 85%;
        padding: 20px;
    }

    .ai-input-group {
        flex-direction: column;
    }

    .ai-btn {
        width: 100%;
    }
}


.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: 400px;
    overflow-y: auto;
    border-radius: 10px;
    padding: 20px 10px 20px 20px;
    scrollbar-width: thin;
    scrollbar-color: #888 #e0e0e0;
    width: 260px;
  }

  .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;
    border-radius: 8px;
    border: 4px solid rgb(255, 255, 255);
    padding-left: 11px;
      color:#000;
      font-weight: 800;
  }


  .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;
  }
.section-wrapper .remove-section-btn {
    display: none;
}

.section-wrapper:hover .remove-section-btn {
    display: block;
}

.remove-section-btn-wrapper {
  position: absolute;
  top: 23px;
  right: 10px;
  z-index: 999;
}
.remove-section-btn {
width: 40px;
  height: 40px;
  background-color: #ff4d4d;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 29px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.remove-section-btn::after {
  content: "Remove Section";
  position: absolute;
  top: 50%;
  right: 116%;
  transform: translateY(-50%);
  background-color: #ff4d4d;
  color: #fff;
  padding: 0px 10px;
  font-size: 10px;
  border-radius: 25px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-weight: bold;
}

.remove-section-btn::before {
content: "";
  position: absolute;
  top: 50%;
  right: 104%;
  transform: translateY(-50%);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 7px solid #ff4d4d;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.remove-section-btn:hover::after,
.remove-section-btn:hover::before {
  opacity: 1;
}



/*

.edit-mode-category-filter .dropdown-menu-custom .dropdown-header {
  font-weight: bold;
  padding: 8px 20px;
  background: #f1f1f1;
}

.edit-mode-category-filter .dropdown-menu-custom .divider {
  margin: 5px 0;
  height: 1px;
  background-color: #ddd;
}

.edit-mode-category-filter .dropdown-menu-custom li a.subcategory {
  padding-left: 30px;
}
.edit-mode-category-filter .active-orange {
  color: #ff6600 !important;
  font-weight: bold;
}
.edit-mode-category-filter .active-parent {
  background-color: #f0f0f0;
}
.edit-mode-category-filter .active-sub {
  background-color: #f8f8f8;
}
.edit-mode-category-filter .collapse-menu {
  list-style: none;
  margin: 0;
  padding-left: 20px;
}
.edit-mode-category-filter .rotate {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
} */
.custom-submenu {
  position: relative;
}

.custom-submenu > .custom-submenu-toggle::after {
  content: "\25B6"; /* Right-pointing arrow */
  float: right;
  margin-top: 3px;
}

.custom-submenu.open > .custom-submenu-toggle::after {
  content: "\25BC"; /* Down-pointing arrow */
}

.custom-submenu-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding-left: 15px;
}

.custom-submenu.open > .custom-submenu-menu {
  display: block;
}

.custom-submenu-menu li a {
  padding: 5px 10px;
  display: block;
  color: #333;
}

.custom-submenu-menu li a:hover {
  background: #f0f0f0;
}


/*
image upload modal */

.image-picker-modal .modal-dialog {
    width: 560px !important;
    max-width: 560px !important;
    margin: 30px auto; /* centers the modal */
}
.image-picker-modal .modal-dialog .modal-content{
 width: 560px !important;
}
.image-picker-modal .modal-body {
  max-height: 64vh;
  overflow-y: auto;
  padding-right: 16px;
  padding: 11px;
  background: #ffffffb0;
  border-radius: 10px;
  border: 1px solid #ececec;
}
.image-picker-modal .modal-body::-webkit-scrollbar {
  width: 6px; /* thin scrollbar */
}

.image-picker-modal .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.image-picker-modal .modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.image-picker-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* ===== Firefox ===== */
.image-picker-modal .modal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}
.image-picker-modal .modal-content {
  /* 920 */
  background: linear-gradient(145deg, #fff, #e1e1e1);
  color: #fff;
  border-radius: 18px;
  border: none;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}


.image-picker-modal .modal-header .close{
  font-size: 34px!important;
  color: #1f1f2e;
}
.image-picker-modal .modal-header .close:hover{
 color: #f4402a;
}
.image-picker-modal .modal-footer {
margin-top: 10px;
}
.image-picker-modal .modal-footer .btn{
border-radius: 25px;
}
.image-picker-modal .modal-title{
/* color: #fff; */
color: #1f1f2e;
}
#img-url{
  border-radius: 35px;
}

.image-picker-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.image-picker-tabs button {
  background: #1f1f2e;
  color: #bbb;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
}

.image-picker-tabs button.active {
  background: linear-gradient(135deg, #e39a4e, #fb1b1b);
  color: #fff;
}
#pexelsSearch, #imgUrl{
 border-radius: 35px;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.image-grid img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
}

.image-grid img.selected {
  border-color: #6a5cff;
}

.upload-box {
  border: 2px dashed #444;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  color: #1f1f2e;
}

.preview-box {
  margin-top: 14px;
  text-align: center;
}

.preview-box img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 12px;
}

.url-row {
  display: flex;
  gap: 8px;
}

.btn-capsule {
  border-radius: 999px;
}

.hidden { display:none; }
/* Buttons */
.website-info-btn-primary {
  background: linear-gradient(135deg, #e39a4e, #fb1b1b);
  color: #fff !important;
  border: none;
  padding: 8px 30px;
  border-radius: 230px;
  font-weight: 600;
  transition: 0.3s;
  font-size: 15px;
}

.website-info-btn-primary:hover {
  background: linear-gradient(135deg, #fb1b1b, #e39a4e);
}


.category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.category-title span{
    color: #000;
     font-weight: 600;
}
.category-arrow {
    font-size: 18px;
    transition: transform 0.25s ease;
}

/* Open state = down arrow */
.category-arrow.open {
    transform: rotate(90deg);
}

.category-sub {
    padding-left: 25px;
}

.category-sub li a {
display: block;
  font-size: 16px;
  color: #f5b800;
  font-weight: 700;
}
