/* ==========================================================================
   RIFAS STUDIO — DESIGN MINIMALISTA & MODERNO
   Inspirado em ferramentas profissionais de design (Design.ID, Figma, Linear)
   Estética limpa, alto contraste, paleta neutra e organização em 3 colunas
   ========================================================================== */

:root {
  /* Paleta Base Minimalista (Clean Light Studio) */
  --bg-app: #ebecee;                 /* Fundo cinza suave e elegante da área de trabalho */
  --bg-surface: #ffffff;             /* Fundo branco dos painéis e cards */
  --bg-surface-subtle: #f8f9fa;      /* Superfície sutil para inputs e cabeçalhos */
  --bg-stage: #e5e6e9;               /* Palco de pré-visualização central */
  --bg-chip: #f1f2f4;                /* Pílulas e tags */
  --bg-chip-hover: #e5e7eb;

  /* Cores de Alto Contraste */
  --text-main: #111827;              /* Preto profundo para textos principais e títulos */
  --text-muted: #6b7280;             /* Cinza médio para subtítulos e descrições */
  --text-dim: #9ca3af;               /* Cinza suave para placeholders e notas */
  --text-inverse: #ffffff;

  /* Bordas e Seleção */
  --border-subtle: #e5e7eb;          /* Divisórias suaves */
  --border-medium: #d1d5db;          /* Contorno de inputs e cards desmarcados */
  --border-active: #111827;          /* Borda preta de seleção (idêntico à referência) */
  --border-focus: #111827;

  /* Destaques e Ações Principais */
  --btn-primary-bg: #000000;         /* Botão preto sólido marcante */
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #1f2937;

  /* Semântica Suave */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --accent-blue: #2563eb;

  /* Tipografia */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Raios e Sombras */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-stage: 0 20px 45px -10px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.15);
  --shadow-popup: 0 12px 30px rgba(0, 0, 0, 0.12);

  --transition-fast: 120ms ease;
  --transition-normal: 200ms ease;
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Scrollbar minimalista */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ==========================================================================
   CABEÇALHO MINIMALISTA (Estilo Design.ID)
   ========================================================================== */

.app-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Logo Central / Minimalista */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon-simple {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #111827;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.5px;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Navegação Global de Módulos (Tabs em Pílulas) */
.global-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-app);
  padding: 0.25rem 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.global-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.global-nav-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
}

.global-nav-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
}

.global-nav-badge {
  font-size: 0.65rem;
  background: #111827;
  color: #ffffff;
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Badges e Status do Topo */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-spec {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success);
}

.badge-corel {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ==========================================================================
   LAYOUT PRINCIPAL — 3 COLUNAS STUDIO (Igual à imagem)
   Coluna 1 (Esq): Modelos / Formatos / Visibilidade
   Coluna 2 (Centro): Palco amplo com prévia do bilhete
   Coluna 3 (Dir): Painel de campos e botão preto de exportação
   ========================================================================== */

.studio-container {
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 280px 1fr 390px;
  gap: 1.25rem;
  align-items: start;
  flex: 1;
}

/* ==========================================================================
   COLUNA DA ESQUERDA — SELETOR DE FORMATOS E PRESETS (Grid 2 colunas)
   ========================================================================== */

.studio-sidebar-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 75px;
}

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-card);
}

.sidebar-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Grid de Formatos (Estilo Cartões Avatar da Referência) */
.formats-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.format-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.65rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 96px;
  position: relative;
  user-select: none;
}

.format-pill:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-subtle);
}

/* Estado Ativo: Borda preta elegante de 2px igual à imagem! */
.format-pill.active {
  border: 2px solid var(--border-active);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.format-thumb-icon {
  width: 44px;
  height: 32px;
  border: 1.5px dashed #9ca3af;
  border-radius: 4px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #6b7280;
  transition: all var(--transition-fast);
}

.format-pill.active .format-thumb-icon {
  border-style: solid;
  border-color: #111827;
  background: #f1f2f4;
  color: #111827;
}

/* Miniatura para Rifa Grande (vertical) */
.format-thumb-icon.tall {
  width: 30px;
  height: 42px;
}

/* Miniatura para Rifa Pequena (horizontal estreita) */
.format-thumb-icon.slim {
  width: 50px;
  height: 24px;
}

.pill-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.pill-dimensions {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Presets Rápidos (Modelos Prontos para Testar) */
.presets-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.preset-chip-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.preset-chip-btn:hover {
  background: #f1f2f4;
  border-color: var(--border-medium);
}

.preset-chip-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Checklist de Visibilidade dos Elementos */
.toggles-clean-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.toggle-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.toggle-pill-row:hover {
  background: #f1f2f4;
}

.toggle-pill-row input[type="checkbox"] {
  accent-color: #111827;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.toggle-label-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   COLUNA DO MEIO — PALCO CENTRAL (Clean Canvas Preview)
   Espaço amplo, fundo neutro, visualização desobstruída do bilhete
   ========================================================================== */

.studio-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-stage);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  position: sticky;
  top: 70px;
  align-self: start;
  height: calc(100vh - 85px);
  max-height: calc(100vh - 85px);
  overflow: hidden;
  z-index: 10;
}

/* Barra Flutuante de Informações da Prévia */
.stage-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 820px;
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}

