/* Debug Menu Styles */
.debug-menu {
  position: fixed;
  width: 320px;
  max-height: 80vh;
  background: var(--surface-card);
  border: 2px solid var(--blue);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Work Sans', Arial, Helvetica, sans-serif;
}

.debug-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--blue);
  color: #ffffff;
  cursor: move;
  user-select: none;
}

.debug-menu-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.debug-menu-close {
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.debug-menu-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.debug-menu-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.debug-menu-section {
  padding: 16px;
  border-bottom: 1px solid var(--separator-gray);
}

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

.debug-menu-section-title {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.debug-menu-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.debug-menu-control:last-child {
  margin-bottom: 0;
}

.debug-menu-control label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.debug-menu-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.debug-menu-input-group input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-muted);
  outline: none;
  -webkit-appearance: none;
}

.debug-menu-input-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
}

.debug-menu-input-group input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  border: none;
}

.debug-menu-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 50px;
  text-align: right;
  font-family: 'Roboto Mono', monospace;
}

.debug-menu-color-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.debug-menu-control input[type="color"] {
  width: 50px;
  height: 36px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
  background: transparent;
}

.debug-menu-control input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.debug-menu-control input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

.debug-menu-color-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Roboto Mono', monospace;
  min-width: 70px;
  user-select: all;
  cursor: text;
}

.debug-menu-copy-button {
  width: 100%;
  padding: 10px 16px;
  margin-top: 8px;
  background: var(--blue);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  font-family: 'Work Sans', Arial, Helvetica, sans-serif;
}

.debug-menu-copy-button:hover {
  background: var(--blue-dark, #0056b3);
  transform: translateY(-1px);
}

.debug-menu-copy-button:active {
  transform: translateY(0);
}

/* Apply debug gradient when active - override inline styles */
/* Only apply when CSS variables are set (debug menu is active) */
.create-banners-ios-gradient {
  background: var(--debug-gradient, none) !important;
  height: var(--debug-gradient-height, auto) !important;
}

/* Ensure debug menu CSS takes precedence - use more specific selector */
#screen-create-banners .create-banners-ios-gradient {
  background: var(--debug-gradient, none) !important;
  height: var(--debug-gradient-height, auto) !important;
}

body.night-mode .debug-menu {
  background: var(--surface-card);
  border-color: var(--blue);
}

body.night-mode .debug-menu-header {
  background: var(--blue);
}

body.night-mode .debug-menu-section {
  border-color: var(--surface-border);
}

