/* ========================================
   Modern Decal Designer - CSS
   ======================================== */

:root {
  /* Color Palette */
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-primary-light: #dbeafe;
  --color-secondary: #8b5cf6;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #06b6d4;

  /* Grays */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: var(--color-gray-50);
  --bg-tertiary: var(--color-gray-100);
  --bg-dark: var(--color-gray-900);

  /* Borders */
  --border-color: var(--color-gray-200);
  --border-radius: 0.5rem;
  --border-radius-sm: 0.25rem;
  --border-radius-lg: 0.75rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Typography */
  --font-sans: 'Barlow', 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* Transitions */
  --transition: all 0.2s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-gray-900);
  background: var(--bg-secondary);
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ========================================
   Layout
   ======================================== */

.designer-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ========================================
   Header
   ======================================== */

.designer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.back-button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius);
  color: var(--color-gray-700);
  text-decoration: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.back-button:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-900);
}

.designer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
}

.canvas-size-indicator {
  padding: var(--space-2) var(--space-5);
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
}

.header-button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--color-gray-700);
  font-weight: 600;
  transition: var(--transition);
}

.header-button:hover {
  background: var(--bg-secondary);
  border-color: var(--color-gray-300);
}

.header-button.primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.header-button.primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

/* ========================================
   Main Content Area
   ======================================== */

.designer-main {
  display: grid;
  grid-template-columns: 300px 1fr 320px;
  gap: 0;
  flex: 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

/* ========================================
   Sidebars
   ======================================== */

.designer-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Custom scrollbar for sidebars */
.designer-sidebar::-webkit-scrollbar {
  width: 10px;
}

.designer-sidebar::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.designer-sidebar::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: var(--border-radius-sm);
}

.designer-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.designer-sidebar.right {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

/* ========================================
   Panels
   ======================================== */

.panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  max-height: 400px;
}

/* Larger panels on right sidebar */
.designer-sidebar.right .panel {
  max-height: 450px;
}

.designer-sidebar.right .vinyl-panel {
  max-height: 350px;
}

.designer-sidebar.right .templates-panel {
  max-height: 300px;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.panel-header i {
  color: var(--color-primary);
  font-size: 1rem;
}

.panel-header h2 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-700);
}

.panel-content {
  padding: var(--space-4);
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  scroll-behavior: smooth;
}

/* Custom scrollbar styling */
.panel-content::-webkit-scrollbar {
  width: 8px;
}

.panel-content::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
}

.panel-content::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: var(--border-radius-sm);
}

.panel-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400);
}

/* ========================================
   AI Panel
   ======================================== */

.ai-panel {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.ai-panel .panel-header {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.ai-panel .panel-header i,
.ai-panel .panel-header h2 {
  color: white;
}

.ai-suggestions {
  background: rgba(255, 255, 255, 0.95);
  padding: var(--space-4);
  border-radius: var(--border-radius);
  min-height: 100px;
  margin-bottom: var(--space-4);
}

.ai-intro {
  color: var(--color-gray-600);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.ai-suggestion-item {
  padding: var(--space-3);
  background: var(--color-primary-light);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--space-3);
}

.ai-suggestion-item:last-child {
  margin-bottom: 0;
}

.ai-suggestion-item strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.ai-suggestion-item p {
  margin: 0;
  color: var(--color-gray-700);
  font-size: 0.875rem;
  line-height: 1.4;
}

.btn-ai {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: white;
  color: #667eea;
  border: 2px solid white;
  border-radius: var(--border-radius);
  font-weight: 700;
  transition: var(--transition);
}

.btn-ai:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   Catalog Panel
   ======================================== */

.search-box {
  position: relative;
  margin-bottom: var(--space-4);
}

.search-box i {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-400);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-8);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.category-filter {
  margin-bottom: var(--space-4);
}

.category-select,
.control-select {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--color-gray-900);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.category-select:focus,
.control-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--space-2);
  max-height: 400px;
  overflow-y: auto;
}

.catalog-item {
  aspect-ratio: 1;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: grab;
  transition: var(--transition);
  background: white;
  padding: var(--space-2);
}

.catalog-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.05);
}

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

.catalog-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.loading-state,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  color: var(--color-gray-400);
  text-align: center;
}

.loading-state i {
  font-size: 2rem;
  margin-bottom: var(--space-3);
}

/* ========================================
   Quick Actions Panel
   ======================================== */

.quick-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--color-gray-700);
  font-weight: 600;
  transition: var(--transition);
  margin-bottom: var(--space-3);
}

.quick-action-btn:last-child {
  margin-bottom: 0;
}

.quick-action-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.quick-action-btn i {
  font-size: 1.25rem;
}

/* ========================================
   Canvas Area
   ======================================== */

.designer-canvas-area {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  overflow: hidden;
}

.canvas-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.control-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.control-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-700);
  white-space: nowrap;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--color-gray-700);
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--color-gray-300);
  color: var(--color-gray-900);
}

