@font-face {
  font-family: 'Articulat CF';
  src: url('font/ArticulatCF-Regular.woff2') format('woff2');
  font-weight: 400; /* Normal */
  font-style: normal;
}

@font-face {
  font-family: 'Articulat CF';
  src: url('font/ArticulatCF-Bold.woff2') format('woff2');
  font-weight: 700; /* Bold */
  font-style: normal;
}

@font-face {
  font-family: 'Articulat CF';
  src: url('font/ArticulatCF-Medium.woff2') format('woff2');
  font-weight: 500; /* Medium */
  font-style: normal;
}

@font-face {
  font-family: 'Articulat CF';
  src: url('font/ArticulatCF-Light.woff2') format('woff2');
  font-weight: 300; /* Light */
  font-style: normal;
}

@font-face {
  font-family: 'Articulat CF';
  src: url('font/ArticulatCF-Thin.woff2') format('woff2');
  font-weight: 200; /* Thin */
  font-style: normal;
}

/* Italic Versions */
@font-face {
  font-family: 'Articulat CF';
  src: url('font/ArticulatCF-RegularOblique.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Articulat CF';
  src: url('font/ArticulatCF-BoldOblique.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
}

/* Hide real button when SVG is active */
.btn-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Button styling */
.edit-button {
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'Articulat CF', sans-serif !important;
  /* font-weight: 400; */ 
}

.edit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.edit-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* SVG styling */
#morph-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, visibility;
  transform: translateZ(0); /* Hardware acceleration */
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#morph-container.visible {
  opacity: 1;
  visibility: visible;
}

.morph-path {
  fill: #000000;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
  will-change: d; /* Optimize for path morphing */
  transform: translateZ(0); /* Hardware acceleration */
}

/* Panel content styling - modified to work with form builder */
#panel-content {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%; /* Changed to 50% to take half the screen as requested */
  height: 100vh;
  padding: 0;
  z-index: 11;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  transform: translateZ(0); /* Hardware acceleration */
  will-change: opacity;
  background-color: #0f172a;
}

#panel-content.visible {
  opacity: 1;
  pointer-events: all;
}

/* Override form builder container to fit in the panel */
#panel-content .container {
  max-width: 100%;
  width: 100%;
  height: 100%;
  padding: 15px;
  margin: 0;
  box-sizing: border-box;
}

#panel-content .form-layout {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Override close button position */
.section-header {
  position: relative;
}

.section-header .close-button {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 24px;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.section-header .close-button:hover {
  color: #e2e8f0;
  transform: scale(1.1);
}

.section-header .close-button:active {
  transform: scale(0.95);
}

/* Specific form elements animation */
.form-layout {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
  pointer-events: none;
}

#panel-content.visible .form-layout {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

/* Override to ensure form elements are visible */
.builder-column {
  opacity: 0;
  transition: opacity 0.5s ease;
  width: 100%; /* Take up full width */
}

#panel-content.visible .builder-column {
  opacity: 1;
}

/* Hide preview column and tab container entirely */
.preview-column,
.tab-container {
  display: none !important;
}

/* Builder form elements styling */
#form-builder {
  opacity: 1 !important;
  transform: none !important;
}

.builder-column *:not(.form-element),
.preview-column *:not(.form-element) {
  opacity: 1 !important;
  transform: none !important;
}

/* Backdrop for when panel is open */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  will-change: opacity, background-color;
  transform: translateZ(0); /* Hardware acceleration */
}

.backdrop.visible {
  opacity: 1;
  pointer-events: all;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Performance indicator */
#performance-indicator {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 100;
}
/* 
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4ade80;
  color: #000;
  padding: 12px 24px;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
} */
