/*
body {
  background-color: #f5f5f5;
}
*/

/* Modules icons */
.icon-menu::before {
  font-family: "bootstrap-icons"; /* required */
  content: "\F479";
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.icon-hero::before {
  font-family: "bootstrap-icons"; /* required */
  content: "\F226";
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.icon-about::before {
  font-family: "bootstrap-icons"; /* required */
  content: "\F782";
  font-size: 1.5rem;   /* optional */
  margin-right: 0.5rem;
}

.icon-slider::before {
  font-family: "bootstrap-icons"; /* required */
  content: "\F42B";
  font-size: 1.5rem;   /* optional */
  margin-right: 0.5rem;
}

.icon-card::before {
  font-family: "bootstrap-icons"; /* required */
  content: "\F2EE";
  font-size: 1.5rem;   /* optional */
  margin-right: 0.5rem;
}

.icon-ecom::before {
  font-family: "bootstrap-icons"; /* required */
  content: "\F171";
  font-size: 1.5rem;   /* optional */
  margin-right: 0.5rem;
}

.icon-item::before {
  font-family: "bootstrap-icons"; /* required */
  content: "\F1C8";
  font-size: 1.5rem;   /* optional */
  margin-right: 0.5rem;
}

.icon-checkout::before {
  font-family: "bootstrap-icons"; /* required */
  content: "\F50F";
  font-size: 1.5rem;   /* optional */
  margin-right: 0.5rem;
}

.icon-gallery::before {
  font-family: "bootstrap-icons"; /* required */
  content: "\F2CD";
  font-size: 1.5rem;   /* optional */
  margin-right: 0.5rem;
}

.icon-contact::before {
  font-family: "bootstrap-icons"; /* required */
  content: "\F7BE";
  font-size: 1.5rem;   /* optional */
  margin-right: 0.5rem;
}

.icon-section::before {
  font-family: "bootstrap-icons"; /* required */
  content: "\F4B4";
  font-size: 1.5rem;   /* optional */
  margin-right: 0.5rem;
}

/* Floating main menu */
.main-menu-float {
  position: fixed;
  top: 4.5rem;
  left: 0rem;
  width: 100%;
  height: 3rem;
  /*display: flex;
  align-items: center;
  justify-content: center;*/
  z-index: 1050; /* keep it above content */
  transition: top 0.3s ease; /* smooth effect */
}

/* Floating button style */
.toggle-btn {
  position: fixed;
  top: 3rem;
  left: 0rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050; /* keep it above content */
  /*transition: all 0.3s ease;*/
}

.toggle-btn i {
  font-size: 1.25rem;
}


/* When sidebar is hidden (not .show), expand main content */
/*
#sidebarCollapse.collapse:not(.show) ~ .test {
  flex: 0 0 100%;
  max-width: 100%;
}
*/
.editor {
  margin-top: 20px;
  display: none;
}

 
.sidebar {
  /*position: relative;  /* important for sticky to work inside */
  /*min-height: 100vh; /* full height column */
  /*scroll-behavior: smooth;*/
    /* this part are commented for testing new update uncomment for use with old version just the code bellow and also .sidebar .editor-sidebar */
  position: sticky;      /*or keep relative if you don’t need sticky */
  top: 0;                /*required if using sticky */
  height: 100vh;         /*FIXED height (not min-height) */
  overflow-y: auto;      /*enable internal scroll */
  overscroll-behavior: contain;  /*prevent page scroll when inside */
}


.sidebar .editor-sidebar {
  position: sticky;
  top: 3rem;           /*stick to the bottom of the column */
  /*background: #212529;*/  /*match bg-dark */
  padding: 1rem;
  z-index: 10;         /*keep it above content */
}


.module-block {
  cursor: pointer;
  border: 1px solid transparent;
  padding: 10px;
  margin-bottom: 15px;
  /*background-color: #ffffff;*/
  transition: border 0.3s;
}

.module-block:hover {
  border-color: #ffc107; /* yellow */
  background-color: #44444428;
  box-shadow: 1px 1px 5px #b1b1b1;
}

#modules .module {
  /*background-color: #444;
  border: 1px dashed #ccc;*/
  cursor: grab;
}

#module-area {
  min-height: 300px;
  padding: 20px;
  border: 2px dashed #ccc;
  /*background-color: #e9ecef;*/
}

.delete-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: crimson;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  width: 24px;
  height: 24px;
  line-height: 20px;
  text-align: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dropped-module,
.initial-module {
  position: relative;
  margin: 10px 0;
  padding: 10px;
  /*background: #f9f9f9;*/
  border: 1px dashed #ccc;
}

.dropped-module:hover .delete-btn,
.initial-module:hover .delete-btn {
  opacity: 1;
}

.initial-module {
  position: relative;
  margin: 10px 0;
  padding: 10px;
  /*background: #f9f9f9;*/
  border: 1px dashed #ccc;
}

.initial-module:hover .delete-btn {
  opacity: 1;
}

.drop-indicator {
  transition: all 0.2s ease;
}

.live-module-margin {
  margin: 10px 0;
}

.menu-module.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}


#website-settings-form {
  display:none;
}

/* spinner */

#spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
  border-top: 3px solid #333;
  border-radius: 50%;
}

#spinner-img {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid #333;
  border-top: 3px solid #ccc;
  border-radius: 50%;
}

/* Spinning state */
#spinner.loading {
  animation: spin 0.8s linear infinite;
  border-top-color: #333;
}

/* Success state */
#spinner.success {
  border: 3px solid #28a745;
  border-radius: 50%;
  background: #28a745;
  animation: none;
}

/* Error state */
#spinner.error {
  border: 3px solid #dc3545;
  border-radius: 50%;
  background: #dc3545;
  animation: none;
}

/* position btns 
.position-handler {
  cursor: pointer;
  animation: grow 0.8s linear infinite;
}
*/
.position-handler:hover {
  cursor: pointer;
  animation: growth 0.8s alternate ease-in infinite;
  /*
  animation-duration: 0.8s;
  animation-direction: alternate;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
  */
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes growth {
  to {transform: scale(125%);}
}



/* Last editor update */

/* BACKGROUND FEEL */
body {
  background: radial-gradient(circle at top, #1b1b2a, #0b0b12);
  color: white;
}

/* TOP BAR */
.editor-topbar {
  backdrop-filter: blur(20px);
  background: rgba(20, 20, 30, 0.6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* GLASS BUTTON */
.btn-glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

.btn-glass:hover {
  background: rgba(255,255,255,0.15);
}

/* NEON SAVE BUTTON */
.btn-neon {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: none;
  color: white;
  box-shadow: 0 0 20px rgba(124,58,237,0.4);
}

.btn-neon:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(124,58,237,0.6);
}

/* NEON SAVE BUTTON */
.menu-module-neon {
  background: linear-gradient(135deg, #757F9A, #D7DDE8);
  border: none;
  color: white;
  /*box-shadow: 0 0 20px rgba(211, 195, 239, 0.4);*/

}

.menu-module-neon:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(210, 197, 233, 0.3);
}

/* SIDEBAR 
.sidebar {
  background: rgba(15,15,25,0.7);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255,255,255,0.08);
  height: 100vh;
}
*/
/* MODULE GRID */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* MODULE CARD */
.module-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px;
  cursor: grab;
  transition: 0.2s;
}

.module-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* MAIN AREA */
.editor-main {
  background: transparent;
}

.drop-zone {
  min-height: 100vh;
  padding: 20px;
}

/* MODAL GLASS */
.modal-glass {
  background: rgba(20,20,30,0.85);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
}

