body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Animazioni globali per migliorare la UX */
* {
  box-sizing: border-box;
}

/* Scrollbar personalizzata */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

/* Focus ring moderno per accessibilità */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Animazione di fade-in per elementi che appaiono */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.3s ease-out;
}

/* Animazione di scala per elementi interattivi */
@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.scale-in {
  animation: scaleIn 0.2s ease-out;
}



input:read-only {
  margin: 0px 0em 0.4em 0!important;
  width: 8em!important;
}



.image_logo {
  background-image: url(/wp-content/plugins/00fabric/logo.svg);
  position: absolute;
  top: calc(-47% - 35px);
  right: -7px;
  width: 175px;
  height: 80px;
  cursor: pointer;
  background-size: 116px;
  background-repeat: no-repeat;
  background-position: center center;
}

.grp-handler-cp-c {
  margin-left: -20px;
}

.default-container {
  width: 100%;
  height: 100%;
  /* display: flex; */
}

.toolbar {
  line-height: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  backdrop-filter: blur(8px);
  position: relative;
}

.toolbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #f59e0b);
}

.toolbar button {
  width: 48px;
  height: 48px;
  opacity: 0.8;
  border: 0;
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.8);
  margin: 0 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 48px;
}

.toolbar button:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.toolbar button.active {
  opacity: 1;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.toolbar button.active svg,
.toolbar button.active img {
  filter: brightness(0) invert(1);
}

.toolbar button img,
.toolbar button svg {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
  vertical-align: middle;
}

.toolbar button:active {
  transform: translateY(0px);
}

.main-panel {
  height: calc(100% - 66px);
  display: flex;
  position: relative;
}

.floating-zoom-level-container {
  position: absolute;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 20px;
  bottom: 20px;
  right: 20px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  transition: all 0.3s ease;
}

.floating-zoom-level-container:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.canvas-holder {
  margin: auto;
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  position: relative;
}

.canvas-holder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(99, 102, 241, 0.15) 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.3;
}

.canvas-container {
  background: white;
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  margin: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.canvas-container::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #f59e0b);
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.canvas-container:hover::before {
  opacity: 1;
}

.toolpanel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  width: 280px;
  top: 0;
  left: 0;
  border: none;
  border-right: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  text-align: left;
  font-size: 14px;
  color: #4a5568;
  display: none;
  position: absolute;
  z-index: 9999;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
}

.toolpanel.closed {
  left: -280px;
}

.toolpanel.visible {
  display: initial;
}

.toolpanel .content {
  padding: 24px;
  position: relative;
  height: -webkit-fill-available;
  height: -ms-fill-available;
  height: fill-available;
  height: -moz-fill-available;
}

.toolpanel .title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding: 0 0 16px 0;
  width: 100%;
  border-bottom: 2px solid #e2e8f0;
  color: #1a202c;
  text-transform: none;
  letter-spacing: -0.025em;
  position: relative;
}

.toolpanel .title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 1px;
}

.toolpanel .content .hide-show-handler {
  position: absolute;
  top: calc(50% - 30px);
  right: -40px;
  width: 36px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-left: none;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);

  background-image: url('/wp-content/plugins/00fabricnew/lib/caret-left.svg');
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center center;
}

.toolpanel .content .hide-show-handler:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(2px);
}

.toolpanel.closed .content .hide-show-handler {
  background-image: url('/wp-content/plugins/00fabricnew/lib/caret-right.svg');
}

.spectrum.with-add-on {
  width: 40px;
}

#shapes-panel .button {
  cursor: pointer;
  line-height: 0;
  overflow: hidden;
  padding: 8px;
  width: 40px;
  height: 40px;
  display: inline-block;
  margin: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid #d1d5db;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

#shapes-panel .button:hover {
  background: rgba(255, 255, 255, 1);
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#background-panel .canvas-size-setting input {
  width: 60px;
  background-color: #fff;
  border-radius: 6px;
  border: 2px solid #e4e4e4;
  padding: 4px 10px;
  line-height: 18px;
  font-size: 13px;
}

#select-panel .text-section .style button,
#select-panel .alignment-section button,
#select-panel .object-options button {
  padding: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid #d1d5db;
  border-radius: 8px;
  text-align: center;
  outline: none;
  margin: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

