/* ==========================================================================
   QR & NFC Acrylic Studio Pro - Hoja de Estilos Principal
   ========================================================================== */

:root {
  --bg-app: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --accent: #0EA5E9;
  --success: #10B981;
  --danger: #EF4444;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
}

/* ==========================================================================
   Barra Superior y Navegación de Pestañas
   ========================================================================== */

.topbar {
  background: #0F172A;
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-badge {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-svg {
  width: 100%;
  height: 100%;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.brand-accent {
  color: #38BDF8;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: #94A3B8;
}

.main-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.07);
  padding: 5px;
  border-radius: 12px;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #CBD5E1;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
  background: linear-gradient(135deg, #2563EB, #0284C7);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.tab-step {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #E2E8F0;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

/* ==========================================================================
   Layout Principal y Pestañas
   ========================================================================== */

.main-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.22s ease-out;
}

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

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 24px;
  align-items: start;
}

.acrylic-workspace-grid {
  grid-template-columns: 1fr 480px;
}

@media (max-width: 1120px) {
  .workspace-grid,
  .acrylic-workspace-grid {
    grid-template-columns: 1fr;
  }
}

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

.panel-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.step-badge {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  margin-top: 2px;
}

.panel-title {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text-main);
}

.panel-desc {
  font-size: 0.84rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ==========================================================================
   Grid de Redes Sociales
   ========================================================================== */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 10px;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.16s ease;
  text-align: left;
}

