/* buttons.css */

/* Base Button Style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
  gap: 8px; /* For potential icons */
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Primary Button (Confirm, Save, Add, New) - Verde Esmeralda (padrão do sistema) */
.btn-primary {
  background-color: #2ecc71;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #27ae60;
}

/* Secondary Button (Cancel, Back) - Cinza Claro */
.btn-secondary {
  background-color: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}

/* Danger Button (Delete, Remove, Destructive) - Vermelho */
.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #dc2626;
}

/* Warning / Edit Button (Edit, Alterar) - Amarelo/Laranja */
.btn-warning {
  background-color: #f59e0b;
  color: #ffffff;
}

.btn-warning:hover {
  background-color: #d97706;
}

/* Info Button (View, Detalhes) - Azul */
.btn-info {
  background-color: #3b82f6;
  color: #ffffff;
}

.btn-info:hover {
  background-color: #2563eb;
}

/* Outline Variants */
.btn-outline-primary {
  background-color: transparent;
  color: #2ecc71;
  border-color: #2ecc71;
}
.btn-outline-primary:hover {
  background-color: #2ecc71;
  color: white;
}

.btn-outline-danger {
  background-color: transparent;
  color: #ef4444;
  border-color: #ef4444;
}
.btn-outline-danger:hover {
  background-color: #ef4444;
  color: white;
}

/* Icon Buttons / Pequenos Botões */
.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-icon {
  padding: 8px;
  border-radius: 50%;
}