.stage-format-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.stage-format-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.stage-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-stage-action {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-subtle);
}

.btn-stage-action:hover {
  color: var(--text-main);
  border-color: var(--border-medium);
}

/* O Palco Central que Contém o Bilhete */
.svg-stage {
  width: 100%;
  max-width: 840px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
}

/* Réguas Milimétricas Físicas (Minimalistas) */
.physical-guide-ruler {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding: 0 0.5rem;
}

.ruler-title {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

/* Moldura do Bilhete (Design Limpo e Flutuante) */
.svg-canvas-wrapper {
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-stage);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  position: relative;
  transition: all var(--transition-normal);
  flex: 1;
  max-height: calc(100vh - 165px);
}

.svg-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-container svg {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 195px);
  display: block;
  object-fit: contain;
}

/* Loader Suave */
.svg-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #111827;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Alerta Discreto */
.alert-box {
  width: 100%;
  max-width: 840px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.alert-success {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: var(--success);
}

.d-none {
  display: none !important;
}

/* ==========================================================================
   COLUNA DA DIREITA — PAINEL DE FORMULÁRIO (Estilo Right Panel da Referência)
   Inputs limpos, pequenos rótulos em caixa alta, e botão preto fixo "GET ID ->"
   ========================================================================== */

.studio-sidebar-right {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 75px;
  max-height: calc(100vh - 95px);
  overflow-y: auto;
}

.panel-header-simple {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
  margin-bottom: 0.25rem;
}

.panel-title-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.panel-subtitle-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Campos de Formulário com Rótulos em Caixa Alta (Como na Referência: NAME, COUNTRY, etc.) */
.form-field-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field-label-micro {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label-micro .required {
  color: var(--danger);
}

.clean-input {
  width: 100%;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-main);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.clean-input:focus {
  background: #ffffff;
  border-color: var(--border-focus);
  outline: none;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.06);
}

.clean-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.clean-textarea {
  min-height: 70px;
  resize: vertical;
}

/* Linha com múltiplos campos (Grid 2 ou 3 colunas) */
.form-grid-row {
  display: grid;
  gap: 0.5rem;
}

.form-grid-2col {
  grid-template-columns: 1fr 1fr;
}

.form-grid-3col {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-grid-4col {
  grid-template-columns: repeat(4, 1fr);
}

/* Pílulas de Seleção Rápida de Tags (Estilo STACK na imagem) */
.tags-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.tag-chip {
  background: var(--bg-chip);
  border: 1px solid transparent;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.tag-chip:hover {
  background: var(--bg-chip-hover);
  color: #111827;
}

.tag-chip.active {
  background: #111827;
  color: #ffffff;
}

/* Upload de Imagem Limpo e Moderno */
.upload-dropzone {
  border: 1.5px dashed var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-surface-subtle);
  padding: 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.upload-dropzone:hover {
  border-color: #111827;
  background: #ffffff;
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-prompt-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
}

.dropzone-subtext {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.dropzone-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.dropzone-preview img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.preview-filename {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-filesize {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.btn-remove-image {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.2rem;
}

/* Ajustes de Posição (Accordion Limpo e Discreto) */
.accordion-wrapper {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface-subtle);
  overflow: hidden;
}

.accordion-header {
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.accordion-body {
  padding: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
}

.range-control-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
}

.range-label-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.val-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
}

.range-slider {
  width: 100%;
  accent-color: #111827;
  height: 4px;
  cursor: pointer;
}

.quick-align-btns {
  display: flex;
  gap: 0.35rem;
}

.btn-align {
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.25rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-align:hover {
  background: #111827;
  color: #ffffff;
}

.btn-reset-positions {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.btn-reset-positions:hover {
  color: var(--text-main);
}

/* ==========================================================================
   BOTÃO DE AÇÃO PRINCIPAL — PRETO SÓLIDO COM SETA (Estilo "GET ID ->")
   ========================================================================== */

.action-buttons-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* Botão Preto Sólido Idêntico à Referência */
.btn-primary-solid {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 100%;
}

.btn-primary-solid:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary-solid:active {
  transform: translateY(0);
}

.btn-secondary-outline {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  width: 100%;
}

.btn-secondary-outline:hover {
  background: var(--bg-surface-subtle);
  border-color: #111827;
}

.cdr-status-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.25rem;
}

/* ==========================================================================
   RODAPÉ SUTIL
   ========================================================================== */

.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 0.85rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 1300px) {
  .studio-container {
    grid-template-columns: 240px 1fr 340px;
    gap: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 1040px) {
  .studio-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .studio-stage {
    min-height: auto;
  }
}
