/* Styles complementares do Colinha DF 2026 */

/* Fonte e Configurações Base */
:root {
  --color-primary: #00366f;
  --color-primary-container: #004c99;
  --color-secondary: #feb700;
  --color-secondary-dark: #7c5800;
  --color-tertiary: #005a2d;
  --color-surface: #f9f9ff;
  --color-paper: #ffffff;
}

body {
  background-color: #f9f9ff;
  font-family: 'Inter', sans-serif;
  color: #111c2d;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading, .font-ballot {
  font-family: 'Montserrat', sans-serif;
}

/* Caixa de Dígitos Urna */
.digit-box {
  transition: all 0.15s ease-in-out;
  text-transform: uppercase;
}

.digit-box:focus {
  outline: none;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(0, 76, 153, 0.35);
  border-color: #004c99;
  transform: translateY(-1px);
}

.digit-box.filled {
  background-color: #ffffff;
  border-color: #00366f;
  color: #00366f;
}

/* Cartão Tátil Cola Eleitoral (Paper Metaphor) */
.ballot-paper-card {
  box-shadow: 0 20px 35px -10px rgba(0, 30, 70, 0.45), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Linhas de Corte para Impressão */
.cut-line-horizontal {
  background-image: linear-gradient(to right, #94a3b8 50%, rgba(255,255,255,0) 0%);
  background-position: bottom;
  background-size: 8px 1.5px;
  background-repeat: repeat-x;
}

.cut-line-vertical {
  background-image: linear-gradient(to bottom, #94a3b8 50%, rgba(255,255,255,0) 0%);
  background-position: right;
  background-size: 1.5px 8px;
  background-repeat: repeat-y;
}

/* Vinco de Dobra */
.fold-line {
  border-left: 1.5px dashed #cbd5e1;
}

/* Regras Especializadas para Impressão A4 (@media print) */
@media print {
  @page {
    size: A4 portrait;
    margin: 6mm;
  }
  
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  header, footer, aside, nav, .no-print, #toastNotification, .app-view:not(#view-impressao-a4) {
    display: none !important;
  }
  
  #view-impressao-a4 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  main {
    padding-top: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  
  .print-page-sheet {
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }
  
  .break-inside-avoid {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Toast de Feedback */
.toast-active {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Animações e Transições */
.tab-content-active {
  display: block;
  animation: fadeIn 0.25s ease forwards;
}

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