/* Font Faces */
@font-face {
  font-family: PP Editorial New;
  src: url('../fonts/PPEditorialNew-Ultralight.otf') format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: PP Radio Grotesk;
  src: url('../fonts/PPRadioGrotesk-Regular.otf') format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Reset & Base - Scoped to exclude embedded content */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Undo reset for embedded portfolio content */
#site-canvas.embedded-portfolio-content,
#site-canvas.embedded-portfolio-content * {
  margin: revert;
  padding: revert;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #DFDECB;
  color: #e0e0e0;
  overflow: hidden;
  height: 100vh;
  font-size: 12px;
  line-height: 1.4;
  transition: background-color 0.3s ease;
}

body.animations-ready {
  background: #1e1e1e;
}

/* Top Bar */
.top-bar {
  height: 48px;
  background: #292929;
  border-bottom: 1px solid #363636;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}


.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.logo-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.logo-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.logo-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 500;
}

.logo-btn .chevron-down {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  margin-left: 4px;
}

.top-tabs {
  display: flex;
  gap: 4px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #808080;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  font-weight: 500;
  position: relative;
  text-decoration: none;
}

.tab-btn:hover {
  color: #e0e0e0;
  background: #2d2d2d;
}

.tab-btn.active {
  color: #fff;
  background: #3d3d3d;
}

.tab-btn.active:hover {
  background: #3d3d3d;
}

.tab-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.tab-icon.fa-brands,
.tab-icon.fa-solid,
.tab-icon.fa-regular {
  width: auto;
  height: auto;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-btn .chevron-down {
  width: 10px;
  height: 10px;
  opacity: 0.6;
}

.top-bar-center {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.icon-btn-top {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: #a0a0a0;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.icon-btn-top:hover {
  background: #363636;
  color: #fff;
}

.icon-btn-top svg {
  width: 14px;
  height: 14px;
}

.icon-btn-top[title="Check"] svg {
  color: #00d26a;
}

.separator-vertical {
  width: 1px;
  height: 16px;
  background: #363636;
}

.page-selector {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: #e0e0e0;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.page-selector:hover {
  background: #363636;
}

.page-selector svg:first-child {
  width: 14px;
  height: 14px;
}

.page-selector .chevron-down {
  width: 10px;
  height: 10px;
  opacity: 0.6;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.viewport-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #a0a0a0;
  font-size: 11px;
  padding: 4px 6px;
}

.viewport-indicator .chevron-down {
  width: 10px;
  height: 10px;
  opacity: 0.6;
}

.btn-primary,
.btn-secondary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: #0066ff;
  color: #fff;
}

.btn-primary:hover {
  background: #0052cc;
}

.btn-secondary {
  background: transparent;
  color: #e0e0e0;
  border: 1px solid #363636;
  position: relative;
}

.btn-secondary:hover {
  background: #363636;
  border-color: #404040;
}

.share-tooltip {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f1f1f;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  z-index: 1001;
}

.share-tooltip::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #1f1f1f;
}

.btn-secondary.copied .share-tooltip {
  opacity: 1;
  visibility: visible;
}

.btn-primary .chevron-down {
  width: 12px;
  height: 12px;
  opacity: 0.8;
}

/* Main Container */
.main-container {
  display: grid;
  grid-template-columns: 40px 1fr 280px;
  height: calc(100vh - 48px);
  margin-top: 48px;
}


/* Left Sidebar */
.left-sidebar {
  background: #1f1f1f;
  border-right: 1px solid #363636;
  display: flex;
  position: relative;
}

.sidebar-icons {
  width: 40px;
  min-width: 40px;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  gap: 2px;
  background: #252525;
  justify-content: space-between;
}

.icon-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.icon-group-bottom {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: auto;
}

.icon-btn {
  width: 32px;
  height: 32px;
  margin: 0 auto;
  background: transparent;
  border: none;
  color: #808080;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background: #3d3d3d;
  color: #e0e0e0;
}

.icon-btn.active {
  background: #3d3d3d;
  color: #146ef5;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.separator {
  height: 1px;
  background: #363636;
  margin: 6px 8px;
}

/* Wonderwall Tooltip */
.wonderwall-tooltip {
  position: fixed;
  z-index: 10000;
  background: #2b2b2b;
  color: #e0e0e0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  white-space: normal;
  max-width: 300px;
  line-height: 1.4;
  pointer-events: none;
  border: 1px solid #404040;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-50%) scale(0.8) rotate(-2deg);
  transition: opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), 
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              font-size 0.2s ease;
}

.wonderwall-tooltip.show {
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(0deg);
}

/* Playful bounce animation */
@keyframes tooltipBounce {
  0% {
    transform: translateY(-50%) scale(0.8) rotate(-2deg);
  }
  50% {
    transform: translateY(-50%) scale(1.1) rotate(1deg);
  }
  100% {
    transform: translateY(-50%) scale(1) rotate(0deg);
  }
}

.wonderwall-tooltip.bounce {
  animation: tooltipBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Shake animation for "Maybe" and "Wonderwall" - reduced intensity */
@keyframes tooltipShake {
  0%, 100% {
    transform: var(--y-transform, translateY(-50%)) translateX(0) rotate(0deg);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: var(--y-transform, translateY(-50%)) translateX(-2px) rotate(-1deg);
  }
  20%, 40%, 60%, 80% {
    transform: var(--y-transform, translateY(-50%)) translateX(2px) rotate(1deg);
  }
}

.wonderwall-tooltip.shake {
  animation: tooltipShake 0.6s ease-in-out;
  animation-iteration-count: infinite;
}

/* Combine bounce and shake - shake should override bounce */
.wonderwall-tooltip.shake.bounce {
  animation: tooltipShake 0.6s ease-in-out, tooltipBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation-iteration-count: infinite, 1;
}

.sidebar-panel {
  width: 192px;
  background: #2b2b2b;
  border-right: 1px solid #363636;
  display: flex;
  flex-direction: column;
}

.panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid #363636;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header h3 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel-header-actions {
  display: flex;
  gap: 4px;
}

.icon-btn-header {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  color: #a0a0a0;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.icon-btn-header:hover {
  background: #363636;
  color: #fff;
}

.icon-btn-header svg {
  width: 14px;
  height: 14px;
}

.panel-content {
  padding: 8px 0;
  overflow-y: auto;
  flex: 1;
}

.navigator-tree {
  padding: 4px 0;
}