.platform-btn:hover {
  border-color: var(--border-strong);
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.platform-btn.active {
  background: #EFF6FF;
  border-color: var(--primary);
  color: #1E3A8A;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.platform-icon-canvas {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* ==========================================================================
   Formularios y Controles Inteligentes
   ========================================================================== */

.form-group {
  margin-bottom: 14px;
}

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

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 13px;
  font-size: 0.92rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input-lg {
  padding: 12px 38px 12px 14px;
  font-size: 1rem;
  font-weight: 500;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.smart-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.btn-icon-clear {
  position: absolute;
  right: 10px;
  width: 26px;
  height: 26px;
  border: none;
  background: #F1F5F9;
  color: #64748B;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-clear:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.smart-extra-box {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
}

.hidden {
  display: none !important;
}

.generated-url-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0F172A;
  color: #E2E8F0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  flex-wrap: wrap;
}

.generated-url-info {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.url-tag {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 600;
  white-space: nowrap;
}

.generated-url-info code {
  color: #38BDF8;
  font-size: 0.84rem;
  font-weight: 600;
  word-break: break-all;
}

.btn-test-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.14);
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-test-link:hover {
  background: rgba(255, 255, 255, 0.24);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 680px) {
  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}

.mt-12 {
  margin-top: 12px;
}

.color-mode-pills,
.variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-btn {
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.pill-btn.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.color-picker-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.color-input {
  width: 54px;
  height: 38px;
  padding: 2px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #FFFFFF;
  cursor: pointer;
}

.color-input-full {
  width: 100%;
  height: 38px;
  padding: 2px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #FFFFFF;
  cursor: pointer;
}

.checkboxes-inline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding-top: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* ==========================================================================
   Columna de Vista Previa y Botones de Descarga
   ========================================================================== */

.sticky-preview-card {
  position: sticky;
  top: 84px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.preview-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.preview-badge {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.preview-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.scannable-badge,
.dpi-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
  white-space: nowrap;
}

.dpi-badge {
  background: #E0F2FE;
  color: #0369A1;
  border-color: #BAE6FD;
}

.single-qr-canvas-stage {
  background: radial-gradient(circle at center, #F8FAFC 0%, #E2E8F0 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#singleQrCanvas {
  width: 100%;
  max-width: 310px;
  height: auto;
  border-radius: 14px;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.12));
}

.scan-tip {
  font-size: 0.79rem;
  color: var(--text-muted);
  background: #F8FAFC;
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  border-radius: 6px;
  margin: 12px 0;
}

.download-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.action-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-primary,
.btn-pdf-main,
.btn-secondary,
.btn-accent-outline {
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.btn-lg {
  padding: 13px 18px;
  font-size: 0.94rem;
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8, #1E40AF);
  transform: translateY(-1px);
}

.btn-pdf-main {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.btn-pdf-main:hover {
  background: #020617;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #F1F5F9;
  color: #0F172A;
  border: 1.5px solid #CBD5E1;
}

.btn-secondary:hover {
  background: #E2E8F0;
}

.btn-accent-outline {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1.5px solid #93C5FD;
}

.btn-accent-outline:hover {
  background: #DBEAFE;
}

/* Enviar al Acrílico */
.send-to-acrylic-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.send-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

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

.btn-slot-send {
  padding: 7px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  color: #0F172A;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-slot-send:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

/* Lista de QRs Guardados */
.saved-qrs-mini {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.saved-qrs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.saved-qrs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 150px;
  overflow-y: auto;
}

.saved-qr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
}

.saved-qr-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.saved-qr-meta strong {
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-qr-meta span {
  font-size: 0.71rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-qr-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.btn-mini {
  padding: 4px 7px;
  font-size: 0.71rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  cursor: pointer;
}

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

/* ==========================================================================
   Pestaña 2: Diseñador de Acrílicos 10cm x 15cm
   ========================================================================== */

.logo-uploader-area {
  border: 2px dashed #94A3B8;
  background: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s;
}

.logo-uploader-area.dragover {
  border-color: var(--primary);
  background: #EFF6FF;
}

.hidden-file-input {
  display: none;
}

.logo-uploader-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.upload-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.upload-main-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.upload-sub-text {
  font-size: 0.78rem;
  color: var(--text-light);
}

.btn-upload-trigger {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-upload-trigger:hover {
  background: #1E293B;
}

.logo-uploader-loaded {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-thumb-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}

.logo-loaded-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.logo-loaded-actions {
  display: flex;
  gap: 8px;
}

.btn-xs-secondary,
.btn-xs-danger {
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
}

.btn-xs-danger {
  color: var(--danger);
  border-color: #FECACA;
  background: #FEF2F2;
}

.form-range {
  width: 100%;
  accent-color: var(--primary);
  margin-top: 8px;
}

/* Selector 1 a 4 QRs */
.qr-count-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.count-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--bg-subtle);
  cursor: pointer;
  transition: all 0.16s ease;
}

.count-card-btn:hover {
  border-color: var(--border-strong);
  background: #FFFFFF;
}

.count-card-btn.active {
  border-color: var(--primary);
  background: #EFF6FF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.count-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
}

.count-card-btn.active .count-num {
  color: var(--primary);
}

.count-desc {
  font-size: 0.74rem;
  color: var(--text-light);
  font-weight: 600;
}

.layout-variant-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #F8FAFC;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.variant-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Tarjetas de edición de cada uno de los 1 a 4 QRs */
.acrylic-slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 720px) {
  .acrylic-slots-grid,
  .qr-count-selector {
    grid-template-columns: 1fr;
  }
}

.slot-editor-card {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.slot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0F172A;
}

.slot-nfc-tag {
  font-size: 0.69rem;
  font-weight: 700;
  background: #0F172A;
  color: #38BDF8;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Plantillas de Fondo para el Acrílico */
.theme-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 10px;
}

.theme-preset-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
}

.theme-preset-btn.active {
  border-color: var(--primary);
  background: #EFF6FF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.theme-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.swatch-luxury-dark { background: linear-gradient(135deg, #090D16, #1E293B 70%, #D4AF37); }
.swatch-clean-white { background: linear-gradient(135deg, #FFFFFF, #F1F5F9); }
.swatch-cyber-nfc   { background: linear-gradient(135deg, #0F172A, #0369A1 65%, #38BDF8); }
.swatch-pearl-glass { background: linear-gradient(135deg, #F8FAFC, #CBD5E1); }
.swatch-rose-boutique { background: linear-gradient(135deg, #FFF1F2, #FECDD3 60%, #FB7185); }
.swatch-gourmet-warm { background: linear-gradient(135deg, #1C1917, #7C2D12 65%, #F97316); }
.swatch-custom-grad { background: conic-gradient(#3B82F6, #EC4899, #F59E0B, #10B981, #3B82F6); }
.swatch-transparent-uv {
  background-image: linear-gradient(45deg, #CBD5E1 25%, transparent 25%),
    linear-gradient(-45deg, #CBD5E1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #CBD5E1 75%),
    linear-gradient(-45deg, transparent 75%, #CBD5E1 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
}

/* ==========================================================================
   Escenario con Regla de 10 cm x 15 cm para Vista Previa del Acrílico
   ========================================================================== */

.ruler-stage-wrapper {
  background: #1E293B;
  padding: 14px 18px 18px 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ruler-top {
  width: 100%;
  max-width: 310px;
  margin-left: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94A3B8;
  padding-bottom: 5px;
  border-bottom: 1px solid #475569;
  margin-bottom: 6px;
}

.ruler-middle-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.ruler-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94A3B8;
  padding-right: 5px;
  border-right: 1px solid #475569;
  text-align: right;
}

.acrylic-canvas-frame {
  width: 100%;
  max-width: 310px;
  aspect-ratio: 10 / 15;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  background-image: linear-gradient(45deg, #334155 25%, transparent 25%),
    linear-gradient(-45deg, #334155 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #334155 75%),
    linear-gradient(-45deg, transparent 75%, #334155 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  display: flex;
}

#acrylicCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.dimensions-spec-bar {
  display: flex;
  justify-content: space-around;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid #38BDF8;
  z-index: 999;
  animation: fadeIn 0.2s ease-out;
}
