body {margin:0; font-family:sans-serif; display:flex; height:100vh;}
  
#sidebar {width:220px; background:#f5f5f5; border-right:1px solid #ddd; display:flex; flex-direction:column;}
  .accordion-section {border-bottom:1px solid #ccc;}
  .accordion-header {background:#ddd; padding:10px; cursor:pointer; font-weight:bold;}
  .accordion-content {padding:10px; display:none;}
  .accordion-content.active {display:block;}


 #campaignCountdown { display: block;
  padding: 10px;
  background: rgb(238, 238, 255);
  border-radius: 8px;
  border: 1px solid #7b7b7b;
  text-align: center; }

.accordion-content.alwayson {display:block !important;}

  .block, .component {background:#fff; border:1px solid #ccc; margin-bottom:10px; padding:12px; cursor:grab; text-align:center;}
  #main-wrapper {flex:1; display:flex; justify-content:center; overflow-y:auto; padding:20px;}
  #main {font-family:Arial, Helvetica, sans-serif; font-size:14px;  width:800px; min-height:500px;}
  .layout {border:2px solid #a2a2a2; margin:10px 0; position:relative;}
  .columns {display:flex;}
  .column {flex:1; min-height:75px; border:1px dashed #a2a2a2; padding:10px; box-sizing:border-box;}
  .dropzone {min-height:20px; background:#e9f5ff; display:flex; align-items:center; justify-content:center; color:#007bff; font-size:14px; cursor:pointer;}
  .controls {position:absolute; top:-12px; right:-12px; display:flex; gap:4px;}
  .controls button {  border-radius: 4px; background:#7c76ce; color:white; border:none; padding:4px 6px; font-size:14px; cursor:pointer;}
  .controls button:hover {  background:#A29CEE; color:white;   }
	.drag-handle {cursor:grab; background:#007bff; color:white; padding:4px 6px; font-size:12px;}
  .content-block { border:1px solid #ccc; padding:10px; margin:5px 0; cursor:pointer;}
  .grid-layouts {display:grid; grid-template-columns:repeat(2,1fr); gap:10px;}
  .layout-thumb {background:#f0f0f0; border:1px solid #ccc; padding:5px; cursor:grab;}
  .layout-thumb .row {display:flex; height:30px;}
  .layout-thumb .col {background:#ddd; border-right:1px solid #fff; height:100%;}
  .layout-thumb .col:last-child {border-right:none;}
.content-block.selected img {
  pointer-events: none;
}
/* c2Vzc18xNzUyNjAyNzEz */

#main-wrapper {
  display: flex;
}

#mainbody {
  flex: 1 1 auto;
}

#rightSidebar {
  width: 280px;
  flex-shrink: 0;

  display: block;
position: sticky;
  top: 0px;
}


#cropperModal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 10000;
  overflow: auto;
}

#imageModal {
  background: #fff;
  padding: 15px;
  border-radius: 4px;
 

  overflow: auto;
  box-sizing: border-box;
}

#cropperImage {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}


.custom-file-input {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.custom-file-input input[type="file"] {
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0;
  font-size: 100px;
  cursor: pointer;
}

.custom-file-label {
  display: inline-block;
  padding: 6px 12px;
  background-color: #0d6efd;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.custom-file-label:hover {
  background-color: #0b5ed7;
}

button:disabled {
  background-color: #ccc !important;
  color: #666 !important;
  cursor: not-allowed !important;
  opacity: 0.7;
  border: 1px solid #999;
}


.content-control-button {
  background: #ffffff;
  border: 1px solid #ccc;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 14px;
  border-radius: 2px;
}
.content-control-button:hover {
  background: #f0f0f0;
}



.progress {
  background: #ddd;
  height: 5px;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar {
  background: #0d6efd;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  transition: width 0.3s ease;
  height: 100%;
}
.drop-indicator {
  border: 2px dashed #007bff;
  height: 2px;
  margin: 10px 0;
  background: rgba(0, 123, 255, 0.05);
}
.device-btn {
  border:1px solid #ccc;
  background:#fff;
  padding:5px 8px;
  cursor:pointer;
  font-size:18px;
  border-radius:4px;
}
.device-btn.active {
  background:#0d6efd;
  color:#fff;
  border-color:#0d6efd;
}
#sidebar label { font-size: 10px; }
#command button {
  background: #22d5c4;
  border: 0;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 14px;
  padding: 4px;
  display: block;
  width: 100%;
}

/* Primo bottone */
#command button:first-of-type {
  margin-top: 1px;
}
input[type="color"] {
  border: 0;
  outline: none;
padding: 0px;
  height: 20px;

}
/* Ultimo bottone */
#command button:last-of-type {
  margin-bottom: 1px;
 margin-top: 1px;
}

/* Tutti gli altri (che NON sono primo e NON sono ultimo) */
#command button:not(:first-of-type):not(:last-of-type) {
  margin-top: 1px;
}
#components-section {
  flex-wrap: wrap;
  gap: 10px;
}
#components-section.active {
  display: flex;
}
#components-section i {font-size: 29px;}
#components-section .component {
display: block;
  width: 100%;
  margin-top: 9px;
  height: 59px;
}


.ckeditor-apply { background: #7c76ce;
  border: 0px;
  padding: 4px 10px;
  color: #fff;

  margin-top: 10px; }

.dotted { border: 1px dashed #000;  flex: 0 0 calc(50% - 5px); /* Due colonne con gap */
  display: flex;
  align-items: center;
  justify-content: center;
   height: 61px;
  font-size: 20px;  }

.column img { max-width: 100%; }

/* Modalità Mobile */
.layout.mobile-cols .columns {
  display: block !important;
}
.layout.mobile-cols .column {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}
.column.mobile-col {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

.layout.selected {
  border:2px solid #ff9800 !important;
}
.column.selected {
  border:2px dashed #ff9800 !important;
}
.content-block.selected {
  outline:2px solid #4caf50 !important;
}

#main.mobileview .layout[data-responsive="true"] > .columns {
  display: block !important;
}

#main.mobileview .column[data-responsive="true"] {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}
a.btn { padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px; }

#main {
  box-sizing: border-box;
 
} 
* {
  box-sizing: border-box;
}
.layout .controls {

  z-index: 20;
} 