.navigator-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 12px;
  border-radius: 0;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 13px;
  min-height: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.navigator-item:hover {
  background: #363636;
}

.navigator-item.selected {
  background: #0066ff;
  color: #fff;
}

.navigator-item.indent {
  padding-left: 24px;
}

.navigator-item.indent-2 {
  padding-left: 36px;
}

.navigator-item.indent-3 {
  padding-left: 48px;
}

.navigator-item.indent-4 {
  padding-left: 60px;
}

.navigator-item.indent-5 {
  padding-left: 72px;
}

.navigator-expand {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: #a0a0a0;
}

.navigator-expand.expanded {
  transform: rotate(90deg);
}

.navigator-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #a0a0a0;
}

.navigator-icon.component {
  color: #00d26a;
}

.navigator-item.selected .navigator-icon {
  color: #fff;
}

.navigator-label {
  flex: 1;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Canvas Container */
.canvas-container {
  background: transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease;
}

body.animations-ready .canvas-container {
  background: #2b2b2b;
}

/* Canvas Toolbar (above canvas) */
.canvas-toolbar {
  height: 32px;
  min-height: 32px;
  background: #2b2b2b;
  border-bottom: 1px solid #3d3d3d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.canvas-toolbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.canvas-toolbar-center {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.canvas-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.canvas-wrapper {
  flex: 1;
  width: 100%;
  max-width: 100%;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  padding: 0;
  transition: background-color 0.3s ease;
}

body.animations-ready .canvas-wrapper {
  background: #2b2b2b;
}

#site-canvas {
  width: 100%;
  max-width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  position: relative;
  z-index: 1;
  transition: width 0.3s ease;
}

/* Embedded portfolio content (replaces iframe) */
#site-canvas.embedded-portfolio-content {
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  min-height: 100%;
  width: 100%;
  height: 100%;
  position: relative;
  /* Allow embedded content to use its own styles without interference */
  font-size: initial;
  line-height: initial;
  color: initial;
}

#site-canvas.embedded-portfolio-content > * {
  /* Ensure embedded content fills the container */
  min-height: 100%;
}

/* Reset body styles for embedded content to prevent conflicts */
#site-canvas.embedded-portfolio-content body {
  overflow: visible !important;
  height: auto !important;
  overflow-x: clip;
}

/* Ensure embedded content's styles take precedence */
#site-canvas.embedded-portfolio-content * {
  /* Allow embedded content to use its own styles */
  box-sizing: border-box;
}

/* Scope ink toolbar to embedded content - HIDDEN since we removed it */
#site-canvas.embedded-portfolio-content .ink-toolbar {
  display: none !important;
}

/* Ensure ink layer is positioned relative to embedded content - HIDDEN since we removed it */
#site-canvas.embedded-portfolio-content #ink {
  display: none !important;
}

.element-label {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #0066ff;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  z-index: 10;
  pointer-events: none;
}

/* Right Sidebar */
.right-sidebar {
  background: #252525;
  border-left: 1px solid #363636;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 240px;
  max-width: 400px;
}

.inspector-header {
  padding: 12px 16px;
  border-bottom: none;
}

.inspector-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.selected-status {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-label {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.selected-status .element-type-icon {
  width: 16px;
  height: 16px;
  color: #a0a0a0;
}

.checkbox-icon {
  width: 16px;
  height: 16px;
  color: #a0a0a0;
  flex-shrink: 0;
}

.element-type-icon {
  width: 16px;
  height: 16px;
  color: #a0a0a0;
}

.element-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.inspector-tabs {
  display: flex;
  gap: 0;
  border-top: 1px solid #363636;
  border-bottom: 1px solid #363636;
  margin: 0 -16px;
  padding: 0 16px;
}

.inspector-tab {
  background: transparent;
  border: none;
  color: #808080;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  margin-bottom: -1px;
  font-weight: 400;
}

.inspector-tab:hover {
  color: #e0e0e0;
}

.inspector-tab.active {
  color: #fff;
  border-bottom-color: #146ef5;
  font-weight: 500;
}

/* Interactions Tab Wave Animation */
.interactions-tab-animated {
  position: relative;
}

.interactions-tab-animated:not(.animation-stopped) .interactions-letter {
  display: inline-block;
  color: #808080;
  animation: interactions-wave 5s ease-in-out infinite;
  animation-delay: calc(var(--letter-index) * 0.05s);
}

.interactions-tab-animated .interactions-letter-space {
  display: inline-block;
}

.interactions-tab-animated:hover:not(.animation-stopped) .interactions-letter {
  animation-play-state: paused;
  color: #e0e0e0;
}

.interactions-tab-animated.active .interactions-letter,
.interactions-tab-animated.animation-stopped .interactions-letter {
  animation: none;
  color: #808080;
}

.interactions-tab-animated.active .interactions-letter {
  color: #fff;
}

@keyframes interactions-wave {
  0%, 92% {
    color: #808080;
  }
  2%, 8% {
    color: #fff;
  }
  10%, 92% {
    color: #808080;
  }
}

.inspector-content {
  padding-top: 0;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 32px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.style-selector-group {
  margin-bottom: 16px;
}

.style-selector-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #a0a0a0;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 8px;
}

.style-selector-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2d2d2d;
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  padding: 10px 12px;
}

.style-selector-icon {
  width: 16px;
  height: 16px;
  color: #0066ff;
  flex-shrink: 0;
}

.style-selector-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #a0a0a0;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.style-selector-input::placeholder {
  color: #666;
}

.empty-state-content {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  margin-top: 24px;
  border: none;
  border-radius: 4px;
  background: transparent;
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  opacity: 0.3;
  color: #666;
}

.empty-title {
  font-size: 14px;
  font-weight: 500;
  color: #a0a0a0;
  margin-bottom: 8px;
}

.empty-subtitle {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.variable-modes-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.variable-modes-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: #e0e0e0;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.variable-modes-toggle:hover {
  background: #363636;
}

.variable-modes-toggle.expanded .chevron-down {
  transform: rotate(180deg);
}

.add-variable-mode-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid #363636;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.add-variable-mode-btn:hover {
  background: #363636;
  border-color: #404040;
  color: #fff;
}

.separator-horizontal {
  height: 1px;
  background: #363636;
  margin: 16px 0;
}

/* Style Sections */
.style-section {
  margin-bottom: 8px;
}

