/* ============================================================
   Mockup Generator Tool - Standalone Styles
   Fully isolated from main website
   All styles self-contained - no external dependencies
   ============================================================ */

:root {
  /* Brand Colors */
  --primary: #00e556;
  --primary-dim: rgba(0, 229, 86, 0.1);
  --primary-glow: #00e556;
  
  /* Light Theme (Default) */
  --bg-main: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-surface: #ffffff;
  --surface-light: #ffffff;
  --text-main: #0b0b0b;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --border-color: #e2e8f0;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(0, 229, 86, 0.3);
}

html.dark {
  --bg-main: #030303;
  --bg-secondary: #0a0a0a;
  --bg-surface: #0f0f0f;
  --surface-light: #0f0f0f;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --text-light: #6b7280;
  --border-color: #262626;
  --border-light: #262626;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 229, 86, 0.4);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Full-width container for tool section */
/* Hero section stays in container */
.tool-main > .container {
  max-width: 1200px;
  padding: 0 24px;
}

/* Tool section breaks out for full width */
.tool-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Header */
.tool-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.88);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.dark .tool-header {
  background: rgba(3, 3, 3, 0.8);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-badge {
  background: var(--primary);
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-light);
  padding: 4px;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--bg-secondary);
}

.theme-toggle {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
}

.theme-icon-light,
.theme-icon-dark {
  font-size: 20px;
  color: var(--text-main);
}

html.dark .theme-icon-light {
  display: none;
}

html:not(.dark) .theme-icon-dark {
  display: none;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 48px 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  font-family: 'Space Grotesk', sans-serif;
}

.text-glow {
  background: linear-gradient(135deg, var(--primary) 0%, #00c44a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Tool Section - Full Width */
.tool-section {
  padding: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: hidden;
}

.tool-card {
  background: var(--bg-surface);
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  width: 100%;
  margin: 0;
}

.privacy-notice {
  background: var(--primary-dim);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--text-main);
}

/* Tool Top Bar */
.tool-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
  gap: 16px;
}

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

.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  color: var(--text-main);
  font-family: inherit;
}

.toolbar-btn:hover:not(:disabled) {
  background: var(--bg-surface);
  border-color: var(--primary);
}

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

.toolbar-btn .material-icons-outlined {
  font-size: 20px;
}

/* Tool Wrapper - 3 Column Layout */
.tool-wrapper-full {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 0;
  height: calc(100vh - 220px);
  min-height: 700px;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

/* Sidebars */
.sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  overflow-x: hidden;
}

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

.controls-sidebar {
  padding: 0;
}

