/**
 * Estilos Customizados
 * Sistema de Cadastro de Voluntários - Casais
 */

/* Reset e base */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #F49903;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #FF8C00;
}

/* Inputs com validação */
input.is-valid {
  border-color: #10b981 !important;
}

input.is-invalid {
  border-color: #ef4444 !important;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

.animate-slideIn {
  animation: slideIn 0.4s ease-out;
}

/* Mensagens */
.message-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
  animation: fadeIn 0.3s ease-out;
}

.message-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
  animation: fadeIn 0.3s ease-out;
}

/* Checkbox customizado */
input[type="checkbox"]:checked {
  background-color: #F49903;
  border-color: #F49903;
}

input[type="radio"]:checked {
  background-color: #F49903;
  border-color: #F49903;
}

/* Focus visível para acessibilidade */
input:focus-visible,
button:focus-visible {
  outline: 2px solid #F49903;
  outline-offset: 2px;
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #F49903;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  
  input, button {
    font-size: 16px; /* Previne zoom no iOS */
  }
}

/* Transições suaves */
input, textarea, select, button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects */
button:hover {
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* Print styles */
@media print {
  body {
    background: white !important;
  }
  
  .no-print {
    display: none !important;
  }
}