.style-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.style-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}

.section-icon {
  width: 16px;
  height: 16px;
  color: #a0a0a0;
  flex-shrink: 0;
}

.style-section-title .chevron-down {
  width: 12px;
  height: 12px;
  color: #a0a0a0;
  margin-left: auto;
}

.section-link-btn,
.section-help-btn {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  color: #a0a0a0;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.section-link-btn:hover,
.section-help-btn:hover {
  background: #363636;
  color: #fff;
}

.style-section-content {
  padding-left: 24px;
  padding-top: 8px;
}

.control-group {
  margin-bottom: 16px;
}

.control-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Flex Child Controls */
.sizing-buttons {
  display: flex;
  gap: 4px;
}

.sizing-btn {
  width: 32px;
  height: 32px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sizing-btn:hover {
  background: #404040;
  color: #fff;
}

.sizing-btn.active {
  background: #2b2b2b;
  border-color: #0066ff;
  color: #fff;
}

.sizing-btn svg {
  width: 14px;
  height: 14px;
}

.toggle-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #a0a0a0;
  padding: 8px 0;
  cursor: pointer;
  font-size: 13px;
  transition: color 0.2s;
  width: 100%;
  text-align: left;
}

.toggle-control:hover {
  color: #fff;
}

.toggle-icon {
  width: 16px;
  height: 16px;
  color: #a0a0a0;
}

.align-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.align-btn {
  width: 32px;
  height: 32px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 600;
}

.align-btn:hover {
  background: #404040;
  color: #fff;
}

.align-btn.active {
  background: #2b2b2b;
  border-color: #0066ff;
  color: #fff;
}

.align-btn svg {
  width: 14px;
  height: 14px;
}

.order-buttons {
  display: flex;
  gap: 4px;
}

.order-btn {
  padding: 6px 12px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.order-btn:hover {
  background: #404040;
  color: #fff;
}

.order-btn.active {
  background: #2b2b2b;
  border-color: #0066ff;
  color: #fff;
}

.order-btn svg {
  width: 14px;
  height: 14px;
}

/* Layout Controls */
.display-buttons {
  display: flex;
  gap: 4px;
}

.display-btn {
  padding: 6px 12px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.display-btn:hover {
  background: #404040;
  color: #fff;
}

.display-btn.active {
  background: #2b2b2b;
  border-color: #0066ff;
  color: #fff;
}

.display-btn .chevron-down {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

/* Spacing Visualizer */
.spacing-visualizer {
  position: relative;
  padding: 24px;
  background: #1f1f1f;
  border-radius: 4px;
  margin: 8px 0;
}

.spacing-label {
  position: absolute;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.margin-label {
  top: 8px;
  left: 8px;
  color: #ff9500;
}

.padding-label {
  top: 32px;
  left: 32px;
  color: #fff;
}

.margin-box {
  position: relative;
  border: 2px solid #ff9500;
  border-radius: 4px;
  padding: 16px;
  background: #252525;
}

.padding-box {
  position: relative;
  border: 2px solid #666;
  border-radius: 4px;
  padding: 16px;
  background: #2b2b2b;
}

.content-box {
  width: 100%;
  height: 40px;
  background: #363636;
  border-radius: 2px;
}

.spacing-input {
  position: absolute;
  width: 32px;
  height: 20px;
  background: #1f1f1f;
  border: 1px solid #404040;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  text-align: center;
  padding: 2px 4px;
  font-family: 'Courier New', monospace;
}

.margin-top {
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  color: #ff9500;
}

.margin-right {
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff9500;
}

.margin-bottom {
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  color: #ff9500;
}

.margin-left {
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff9500;
}

.padding-top {
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
}

.padding-right {
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}

.padding-bottom {
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
}

.padding-left {
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}

/* Size Controls */
.input-with-button,
.input-with-unit {
  display: flex;
  align-items: center;
  gap: 4px;
}

.size-input {
  flex: 1;
  background: #363636;
  border: 1px solid #404040;
  color: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  outline: none;
}

.size-input:focus {
  border-color: #0066ff;
}

.unit-label {
  font-size: 11px;
  color: #a0a0a0;
  min-width: 24px;
}

.input-btn {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid #363636;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s;
}

.input-btn:hover {
  background: #363636;
  border-color: #404040;
  color: #fff;
}

.overflow-buttons {
  display: flex;
  gap: 4px;
}

.overflow-btn {
  width: 32px;
  height: 32px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.overflow-btn:hover {
  background: #404040;
  color: #fff;
}

.overflow-btn.active {
  background: #2b2b2b;
  border-color: #0066ff;
  color: #fff;
}

.overflow-btn span {
  font-size: 11px;
  margin-right: 2px;
}

.overflow-btn svg {
  width: 14px;
  height: 14px;
}

/* Position Controls */
.position-select {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  padding: 6px 8px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.position-select:hover {
  background: #404040;
  border-color: #0066ff;
}

.position-select svg:first-child {
  width: 14px;
  height: 14px;
}

/* Typography Controls */
.font-select-btn,
.size-preset-btn,
.color-select-btn {
  width: 100%;
  padding: 6px 12px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.font-select-btn:hover,
.size-preset-btn:hover,
.color-select-btn:hover {
  background: #404040;
  border-color: #0066ff;
}

.weight-select {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  padding: 6px 8px;
  color: #fff;
  font-size: 13px;
}

.weight-select span {
  flex: 1;
}

.align-buttons-horizontal {
  display: flex;
  gap: 4px;
}

.align-btn-horizontal {
  flex: 1;
  height: 32px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.align-btn-horizontal:hover {
  background: #404040;
  color: #fff;
}

.align-btn-horizontal.active {
  background: #2b2b2b;
  border-color: #0066ff;
  color: #fff;
}

.align-btn-horizontal svg {
  width: 14px;
  height: 14px;
}

.decor-buttons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.decor-btn {
  width: 32px;
  height: 32px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.decor-btn:hover {
  background: #404040;
  color: #fff;
}

.decor-btn.active {
  background: #2b2b2b;
  border-color: #0066ff;
  color: #fff;
}

.decor-btn svg {
  width: 14px;
  height: 14px;
}

.decor-settings-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid #363636;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.decor-settings-btn:hover {
  background: #363636;
  border-color: #404040;
  color: #fff;
}

/* Background Controls */
.add-bg-btn {
  width: 100%;
  height: 40px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.add-bg-btn:hover {
  background: #404040;
  border-color: #0066ff;
  color: #fff;
}

.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  padding: 8px 12px;
}

.color-icon {
  width: 16px;
  height: 16px;
  color: #a0a0a0;
  flex-shrink: 0;
}

.color-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  outline: none;
}

.color-input::placeholder {
  color: #666;
}

.color-picker-icon {
  width: 16px;
  height: 16px;
  color: #a0a0a0;
  cursor: pointer;
  flex-shrink: 0;
}

.color-hint {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
  line-height: 1.4;
}

.clipping-select {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  padding: 6px 8px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.clipping-select:hover {
  background: #404040;
  border-color: #0066ff;
}

/* Border Controls */
.radius-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radius-toggle {
  display: flex;
  gap: 4px;
}

.radius-toggle-btn {
  flex: 1;
  padding: 6px 12px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.radius-toggle-btn:hover {
  background: #404040;
  color: #fff;
}

.radius-toggle-btn.active {
  background: #2b2b2b;
  border-color: #0066ff;
  color: #fff;
}

.radius-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radius-slider {
  flex: 1;
  height: 4px;
  background: #363636;
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #0066ff;
  border-radius: 50%;
  cursor: pointer;
}

.radius-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #0066ff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.radius-input-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.radius-input {
  width: 48px;
  background: #363636;
  border: 1px solid #404040;
  color: #fff;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  text-align: center;
  outline: none;
}

.border-sides {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.border-side-btn {
  width: 32px;
  height: 32px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.border-side-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 2px;
  background: #666;
  border-radius: 1px;
}

.border-side-btn:hover {
  background: #404040;
  border-color: #0066ff;
}

.border-side-btn.active {
  background: #2b2b2b;
  border-color: #0066ff;
}

.border-side-btn.active::after {
  background: #0066ff;
}

.border-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.border-style-buttons {
  display: flex;
  gap: 4px;
}

.border-style-btn {
  width: 32px;
  height: 32px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.border-style-btn:hover {
  background: #404040;
  color: #fff;
}

.border-style-btn.active {
  background: #2b2b2b;
  border-color: #0066ff;
  color: #fff;
}

.border-style-btn svg {
  width: 14px;
  height: 14px;
}

/* Effects Controls */
.blending-select {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  padding: 6px 8px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.blending-select:hover {
  background: #404040;
  border-color: #0066ff;
}

.opacity-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.opacity-slider {
  flex: 1;
  height: 4px;
  background: #363636;
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.opacity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #0066ff;
  border-radius: 50%;
  cursor: pointer;
}

.opacity-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #0066ff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.opacity-input-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.opacity-input {
  width: 48px;
  background: #363636;
  border: 1px solid #404040;
  color: #fff;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  text-align: center;
  outline: none;
}

.outline-buttons {
  display: flex;
  gap: 4px;
}

.outline-btn {
  width: 32px;
  height: 32px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.outline-btn:hover {
  background: #404040;
  color: #fff;
}

.outline-btn.active {
  background: #2b2b2b;
  border-color: #0066ff;
  color: #fff;
}

.outline-btn svg {
  width: 14px;
  height: 14px;
}

.add-effect-btn {
  width: 100%;
  height: 32px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.add-effect-btn:hover {
  background: #404040;
  border-color: #0066ff;
  color: #fff;
}

.cursor-select {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  padding: 6px 8px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.cursor-select:hover {
  background: #404040;
  border-color: #0066ff;
}

.cursor-select svg:first-child {
  width: 14px;
  height: 14px;
}

.events-radio {
  display: flex;
  gap: 8px;
}

.event-radio-btn {
  flex: 1;
  padding: 6px 12px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.event-radio-btn:hover {
  background: #404040;
  color: #fff;
}

.event-radio-btn.active {
  background: #2b2b2b;
  border-color: #0066ff;
  color: #fff;
}

/* Custom Properties */
.custom-property {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px;
  background: #1f1f1f;
  border-radius: 4px;
}

.custom-property-key {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #fff;
}

.property-name {
  color: #a0a0a0;
}

.custom-property-value {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-input {
  flex: 1;
  background: #363636;
  border: 1px solid #404040;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  outline: none;
}

.property-value-display {
  font-size: 12px;
  color: #a0a0a0;
  font-family: 'Courier New', monospace;
}

.add-property-btn {
  width: 100%;
  padding: 8px 12px;
  background: #363636;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  transition: all 0.2s;
}

.add-property-btn:hover {
  background: #404040;
  border-color: #0066ff;
  color: #fff;
}

.add-property-btn svg {
  width: 16px;
  height: 16px;
}

/* Bottom Toolbar */
.bottom-toolbar {
  position: fixed;
  bottom: 0;
  left: 48px;
  right: 0;
  height: 40px;
  background: #252525;
  border-top: 1px solid #363636;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
}

.bottom-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-btn {
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  color: #808080;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.toolbar-btn:not(:disabled):hover {
  background: #3d3d3d;
  color: #e0e0e0;
}

.toolbar-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.toolbar-btn svg {
  width: 14px;
  height: 14px;
}

.bottom-toolbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.no-selection-text {
  color: #808080;
  font-size: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  max-width: 100%;
}

.breadcrumb-item {
  background: transparent;
  border: none;
  color: #808080;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.breadcrumb-item:hover {
  background: #3d3d3d;
  color: #e0e0e0;
}

.breadcrumb-item.active {
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item.active::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #146ef5;
  border-radius: 2px;
  flex-shrink: 0;
}

.breadcrumb-chevron {
  width: 12px;
  height: 12px;
  color: #555;
  flex-shrink: 0;
}

.breadcrumb-ellipsis {
  color: #555;
  font-size: 12px;
  padding: 0 2px;
  user-select: none;
}

.bottom-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewport-width-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #808080;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.viewport-width-btn:hover {
  background: #3d3d3d;
  color: #e0e0e0;
}

.breakpoint-selector {
  display: flex;
  gap: 2px;
  align-items: center;
}

.breakpoint-btn {
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  color: #808080;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.breakpoint-btn:hover {
  background: #363636;
  color: #e0e0e0;
}

.breakpoint-btn.active {
  background: #3d3d3d;
  color: #fff;
  border: none;
}

.breakpoint-btn svg {
  width: 14px;
  height: 14px;
}

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

::-webkit-scrollbar-track {
  background: #1f1f1f;
}

::-webkit-scrollbar-thumb {
  background: #363636;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #404040;
}

/* Chevron Animation */
.chevron-down {
  transition: transform 0.2s;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* ============================================
   Canvas Editor - Hover & Selection Overlays
   ============================================ */

/* Hover box - dashed blue outline */
.element-hover-box {
  position: absolute;
  pointer-events: none;
  border: 1px dashed #0066ff;
  background: rgba(0, 102, 255, 0.05);
  z-index: 100;
  transition: all 0.1s ease-out;
  border-radius: 2px;
}

/* Selection box - solid blue outline */
.element-select-box {
  position: absolute;
  pointer-events: none;
  border: 2px solid #0066ff;
  background: rgba(0, 102, 255, 0.08);
  z-index: 101;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 102, 255, 0.3);
}

/* Selection box resize handles (future enhancement) */
.element-select-box::before,
.element-select-box::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #0066ff;
  border: 1px solid #fff;
  border-radius: 1px;
}

.element-select-box::before {
  top: -4px;
  left: -4px;
}

.element-select-box::after {
  bottom: -4px;
  right: -4px;
}

/* Hover label - shows element tag/class */
.element-hover-label {
  position: absolute;
  pointer-events: none;
  background: #0066ff;
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  white-space: nowrap;
  z-index: 102;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Selection text in toolbar */
.selection-text {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.selection-text::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #0066ff;
  border-radius: 2px;
}

/* Canvas wrapper needs position relative for overlays */
.canvas-wrapper {
  position: relative;
}

/* Inspector updates when element selected */
.inspector-title {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Checkbox checked state styling */
.selected-status .checkbox-icon rect[fill="#0066ff"] {
  fill: #0066ff;
}

/* Style selector input when element selected */
.style-selector-input:not([value="None"]) {
  color: #0066ff;
  font-weight: 500;
}

/* ============================================
   Typography Panel Styles
   ============================================ */

.typography-panel {
  padding: 0;
}

.typo-section {
  border-bottom: none;
}

.typo-section:not(.layout-section) {
  border-bottom: none;
}

.typo-section:last-child {
  border-bottom: none;
}

.layout-section + .typo-section {
  border-top: none !important;
  border-bottom: none !important;
}

.typo-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  cursor: pointer;
  user-select: none;
  border-bottom: none;
  border-top: none;
}

.layout-section + .typo-section .typo-section-header {
  border-bottom: none !important;
  border-top: none !important;
}

.layout-section + .typo-section .typo-section-content {
  border-top: none !important;
  border-bottom: none !important;
}

.typo-section-title {
  font-size: 12px;
  font-weight: 500;
  color: #e0e0e0;
  letter-spacing: 0.02em;
}

.chevron-icon {
  color: #808080;
  transition: transform 0.2s ease;
  width: 14px;
  height: 14px;
}

.typo-section.collapsed .chevron-icon {
  transform: rotate(-90deg);
}

.typo-section.collapsed .typo-section-content {
  display: none;
}

.typo-section-content {
  padding-bottom: 16px;
  border-top: none;
  border-bottom: none;
}

/* Control Rows */
.typo-control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.typo-control-row:last-child {
  margin-bottom: 0;
}

.typo-label {
  width: 44px;
  min-width: 44px;
  font-size: 11px;
  font-weight: 400;
  color: #B9B9B9;
  text-transform: capitalize;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.typo-label.changed {
  background: #1a3a5c;
  color: #7eb8ff;
}

.typo-input-wrapper {
  flex: 1;
  min-width: 0;
}

/* Select Inputs */
.typo-select {
  width: 100%;
  padding: 6px 10px;
  background: #3d3d3d;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23808080' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.typo-select:hover {
  background-color: #454545;
}

.typo-select:focus {
  box-shadow: 0 0 0 2px rgba(20, 110, 245, 0.4);
}

.typo-select option {
  background: #2d2d2d;
  color: #fff;
  padding: 6px;
}

/* Dual Control Row (Size + Height) */
.typo-dual-row {
  gap: 12px;
}

.typo-dual-control {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.typo-dual-control .typo-label {
  width: 52px;
  min-width: 52px;
}

.typo-dual-control:last-child .typo-label {
  width: 46px;
  min-width: 46px;
}

/* Size & Height Row Layout */
.typo-size-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}

.typo-size-row .typo-label {
  width: 44px;
  min-width: 44px;
  flex-shrink: 0;
}

.typo-size-row .typo-input-wrapper {
  flex: 1;
  min-width: 0;
}

.typo-inline-input {
  display: flex;
  align-items: center;
  background: #3d3d3d;
  border-radius: 4px;
  height: 28px;
  flex-shrink: 0;
}

.typo-num-input {
  width: 32px;
  min-width: 32px;
  padding: 4px 4px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  text-align: center;
}

.typo-num-input:focus {
  outline: none;
  background: rgba(20, 110, 245, 0.1);
}

.typo-input-wrapper .typo-size-input {
  width: 100%;
  padding: 6px 10px;
  background: #3d3d3d;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  cursor: text;
  outline: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.typo-input-wrapper .typo-size-input:hover {
  background-color: #454545;
}

.typo-input-wrapper .typo-size-input:focus {
  box-shadow: 0 0 0 2px rgba(20, 110, 245, 0.4);
}

.typo-unit-dropdown {
  min-width: 36px;
  width: 36px;
  padding: 4px 2px;
  background: #4a4a4a;
  border: none;
  border-left: 1px solid #555;
  border-radius: 0 4px 4px 0;
  color: #a0a0a0;
  font-size: 9px;
  font-family: inherit;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.typo-unit-dropdown:hover {
  background: #555;
  color: #fff;
}

.typo-unit-dropdown:focus {
  outline: none;
}

.typo-unit-text {
  min-width: 24px;
  width: 24px;
  padding: 4px 4px;
  background: #4a4a4a;
  border-left: 1px solid #555;
  border-radius: 0 4px 4px 0;
  color: #a0a0a0;
  font-size: 9px;
  text-align: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typo-size-input-group {
  display: flex;
  flex: 1;
  background: #3d3d3d;
  border-radius: 6px;
  overflow: hidden;
}

.typo-size-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  text-align: left;
}

.typo-size-input:focus {
  background: rgba(20, 110, 245, 0.1);
}

.typo-unit-select {
  width: 48px;
  padding: 8px 4px;
  background: #4a4a4a;
  border: none;
  border-left: 1px solid #555;
  color: #a0a0a0;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
}

.typo-unit-select:hover {
  background: #555;
  color: #fff;
}

/* Simple Text Input */
.typo-text-input {
  width: 100%;
  padding: 6px 10px;
  background: #3d3d3d;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.typo-text-input:hover {
  background-color: #454545;
}

.typo-text-input:focus {
  box-shadow: 0 0 0 2px rgba(20, 110, 245, 0.4);
}

/* Size & Height Compact Layout */
.typo-size-height-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.typo-size-group,
.typo-height-group {
  display: flex;
  align-items: center;
  background: #3d3d3d;
  border-radius: 4px;
  overflow: hidden;
}

.typo-size-group {
  flex: 1;
}

.typo-height-group {
  flex: 0 0 auto;
}

.typo-compact-input {
  width: 36px;
  padding: 6px 8px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  text-align: left;
}

.typo-compact-input:focus {
  background: rgba(20, 110, 245, 0.1);
}

.typo-compact-unit {
  padding: 6px 4px;
  background: #4a4a4a;
  border: none;
  border-left: 1px solid #555;
  color: #a0a0a0;
  font-size: 10px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.typo-compact-unit:hover {
  background: #555;
  color: #fff;
}

.typo-compact-unit-text {
  padding: 6px 8px;
  background: #4a4a4a;
  border-left: 1px solid #555;
  color: #a0a0a0;
  font-size: 10px;
}

.typo-height-label {
  font-size: 11px;
  color: #808080;
  white-space: nowrap;
}

/* Color Control */
.typo-color-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #3d3d3d;
  border-radius: 4px;
  padding: 3px 8px 3px 3px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.typo-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: #e0e0e0;
  border: 1px solid #555;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

.typo-color-swatch:hover {
  border-color: #888;
}

.typo-color-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  padding: 2px 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.typo-color-picker {
  width: 0;
  height: 0;
  padding: 0;
  border: none;
  visibility: hidden;
  position: absolute;
}

/* Button Groups */
.typo-button-group {
  flex: 1;
  display: flex;
  gap: 3px;
}

.typo-btn {
  flex: 1;
  height: 28px;
  max-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3d3d3d;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #a0a0a0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.typo-btn:hover {
  background: #4a4a4a;
  color: #fff;
}

.typo-btn.active {
  background: #1E1E1E;
  border-color: transparent;
  color: #fff;
}

.typo-btn svg {
  width: 14px;
  height: 14px;
}

.typo-btn-more {
  background: transparent;
  border: 1px solid #3d3d3d;
  max-width: 28px;
}

.typo-btn-more:hover {
  background: #3d3d3d;
}

.typo-btn-more.active {
  background: #1E1E1E;
  border-color: #1E1E1E;
}

/* Adjustments for inspector content when panel is shown */
.inspector-content:has(.typography-panel[style*="block"]) .empty-state-content,
.inspector-content:has(.typography-panel:not([style*="none"])) .empty-state-content,
.inspector-content:has(.themer-panel[style*="block"]) .empty-state-content,
.inspector-content:has(.themer-panel:not([style*="none"])) .empty-state-content,
.inspector-content:has(.features-panel[style*="block"]) .empty-state-content,
.inspector-content:has(.features-panel:not([style*="none"])) .empty-state-content {
  display: none !important;
}

/* =================================
   THEMER PANEL
   ================================= */

.themer-panel {
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.themer-section {
  border-bottom: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.themer-section:last-child {
  border-bottom: none;
}

.themer-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  cursor: pointer;
  user-select: none;
}

.themer-section-title {
  font-size: 12px;
  font-weight: 500;
  color: #e0e0e0;
  letter-spacing: 0.02em;
}

.themer-section.collapsed .chevron-icon {
  transform: rotate(-90deg);
}

.themer-section.collapsed .themer-section-content {
  display: none;
}

.themer-section-content {
  padding-bottom: 16px;
  overflow: hidden;
  width: 100%;
}

/* Variable Rows */
.themer-variable-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.themer-variable-row:last-child {
  margin-bottom: 0;
}

.themer-variable-label {
  width: 120px;
  min-width: 120px;
  font-size: 11px;
  font-weight: 400;
  color: #B9B9B9;
  text-transform: capitalize;
  padding: 4px 6px;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}

.themer-variable-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.themer-variable-input {
  flex: 1;
  padding: 6px 10px;
  background: #3d3d3d;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  outline: none;
  transition: border-color 0.15s ease;
  min-width: 0;
}

.themer-variable-input:focus {
  border-color: #0066ff;
  background: #404040;
}


.themer-empty {
  padding: 16px;
  text-align: center;
  color: #808080;
  font-size: 12px;
  font-style: italic;
}

.themer-font-select {
  flex: 1;
  padding: 6px 10px;
  background: #3d3d3d;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23808080' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  min-width: 0;
}

.themer-font-select:hover {
  border-color: #505050;
}

.themer-font-select:focus {
  border-color: #0066ff;
  background-color: #404040;
}

.themer-font-select option {
  background: #3d3d3d;
  color: #fff;
  padding: 8px;
}


/* =================================
   LAYOUT SECTION
   ================================= */

.layout-section {
  border-bottom: none !important;
  border-top: none !important;
}

.layout-section:not(.collapsed) {
  border-bottom: none !important;
}

.layout-section .typo-section-content {
  border-bottom: none !important;
  border-top: none !important;
  padding-bottom: 16px;
  margin-bottom: 0 !important;
}

.layout-section:not(.collapsed) .typo-section-content {
  border-bottom: none !important;
}

.layout-section:not(.collapsed) {
  border-bottom: none !important;
}

.layout-section:not(.collapsed) + .typo-section {
  border-top: none !important;
}

.layout-section:not(.collapsed) + .typo-section .typo-section-header {
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 10px !important;
}

.layout-section:not(.collapsed) + .typo-section {
  border-top: none !important;
  border-bottom: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.layout-section:not(.collapsed) + .typo-section::before {
  display: none !important;
  content: none !important;
}

.layout-section:not(.collapsed)::after {
  display: none !important;
  content: none !important;
  border: none !important;
}

.layout-section .typo-section-header {
  border-bottom: none !important;
  border-top: none !important;
}

.layout-section .typo-control-row {
  border-bottom: none !important;
  border-top: none !important;
}

.layout-section .typo-control-row:last-child {
  border-bottom: none !important;
}

.typo-section-content {
  border-bottom: none;
}

.layout-label {
  width: 56px;
  min-width: 56px;
}

/* Layout Button Group */
.layout-btn-group {
  flex: 1;
  display: flex;
  gap: 2px;
}

.layout-btn {
  flex: 1;
  height: 28px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3d3d3d;
  border: none;
  border-radius: 4px;
  color: #a0a0a0;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.layout-btn:hover {
  background: #4a4a4a;
  color: #fff;
}

.layout-btn.active {
  background: #1E1E1E;
  color: #fff;
}

.layout-icon-btn {
  max-width: 36px;
  padding: 0;
}

.layout-icon-btn svg {
  width: 14px;
  height: 14px;
}

.layout-btn-more {
  max-width: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid #3d3d3d;
}

.layout-btn-more:hover {
  background: #3d3d3d;
}

/* Flex-only rows (shown when display is flex) */
.flex-only-row {
  display: none;
}

.flex-only-row.visible {
  display: flex;
}

/* Align Controls */
.align-controls {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.align-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 6px;
  background: #2a2a2a;
  border-radius: 6px;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.align-dot {
  width: 100%;
  height: 100%;
  background: #555;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.align-dot:hover {
  background: #777;
}

.align-dot.active {
  background: #fff;
}

/* Align Preview Lines */
.align-grid::before {
  display: none;
  content: none;
}

.align-dropdowns {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.align-dropdown-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.align-axis {
  width: 14px;
  font-size: 11px;
  color: #888;
  text-align: center;
}

.layout-select {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  background: #3d3d3d;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 4L5 6.5L7.5 4' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 20px;
  text-overflow: ellipsis;
  overflow: hidden;
}

.layout-select:hover {
  background-color: #4a4a4a;
}

.layout-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(20, 110, 245, 0.4);
}

/* Gap Controls */
.gap-controls {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0; /* Allow flex shrinking */
  max-width: 100%; /* Prevent overflow */
  overflow: hidden; /* Prevent spilling */
  box-sizing: border-box;
  width: 100%;
}

.gap-controls .typo-inline-input {
  flex-shrink: 0;
  max-width: 50px;
  min-width: 50px;
  width: 50px;
  height: 28px; /* Match other control heights */
}

.gap-slider {
  flex: 1 1 0;
  min-width: 0; /* Allow slider to shrink */
  max-width: none;
  width: 0; /* Force flex basis */
  height: 4px;
  flex-basis: 0;
  -webkit-appearance: none;
  appearance: none;
  background: #3d3d3d;
  border-radius: 2px;
  cursor: pointer;
}

.gap-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.gap-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.gap-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.gap-lock-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3d3d3d;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #B9B9B9;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.gap-lock-btn:hover {
  background: #404040;
  color: #fff;
}

.gap-lock-btn.locked {
  background: rgba(20, 110, 245, 0.2);
  color: #146ef5;
}

.gap-lock-btn svg {
  width: 14px;
  height: 14px;
}

/* Align controls row specific styling */
.align-controls-row {
  align-items: flex-start;
  border-bottom: none !important;
  border-top: none !important;
  margin-bottom: 8px !important;
}

.align-controls-row .typo-label {
  padding-top: 24px;
}

.align-controls-row .align-controls {
  border-bottom: none !important;
  border-top: none !important;
}

#align-row {
  border-bottom: none !important;
  border-top: none !important;
}

#align-row::after,
#align-row::before {
  display: none !important;
  content: none !important;
  border: none !important;
}

/* =================================
   FEATURES PANEL
   ================================= */

.features-panel {
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.features-section {
  border-bottom: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.features-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  user-select: none;
}

.features-section-title {
  font-size: 12px;
  font-weight: 500;
  color: #e0e0e0;
  letter-spacing: 0.02em;
}

.features-section-content {
  padding-bottom: 16px;
}

.roccobomb-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #2d2d2d;
  border: 1px solid #404040;
  border-radius: 6px;
  cursor: grab;
  transition: all 0.2s ease;
  user-select: none;
}

.roccobomb-item:hover {
  background: #363636;
  border-color: #505050;
  transform: translateY(-1px);
}

.roccobomb-item:active {
  cursor: grabbing;
}

.roccobomb-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.roccobomb-icon-wrapper {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f1f1f;
  border-radius: 6px;
  border: 1px solid #363636;
}

.roccobomb-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.roccobomb-content {
  flex: 1;
  min-width: 0;
}

.roccobomb-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.roccobomb-description {
  font-size: 11px;
  color: #a0a0a0;
  line-height: 1.4;
}

/* Floating RoccoBomb during drag */
.roccobomb-floating {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.roccobomb-floating img {
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* Make it Pop Item */
.makeitpop-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #2d2d2d;
  border: 1px solid #404040;
  border-radius: 6px;
  cursor: grab;
  transition: all 0.2s ease;
  user-select: none;
  margin-top: 8px;
  margin-bottom: 8px;
}

.makeitpop-item:hover {
  background: #363636;
  border-color: #505050;
  transform: translateY(-1px);
}

.makeitpop-item:active {
  cursor: grabbing;
}

.makeitpop-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.makeitpop-icon-wrapper {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f1f1f;
  border-radius: 6px;
  border: 1px solid #363636;
}

.makeitpop-icon {
  font-size: 32px;
  line-height: 1;
}

.makeitpop-content {
  flex: 1;
  min-width: 0;
}

.makeitpop-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.makeitpop-description {
  font-size: 11px;
  color: #a0a0a0;
  line-height: 1.4;
}

/* Floating balloon during drag */
.makeitpop-floating {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.makeitpop-floating-emoji {
  font-size: 48px;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* Paint Palette Item */
.paint-palette-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #2d2d2d;
  border: 1px solid #404040;
  border-radius: 6px;
  cursor: grab;
  transition: all 0.2s ease;
  user-select: none;
  margin-top: 8px;
  margin-bottom: 8px;
}

.paint-palette-item:hover {
  background: #363636;
  border-color: #505050;
  transform: translateY(-1px);
}

.paint-palette-item:active {
  cursor: grabbing;
}

.paint-palette-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.paint-palette-item.active {
  border-color: #00d26a;
  background: #2d3d2d;
}

.paint-palette-icon-wrapper {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f1f1f;
  border-radius: 6px;
  border: 1px solid #363636;
}

.paint-palette-icon {
  font-size: 32px;
  line-height: 1;
}

.paint-palette-content {
  flex: 1;
  min-width: 0;
}

.paint-palette-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.paint-palette-description {
  font-size: 11px;
  color: #a0a0a0;
  line-height: 1.4;
}

/* Floating paint palette during drag */
.paint-palette-floating {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.paint-palette-floating-emoji {
  font-size: 48px;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* Paint Tools Container */
.paint-tools-container {
  border-top: 1px solid #404040;
  padding: 16px 0;
  margin-top: 16px;
}

.paint-tools-header {
  margin-bottom: 12px;
}

.paint-tools-title {
  font-size: 12px;
  font-weight: 500;
  color: #e0e0e0;
  letter-spacing: 0.02em;
}

.paint-tools-content {
  width: 100%;
}

.paint-tools-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2d2d2d;
  border: 1px solid #404040;
  padding: 10px 16px;
  border-radius: 6px;
}

.paint-tools-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #e0e0e0;
  font-size: 13px;
}

.paint-tools-swatches {
  display: flex;
  gap: 8px;
  align-items: center;
}

.paint-tools-swatch {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  background-clip: padding-box;
  padding: 0;
  transition: all 0.2s ease;
}

.paint-tools-swatch:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.paint-tools-swatch[aria-selected="true"] {
  outline: 2px solid #00d26a;
  outline-offset: 2px;
  border-color: rgba(255, 255, 255, 0.5);
}

/* Pixelation overlay */
.pixelation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: transparent;
  mix-blend-mode: normal;
}

.pixelation-overlay.active {
  pointer-events: auto;
}

/* ============================================
   Entrance Animation Initial States
   ============================================ */

/* Initial hidden states - prevent layout shifts */
.top-bar {
  opacity: 0;
  transform: translateY(-48px);
  will-change: opacity, transform;
}

.canvas-toolbar {
  opacity: 0;
  visibility: hidden;
  background: transparent;
  border-bottom: none;
  height: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  transform: translateY(-32px);
  overflow: hidden;
  will-change: opacity, transform, visibility, background, border-bottom, height, min-height, padding;
}

.left-sidebar {
  opacity: 0;
  transform: translateX(-40px);
  pointer-events: none;
  will-change: opacity, transform;
}

#site-canvas {
  opacity: 0;
  transform: translateY(100px);
  pointer-events: none;
  will-change: opacity, transform;
}

/* Fallback: Show embedded content immediately if animations don't complete */
#site-canvas.embedded-portfolio-content {
  /* Override initial hidden state for embedded content */
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

.right-sidebar {
  opacity: 0;
  transform: translateX(280px);
  pointer-events: none;
  will-change: opacity, transform;
}

/* Final visible states after animations complete */
body.animations-ready .top-bar,
body.animations-ready .canvas-toolbar,
body.animations-ready .left-sidebar,
body.animations-ready #site-canvas,
body.animations-ready .right-sidebar {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  will-change: auto;
}

body.animations-ready .canvas-toolbar {
  background: #2b2b2b;
  border-bottom: 1px solid #3d3d3d;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
}

/* ============================================
   Contact Modal Styles
   ============================================ */

.popup-section {
  z-index: 999999;
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  opacity: 0;
  background-image: linear-gradient(#3d3d36a3, #3d3d36a3);
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100svh;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-section.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.close-popup-target {
  z-index: 1;
  cursor: pointer;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.form-wrap {
  z-index: 2;
  grid-column-gap: 0.5rem;
  grid-row-gap: 0.5rem;
  flex-flow: column;
  display: flex;
  position: relative;
}

.popup-btn-wrap {
  margin-right: 0.5rem;
  margin-left: auto;
  margin-bottom: 0.5rem;
}

.btn-close {
  padding: 0.5rem 1rem;
  border: 1px solid #98978a;
  background-color: #dfdecb;
  color: #98978a;
  border-radius: 2rem;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  font-family: "PP Radio Grotesk", Verdana, sans-serif;
}

.btn-close:hover {
  color: #0c1227;
  background-color: #fffbf5;
}

.signup_content {
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  border: 1px solid #98978a;
  background-color: #dfdecb;
  border-radius: 1rem;
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 24rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  display: flex;
  position: relative;
  z-index: 2;
}

.text-wrap {
  width: 100%;
}

.card-heading {
  font-size: 2.5rem;
  line-height: 100%;
  margin: 0;
  font-family: "PP Editorial New", "Palatino Linotype", sans-serif;
  font-weight: 200;
  color: #3d3d36;
}

.form-content-wrap {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  filter: drop-shadow(0 1px 4px #00000014);
  flex-flow: column;
  display: flex;
  width: 100%;
}

.form-block {
  width: 100%;
  margin-bottom: 0;
}

.input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.input-label {
  margin-bottom: 0.25rem;
  font-size: 14px;
  font-weight: 400;
  color: #3d3d36;
  font-family: "PP Radio Grotesk", Verdana, sans-serif;
}

.form-input {
  border: 1px solid #98978a;
  background-color: #f5f4df;
  color: #0c1227;
  border-radius: 0.5rem;
  min-height: 44px;
  margin-bottom: 0;
  padding: 0.75rem 2.1875rem 0.75rem 0.75rem;
  font-size: 14px;
  font-family: "PP Radio Grotesk", Verdana, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: #0b173066;
}

.form-input.is-input {
  min-height: 8rem;
  resize: vertical;
}

.login-btn-wrap {
  grid-column-gap: 0.5rem;
  grid-row-gap: 0.5rem;
  flex-flow: column;
  justify-content: flex-start;
  align-items: stretch;
  display: flex;
  width: 100%;
}

.btn-main {
  padding: 0.5rem;
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  background-color: #3d3d36;
  color: #dfdecb;
  white-space: nowrap;
  border-radius: 2px;
  border: none;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  display: flex;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  font-family: "PP Radio Grotesk", Verdana, sans-serif;
  width: 100%;
}

.btn-main:hover {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  mix-blend-mode: luminosity;
}

.w-form-done,
.w-form-fail {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  display: none;
  font-size: 14px;
  font-family: "PP Radio Grotesk", Verdana, sans-serif;
}

.w-form-done {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.w-form-fail {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.w-form-done.active,
.w-form-fail.active {
  display: block;
}