#select-panel .text-section .style button:hover,
#select-panel .alignment-section button:hover,
#select-panel .object-options button:hover {
  background: rgba(255, 255, 255, 1);
  border-color: #6366f1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#select-panel .text-section .style button.active,
#select-panel .alignment-section button.active,
#select-panel .object-options button.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: #6366f1;
  color: white;
}

#select-panel button svg {
  opacity: 0.7;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  transition: all 0.2s ease;
}

#select-panel button:hover svg {
  opacity: 1;
}

#select-panel button.active svg {
  opacity: 1;
  filter: brightness(0) invert(1);
}

#select-panel .text-section .style,
#select-panel .text-section .family,
#select-panel .text-section .sizes,
#select-panel .text-section .align,
#select-panel .text-section .color {
  margin-bottom: 20px;
}

#select-panel .text-section .sizes input {
  width: 50px;
}

.toolpanel#select-panel .text-section,
.toolpanel#select-panel .effect-section {
  display: none;
}

.toolpanel#select-panel.type-group .border-section {
  display: none;
}

.toolpanel#select-panel.type-group .fill-section {
  display: none;
}

.toolpanel#select-panel.type-textbox .text-section {
  display: block;
}

.toolpanel#select-panel.type-textbox .fill-section {
  display: none;
}

.toolpanel#select-panel.type-image .effect-section {
  display: block;
}

.toolpanel#select-panel.type-image .fill-section {
  display: none;
}

.custom-modal-container {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.custom-modal-content {
  background: white;
  width: max-content;
  min-width: 300px;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-modal-content.show {
  transform: scale(1);
}

.custom-modal-content .button-download {
  border: 1px solid #d1d5db;
  padding: 12px 20px;
  cursor: pointer;
  margin: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  font-weight: 500;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-modal-content .button-download:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toolpanel .input-container {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.toolpanel .input-container label {
  flex: 1;
  font-weight: 500;
  color: #374151;
  font-size: 13px;
}

.toolpanel .input-container select,
.toolpanel .input-container input[type="text"],
.toolpanel .input-container input[type="number"] {
  flex: 1;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  padding: 0 12px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.toolpanel .input-container select:focus,
.toolpanel .input-container input[type="text"]:focus,
.toolpanel .input-container input[type="number"]:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: rgba(255, 255, 255, 1);
}

.toolpanel .input-container .sp-replacer {
  width: 50%;
}

.toolpanel .input-container .custom-number-input {
  background: #ebebeb;
  display: flex;
  align-items: center;
  padding: 1px;
  height: 30px;
  background-color: #e4e4e4;
  border-radius: 6px;
  text-align: center;
}

.toolpanel .input-container .custom-number-input button {
  width: 36px !important;
  height: 30px !important;
  background-color: #fff;
  background-clip: padding-box;
  border-radius: 6px;
  color: #333;
  border: 1px solid transparent;
  font-size: 12px;
  cursor: pointer;
  outline: none;
}

.toolpanel .input-container .custom-number-input input {
  height: 30px !important;
  width: 60px !important;
  background: transparent !important;
  border: none;
  outline: none;
  text-align: center;
}

.toolpanel .input-container .custom-number-input input::-webkit-outer-spin-button,
.toolpanel .input-container .custom-number-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.toolpanel .input-container .custom-number-input input[type=number] {
  -moz-appearance: textfield;
}

.tab-container .tabs {
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.tab-container .tabs .tab-label {
  font-size: 12px;
  cursor: pointer;
}

.tab-container .tabs .tab-label.active {
  color: black
}

.gradient-orientation-container {
  padding-top: 40px;
}

.drag-drop-input {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  width: 100%;
  box-sizing: border-box;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  text-align: center;
  padding: 60px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.drag-drop-input::before {
  content: '📁';
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  opacity: 0.6;
}

.drag-drop-input:hover {
  border-color: #6366f1;
  background: linear-gradient(135deg, #f8fafc 0%, rgba(99, 102, 241, 0.05) 100%);
  transform: translateY(-2px);
}

.drag-drop-input.dragging {
  border-color: #6366f1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2);
}

#tip-container {
  padding: 10px;
  text-align: center;
  touch-action: none;
  cursor: default;
  color: #888;
}