.control-panel.panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.panel-tabs {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.panel-tabs .tabs {
  display: flex;
  gap: 8px;
}

.panel-tabs .button {
  position: relative;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.panel-tabs .button.true-active {
  color: var(--text-main);
}

.panel-tabs .button .active-indicator {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.panel-tabs .button.true-active .active-indicator {
  opacity: 1;
}

.panel-selector {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.dropdown.mockup-picker-desktop-dropdown {
  position: relative;
}

.dropdown .button-wrapper {
  width: 100%;
}

.panel-selector-btn-desktop {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.panel-selector-btn-desktop:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

.panel-selector-btn-desktop .mockup-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.panel-selector-btn-desktop .details {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.panel-selector-btn-desktop .details p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.panel-selector-btn-desktop .details span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.panel-selector-btn-desktop > div:last-child {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.panel-selector-btn-desktop > div:last-child svg {
  width: 16px;
  height: 16px;
}

.dropdown {
  position: relative;
}

.dropdown {
  position: relative;
}

.drop-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 440px;
  max-height: 600px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  overflow: hidden;
  display: none;
  flex-direction: column;
  filter: blur(0px);
  opacity: 1;
  transform: none;
}

.drop-menu[style*="display: flex"] {
  display: flex !important;
}

.picker-filters-wrapper {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}

.picker-filters {
  display: flex;
  gap: 8px;
}

.picker-filters > div {
  flex: 1;
}

.picker-filters > div:first-child {
  flex: 1;
}

.picker-filters > div:not(:first-child) {
  flex: 0 0 56px;
}

.picker-filter-btn {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.picker-filter-btn.active,
.picker-filter-btn.primary-button {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.picker-filter-btn.icon-only {
  padding: 8px;
}

.picker-filter-btn svg {
  width: 20px;
  height: 20px;
}

.mockups-list {
  padding: 8px;
  max-height: 500px;
  overflow-y: auto;
}

.mock-picker-section {
  margin-bottom: 16px;
}

.mock-picker-section:last-child {
  margin-bottom: 0;
}

.mock-picker-section .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.mock-picker-section .head .h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.h-stack {
  display: flex;
  flex-direction: column;
}

.h-stack .content {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  padding: 8px;
  gap: 10px;
}

.mock-item {
  flex: 0 0 auto;
  width: 200px;
  padding: 8px;
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mock-item:hover {
  background: var(--bg-surface);
  border-color: var(--border-color);
}

.mock-item.active {
  border-color: var(--primary);
  background: var(--primary-dim);
}

.mock-item .preview {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.mock-item .preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-item .details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-item .copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-item .body {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.mock-item .footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mock-item .tag {
  font-size: 0.625rem;
  padding: 2px 6px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.mock-item .variants {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 8px;
}

.mock-item .variants > div {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.mock-item .variants img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-item .variants .caption2 {
  font-size: 0.625rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.panel-scroll-view {
  height: 100%;
  overflow-y: auto;
  flex: 1;
}

.panel-fragment {
  display: flex;
  flex-direction: column;
}

.panel-fragment-scroll-view {
  padding: 16px;
}

.panel-controls-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.divide-line {
  height: 1px;
  background: var(--border-color);
  margin: 0 16px;
}

/* Media Upload Control */
.mock-assets-control {
  width: 100%;
}

.device-item {
  position: relative;
  width: 100%;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.device-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.device-item .drop-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.device-item:hover .drop-indicator {
  opacity: 1;
}

.device-item .drop-indicator svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.display-preview {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.safe-area {
  width: 100%;
  height: 100%;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.device-screen .empty-state {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.device-screen .empty-state svg {
  width: 48px;
  height: 48px;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Mockup Details */
.mockup-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.mockup-details .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-details .row span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mockup-details .row p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Controls Panel (Legacy - for compatibility) */
.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Panel Control Structure (shots.so style) */
.panel-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

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

.panel-control .label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.3px;
}

.panel-control .label.gray-text {
  color: var(--text-muted);
}

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

/* Legacy support */
.control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-group-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Panel Selector (Device Picker) */
.panel-selector {
  width: 100%;
}

.dropdown {
  position: relative;
}

.button-wrapper {
  width: 100%;
}

.panel-selector-btn-desktop {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.panel-selector-btn-desktop:hover {
  border-color: var(--primary);
  background: var(--bg-secondary);
}

.panel-selector-btn-desktop .mockup-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.panel-selector-btn-desktop .details {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.panel-selector-btn-desktop .details p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.panel-selector-btn-desktop .details span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.panel-selector-btn-desktop > div:last-child {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.panel-selector-btn-desktop > div:last-child svg {
  width: 16px;
  height: 16px;
}

/* Panel Selector (Device Picker) */
.panel-selector {
  position: relative;
  margin-bottom: 20px;
}

.mockup-picker-desktop-dropdown {
  position: relative;
}

.button-wrapper {
  width: 100%;
}

.panel-selector-btn-desktop {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.panel-selector-btn-desktop:hover {
  border-color: var(--primary);
  background: var(--bg-secondary);
}

.panel-selector-btn-desktop .mockup-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 4px;
}

.panel-selector-btn-desktop .details {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.panel-selector-btn-desktop .details p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.panel-selector-btn-desktop .details span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.panel-selector-btn-desktop > div:last-child {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.panel-selector-btn-desktop > div:last-child svg {
  width: 16px;
  height: 16px;
}

/* Device Picker Dropdown (drop-menu) */
.drop-menu.device-picker-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  bottom: unset;
  right: unset;
  left: unset;
  width: 440px;
  z-index: 1000;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 500px;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.drop-menu.device-picker-dropdown.open {
  display: flex;
}

.device-picker-trigger:hover {
  border-color: var(--primary);
  background: var(--bg-secondary);
}

.device-picker-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.device-picker-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-secondary);
  border-radius: 6px;
}

.device-picker-icon .material-icons-outlined {
  font-size: 20px;
  color: var(--text-main);
}

.device-picker-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
}

.device-picker-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.device-picker-dims {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.device-picker-trigger .material-icons-outlined:last-child {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.device-picker-wrapper.open .device-picker-trigger .material-icons-outlined:last-child {
  transform: rotate(180deg);
}

.device-picker-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 440px;
  max-width: calc(100vw - 48px);
  max-height: 600px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.picker-filters-wrapper {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}

.picker-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.picker-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  color: var(--text-main);
  min-width: 56px;
}

.picker-filter-btn.icon-only {
  min-width: 40px;
  padding: 8px;
}

.picker-filter-btn:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
}

.picker-filter-btn.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.picker-filter-btn .material-icons-outlined {
  font-size: 20px;
}

.mockups-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px;
}

.mock-picker-section {
  margin-bottom: 24px;
}

.mock-picker-section:last-child {
  margin-bottom: 0;
}

.mock-picker-section .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.mock-picker-section .head .h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.mock-picker-section .head button {
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mock-picker-section .head button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.h-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h-stack .content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mock-item:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
}

.mock-item.active {
  background: var(--primary-dim);
  border-color: var(--primary);
}

.mock-item .preview {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-item .preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-item .details {
  flex: 1;
  min-width: 0;
}

.mock-item .copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.mock-item .copy .body {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.mock-item .copy .footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mock-item .copy .tag {
  display: inline-block;
  padding: 2px 6px;
  background: var(--primary);
  color: #000;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.mock-item .variants {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mock-item .variants > div {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.mock-item .variants img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-item .variants .caption2 {
  font-size: 0.625rem;
  color: var(--text-muted);
  padding: 0 4px;
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-secondary);
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-dim);
}

.upload-area .material-icons-outlined {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.upload-area p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 4px 0;
}

.upload-hint {
  font-size: 0.75rem !important;
  color: var(--text-light) !important;
}

kbd {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-main);
}

.media-preview {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.media-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* Style Selector - Visual Grid */
.panel-control-grid {
  display: grid;
  gap: 8px;
}

.panel-control-grid.col-3 {
  grid-template-columns: repeat(3, 1fr);
}

.panel-control-grid.col-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.panel-button {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  padding: 4px;
  background: transparent;
  border: 2px solid transparent;
}

.panel-button:hover {
  background: var(--bg-secondary);
}

.panel-button.true-active {
  border-color: var(--primary);
  background: var(--primary-dim);
}

.panel-button .preview {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.panel-button.true-active .preview {
  border-color: var(--primary);
}

.panel-button .image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-button .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.panel-button .preview .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
}

.panel-button .preview .icon svg {
  width: 24px;
  height: 24px;
}

.panel-button .style-preview-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  position: relative;
}

/* Style Preview Placeholders */
.style-preview-placeholder.default {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
}

.style-preview-placeholder.glass-light {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.style-preview-placeholder.glass-dark {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.style-preview-placeholder.liquid-glass {
  background: linear-gradient(135deg, rgba(0, 229, 86, 0.1) 0%, rgba(0, 229, 86, 0.05) 100%);
  border: 1px solid rgba(0, 229, 86, 0.3);
  backdrop-filter: blur(15px);
  box-shadow: inset 0 0 20px rgba(0, 229, 86, 0.1);
}

.style-preview-placeholder.inset-light {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.style-preview-placeholder.inset-dark {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.style-preview-placeholder.outline {
  background: transparent;
  border: 2px solid var(--text-main);
}

.style-preview-placeholder.border {
  background: var(--bg-surface);
  border: 4px solid var(--text-main);
}

html.dark .style-preview-placeholder.outline {
  border-color: var(--text-main);
}

html.dark .style-preview-placeholder.border {
  border-color: var(--text-main);
}

.panel-button .label-wrapper {
  text-align: center;
  padding: 0 4px;
}

.panel-button .footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-button.true-active .footnote {
  color: var(--text-main);
  font-weight: 500;
}

/* Border Controls - Switch Component */
.panel-control-grid.col-1 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.switch {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.switch-button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  color: var(--text-muted);
}

.switch-button:hover {
  background: var(--bg-surface);
  color: var(--text-main);
}

.switch-button.is-active {
  background: var(--primary);
  color: #000;
}

.switch-button .visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.switch-button .icon-wrapper {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.switch-button .icon-wrapper svg {
  width: 100%;
  height: 100%;
}

.switch-button p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.switch-button-active-indicator {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #000;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.switch-button.is-active .switch-button-active-indicator {
  opacity: 1;
}

/* Adjust Light Button */
.adjust-light-btn {
  margin-top: 12px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: inherit;
}

.adjust-light-btn:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--text-main);
}

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

/* Shadow Preview Placeholders (Legacy - kept for compatibility) */
.shadow-preview-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shadow-preview-placeholder::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.shadow-preview-placeholder.shadow-none::after {
  box-shadow: none;
}

.shadow-preview-placeholder.shadow-spread::after {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.shadow-preview-placeholder.shadow-hug::after {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.shadow-preview-placeholder.shadow-adaptive::after {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Layout Sidebar */
.layout-sidebar {
  padding: 0;
}

.layout-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.layouts-panel-controls-top {
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 10;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.transform-controls-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.position-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zoom-panel-control {
  margin-top: 16px;
}

.position-pad-safearea {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.drag-pad-wrapper {
  position: relative;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.pad-preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.drag-pad {
  position: relative;
  width: 100%;
  height: 100%;
}

.drag-handle {
  position: absolute;
  background: var(--primary);
  border: 2px solid #000;
  border-radius: 4px;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.drag-handle:active {
  cursor: grabbing;
}

.viewfinder-div {
  border: 2px solid var(--primary-glow);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 229, 86, 0.5);
  pointer-events: none;
}

.zoom-preview-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
}

.v-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.v-stack .scroll {
  flex: 1;
  overflow-y: auto;
}

.v-stack-content {
  padding: 16px;
}

/* Layout Presets */
.layout-presets-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.layout-presets-container::-webkit-scrollbar {
  height: 6px;
}

.layout-presets-container::-webkit-scrollbar-track {
  background: transparent;
}

.layout-presets-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.layout-presets-container::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.layout-presets-scroll {
  display: flex;
  gap: 8px;
  padding: 4px 0;
}

.layout-item {
  flex-shrink: 0;
  width: 208px;
  height: 156px;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  transition: all 0.2s ease;
  overflow: hidden;
  background: var(--bg-secondary);
}

.layout-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.layout-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-dim);
}

.layout-frame {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.frame-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.layout-preview-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
}

/* Slider Control - Shots.so Style */
.slider-wrapper {
  width: 100%;
}

.slider-component {
  position: relative;
  width: 100%;
  padding: 8px 0 24px;
}

.SliderTrack {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.SliderRange {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.1s ease;
}

.SliderThumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  cursor: grab;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.SliderThumb:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.SliderThumb:active {
  cursor: grabbing;
  transform: translateY(-50%) scale(1.15);
}

.slider-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.slider-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  cursor: pointer;
  border: none;
  background: transparent;
}

.slider-component .labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.slider-component .labels span:last-child {
  font-weight: 500;
  color: var(--text-main);
}

/* Background Tabs */
.background-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: 8px;
}

.bg-tab {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.bg-tab:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}

.bg-tab.active {
  background: var(--primary);
  color: #000;
}

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

.bg-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bg-control label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.bg-control input[type="color"] {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
}

.bg-control select {
  padding: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.875rem;
}

/* Export Controls */
.export-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-select {
  padding: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.875rem;
}

.btn-primary {
  padding: 12px 24px;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #00c44a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  padding: 8px 16px;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* Canvas Area */
.canvas-area {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 40px;
  overflow: auto;
  min-width: 0;
  flex: 1;
}

.canvas-safe-area {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.preview-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  background: var(--bg-surface);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.canvas-container:hover,
.canvas-container.dragover {
  background: var(--primary-dim);
}

.preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 32px;
}

.preview-placeholder.hidden {
  display: none;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.empty-state .icons {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.empty-state .icon,
.empty-state .image-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.empty-state .icon .material-icons-outlined,
.empty-state .image-icon .material-icons-outlined {
  font-size: 24px;
}

.empty-state .title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
}

.empty-state .subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

#previewCanvas {
  max-width: 100%;
  max-height: 100%;
  display: none;
}

.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 32px;
}

.preview-placeholder.hidden {
  display: none;
}

.preview-placeholder .material-icons-outlined {
  font-size: 64px;
  color: var(--text-light);
}

.preview-placeholder p {
  font-size: 1rem;
  color: var(--text-muted);
}

.placeholder-hint {
  font-size: 0.875rem !important;
  color: var(--text-light) !important;
}

/* Info Section */
.info-section {
  padding: 48px 0;
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.info-card h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-family: 'Space Grotesk', sans-serif;
}

.info-card h3 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif;
}

.info-card p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.info-card ul,
.info-card ol {
  margin-left: 24px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.info-card li {
  margin-bottom: 8px;
}

.info-card strong {
  color: var(--text-main);
}

/* Footer */
.tool-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  margin-top: auto;
}

.tool-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.tool-footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  gap: 16px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--primary);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast.success {
  border-color: var(--primary);
  background: var(--primary-dim);
}

.toast.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Responsive */
@media (max-width: 1400px) {
  .tool-wrapper-full {
    grid-template-columns: 280px 1fr 280px;
  }
}

@media (max-width: 1024px) {
  .tool-section {
    width: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
  }
  
  .tool-wrapper-full {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }
  
  .sidebar {
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
    max-height: 400px;
  }
  
  .sidebar:last-child {
    border-bottom: none;
  }
  
  .device-picker-dropdown {
    width: 100%;
    left: 0;
    right: 0;
  }
  
  .tool-top-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .toolbar-left,
  .toolbar-center,
  .toolbar-right {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .tool-card {
    padding: 24px;
  }
  
  .panel-control-grid.col-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .panel-control-grid.col-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hide/Show Mockup Button */
.hide-show-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: inherit;
  width: 100%;
}

.hide-show-btn:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--text-main);
}

.bg-panel-dim {
  background: var(--bg-secondary);
}
