/**
 * Estilos Customizados
 * Sistema de Cadastro de Voluntários - Diaconato
 * Igreja Verbo da Vida
 */

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

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accent Color para Checkboxes e Radios */
input[type="checkbox"],
input[type="radio"] {
  accent-color: #214c92;
  cursor: pointer;
}

/* Animações Suaves */
.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Validação Visual */
.input-valid {
  border-color: #10b981 !important;
  background-color: #f0fdf4;
}

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

.input-valid:focus {
  border-color: #10b981 !important;
  ring-color: rgba(16, 185, 129, 0.2) !important;
}

.input-invalid:focus {
  border-color: #ef4444 !important;
  ring-color: rgba(239, 68, 68, 0.2) !important;
}

/* Loading Spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Success Message Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#success-message:not(.hidden) {
  animation: fadeInUp 0.5s ease-out;
}

/* Checkbox/Radio Labels Hover */
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
  transition: all 0.2s ease;
}

label:has(input[type="checkbox"]):hover,
label:has(input[type="radio"]):hover {
  transform: translateX(2px);
}

/* Focus Visible */
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #214c92;
  outline-offset: 2px;
}

/* Disabled State */
input:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  input[type="date"],
  input[type="tel"],
  input[type="text"] {
    font-size: 16px !important; /* Evita zoom no iOS */
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #1a3d7a;
}

/* Selection Color */
::selection {
  background: #214c92;
  color: white;
}

::-moz-selection {
  background: #214c92;
  color: white;
}
