/* Sistema de Controle de Qualidade - Custom CSS */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

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

/* Status indicators */
.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.status-ok { background-color: #10b981; }
.status-pending { background-color: #f59e0b; }
.status-deviation { background-color: #ef4444; }

/* Equipment cards hover effect */
.equipment-card {
  transition: transform 0.2s ease, shadow 0.2s ease;
}

.equipment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* QR Scanner styles */
.qr-scanner-overlay {
  backdrop-filter: blur(4px);
}

/* Temperature input validation */
.temp-input-valid {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.temp-input-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

/* Dashboard stats animations */
.stat-card {
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: scale(1.02);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .grid-responsive {
    grid-template-columns: 1fr;
  }
}

/* Focus styles for accessibility */
input:focus, button:focus, select:focus, textarea:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Print styles for reports */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
}

/* QR Code styling */
.qr-code-container {
  text-align: center;
  padding: 20px;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  margin: 10px 0;
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}