.icon-btn.danger:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}

.icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.canvas-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background:
    repeating-conic-gradient(var(--color-gray-100) 0% 25%, transparent 0% 50%)
    50% / 20px 20px;
  overflow: auto;
}

#designCanvas {
  box-shadow: var(--shadow-xl);
  background: white;
  border-radius: var(--border-radius-sm);
}

.canvas-info-bar {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-3) var(--space-6);
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-gray-600);
}

.info-item i {
  color: var(--color-gray-400);
}

/* ========================================
   Properties Panel
   ======================================== */

.no-selection {
  color: var(--color-gray-400);
  font-style: italic;
  text-align: center;
  margin: var(--space-4) 0;
}

.property-group {
  margin-bottom: var(--space-4);
}

.property-group:last-child {
  margin-bottom: 0;
}

.property-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-600);
  margin-bottom: var(--space-2);
}

.property-control {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--bg-secondary);
}

.property-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
}

.property-slider {
  width: 100%;
}

.property-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.property-btn {
  padding: var(--space-2);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--bg-secondary);
  color: var(--color-gray-700);
  font-size: 0.875rem;
  transition: var(--transition);
}

.property-btn:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ========================================
   Layers Panel
   ======================================== */

.layers-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 300px;
  overflow-y: auto;
}

.layer-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.layer-item:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.layer-item.active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.layer-icon {
  font-size: 1.25rem;
  color: var(--color-gray-400);
}

.layer-info {
  flex: 1;
}

.layer-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-gray-900);
}

.layer-type {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

.layer-actions {
  display: flex;
  gap: var(--space-1);
}

.layer-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--color-gray-400);
  transition: var(--transition);
}

.layer-action-btn:hover {
  color: var(--color-primary);
}

.layer-action-btn.delete:hover {
  color: var(--color-danger);
}

/* ========================================
   Vinyl Color Swatches
   ======================================== */

.palette-selector {
  margin-bottom: var(--space-4);
}

.color-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
  gap: var(--space-2);
  max-height: 300px;
  overflow-y: auto;
}

.color-swatch {
  aspect-ratio: 1;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.color-swatch.active {
  border-color: var(--color-gray-900);
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color-gray-900);
  transform: scale(1.1);
  z-index: 2;
}

.color-swatch::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-2);
  background: var(--color-gray-900);
  color: white;
  font-size: 0.625rem;
  white-space: nowrap;
  border-radius: var(--border-radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-bottom: var(--space-1);
}

.color-swatch:hover::after {
  opacity: 1;
}

/* ========================================
   Templates
   ======================================== */

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.template-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.template-card:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.template-preview {
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2);
  background: white;
  border-radius: var(--border-radius-sm);
}

.template-preview.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.template-box {
  background: var(--color-gray-300);
  border-radius: 2px;
}

.template-box.centered {
  width: 32px;
  height: 32px;
}

.template-box.image {
  width: 100%;
  height: 24px;
}

.template-box.text {
  width: 100%;
  height: 8px;
}

.template-box.small {
  width: 100%;
  height: 12px;
}

.template-box.tiny {
  width: 100%;
  height: 100%;
}

.template-card span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gray-700);
  text-align: center;
}

/* ========================================
   Modal
   ======================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
}

.modal-body {
  flex: 1;
  padding: var(--space-6);
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-6);
  border-top: 1px solid var(--border-color);
}

/* ========================================
   Form Elements
   ======================================== */

.form-group {
  margin-bottom: var(--space-4);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.button-group {
  display: flex;
  gap: var(--space-2);
}

.toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--color-gray-700);
  transition: var(--transition);
}

.toggle-btn:hover {
  background: var(--color-gray-200);
}

.toggle-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.btn {
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.btn.secondary {
  background: var(--bg-secondary);
  color: var(--color-gray-700);
}

.btn.secondary:hover {
  background: var(--color-gray-200);
}

.btn.primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.btn.primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

/* ========================================
   Loading Overlay
   ======================================== */

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.loading-overlay[hidden] {
  display: none;
}

.loading-spinner {
  text-align: center;
}

.loading-spinner i {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.loading-spinner p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-700);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1280px) {
  .designer-main {
    grid-template-columns: 280px 1fr 280px;
  }
}

@media (max-width: 1024px) {
  .designer-main {
    grid-template-columns: 1fr;
  }

  .designer-sidebar {
    display: none;
  }

  /* Show sidebars as overlays on mobile */
  .designer-sidebar.active {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 300px;
    z-index: 500;
    box-shadow: var(--shadow-xl);
  }
}

@media (max-width: 768px) {
  .designer-header {
    padding: var(--space-3) var(--space-4);
  }

  .header-button span,
  .back-button span {
    display: none;
  }

  .designer-title {
    font-size: 1rem;
  }

  .canvas-size-indicator {
    font-size: 0.75rem;
    padding: var(--space-1) var(--space-3);
  }
}