.notification-tooltip {
	position: fixed;
  bottom: 10px;
  left: -14px;
  background: #6ed749;
  color: #fff;
  padding: 6px 20px;
  border-radius: 4px;
  
  font-size: 13px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}
.notification-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}
.alin { text-align: center; font-size: 26px; }
.saver { border: 0;
  padding: 6px;
  background: #3ed99f;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase; cursor: pointer; }

.ck-content { background: transparent !important; }




.image-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #0069D1;
  cursor: nwse-resize;
  border-radius: 2px;
  z-index: 5;
}


.component.dragging,
.layout-thumb.dragging {
  transform: scale(1.2) rotate(-5deg);
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 1000;
}
.component {
  cursor: grab;
}
.component:active {
  cursor: grabbing;
}


.dropzone.highlight-dropzone {
  border-color: #00bcd4;
  background: #e0f7fa;
  color: #00bcd4;
}


#passback, .buttonstools { background: #3a1273;
  color: #fff;
  font-size: 11px;
  border: 0;
  padding: 4px 10px; cursor: pointer;  }

.notification-warning {
  background: #f0ad4e;
}
.notification-danger {
  background: #d9534f;
}
.notification-success {
  background: #5cb85c;
}



.columns:hover { outline: 2px solid #0C24FF; }
.column-resize-handle {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  cursor: col-resize;
  height: 100%;
  z-index: 10;
}
.column {
  position: relative;
}
/* Sidebar */
#sidebar {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #f7f9fa;
  border-right: 1px solid #ddd;
  padding: 0;
  color: #333;
}

/* Accordion Headers */
.accordion-header {
 
  font-weight: 600;
  background: #ffffff;

  cursor: pointer;
  transition: background 0.2s;
}
.accordion-header:hover {
  background: #f0f0f0;
}

/* Accordion Content */
.accordion-content {
  padding: 10px 16px;
  background: #fafafa;
}

/* Buttons */
#command button, .saver {
  display: block;
  width: 100%;
  background: #00bcd4;
  color: #fff;
  font-weight: 500;
  border: none;
  padding: 5px;
  margin-bottom: 4px;
  border-radius: 0px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.saver { background: rgb(151, 206, 71); }

#command button:hover {
  background: #53E9F9;
  
}
.saver:hover{
  background: #89E458;

}

/* Inputs and Labels */
.accordion-content label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin: 4px 0;
  display: block;
margin-bottom: -2px;
}
.accordion-content input[type="text"],
.accordion-content input[type="password"],
.accordion-content input[type="email"],
.accordion-content input[type="color"],
.accordion-content textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 12px;
  margin-bottom: 2px;
  background: #fff;
}
.accordion-content input[type="color"] {
  padding: 0;
  height: 34px;
}
.accordion-content textarea {
  resize: vertical;
  min-height: 60px;
}

/* Dropzones */
.dropzone {
  border: 2px dashed #ccc;
  padding: 16px;
  text-align: center;
  color: #999;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}
.dropzone:hover {
  border-color: #00bcd4;
  color: #00bcd4;
}



/* Selected elements */
.layout.selected,

.content-block.selected {
  outline: 2px solid #00bcd4;
}

/* Drag handle */
.drag-handle {
  background: transparent;
  border: none;
  cursor: grab;
  font-size: 16px;
}
.drag-handle:hover {
  color: #00bcd4;
}

.image-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #00bcd4;
  cursor: nwse-resize;
  border-radius: 2px;
  z-index: 5;
}
.image-wrapper {
  position: relative;
  display: inline-block;
}
#livePreviewOverlay {
  opacity:0;
  transition:opacity 0.3s ease;
}

#livePreviewOverlay.show {
  opacity:1;
}
